cppclean icon indicating copy to clipboard operation
cppclean copied to clipboard

Crash in static_data.py

Open ihhub opened this issue 8 years ago • 0 comments

The crash stack:

Traceback (most recent call last):
  File "cppclean", line 166, in <module>
    sys.exit(main())
  File "cppclean", line 159, in main
    quiet=args.quiet):
  File "cppclean/cpp/static_data.py", line 118, in run
    _find_warnings(filename, lines, entire_ast, True) +
  File "cppclean/cpp/static_data.py", line 64, in _find_warnings
    print_warning(node)
  File "cppclean/cpp/static_data.py", line 31, in print_warning
    for name in node.name.split(','):
AttributeError: 'NoneType' object has no attribute 'split'

In static_data.py you must include if node.name: before line 31 to avoid the crash.

ihhub avatar Sep 12 '17 09:09 ihhub