rizsotto / scan-build

Clang's scan-build re-implementation in python
Other
362 stars 34 forks source link

improve environment format and update .gitignore #107

Closed apex-omontgomery closed 6 years ago

apex-omontgomery commented 6 years ago

Was having trouble with the format of the verbose output, this ended up helping.

Before

λ intercept-build -vvvv make
intercept-build: DEBUG: parse_args_for_intercept_build: Raw arguments ['C:\\Users\\William.Montgomery\\AppData\\Local\\Programs\\Python\\Python37-32\\Scripts\\intercept-build', '-vvvv', 'make']
intercept-build: DEBUG: parse_args_for_intercept_build: Parsed arguments: Namespace(append=False, build=['make'], cc='cc', cdb='compile_commands.json', cxx='c++', override_compiler=False, verbose=4)
intercept-build: DEBUG: run_build: run build ['make'], in environment: {'ALIASES': 'C:\\Users\\William.Montgomery\\Desktop\\cmder\\config\\user-aliases.cmd', 'ALLUSERSPROFILE': 'C:\\ProgramData', 'ANSICON': '158x32766 (158x50)', 'ANSICON_DEF': '7', 'APPDATA': 'C:\\Users\\William.Montgomery\\AppData\\Roaming', 'ARCHITECTURE': '64', 'CHOCOLATEYINSTALL': 'C:\\ProgramData\\chocolatey', 'CHOCOLATEYLASTPATHUPDATE': 'Thu May  3 14:35:12 2018', 'CHOCOLATEYTOOLSLOCATION': 'C:\

After

λ intercept-build -vvvv make
intercept-build: DEBUG: parse_args_for_intercept_build: Raw arguments ['C:\\Users\\William.Montgomery\\AppData\\Local\\Programs\\Python\\Python37-32\\Scripts\\intercept-build', '-vvvv', 'make']
intercept-build: DEBUG: parse_args_for_intercept_build: Parsed arguments: Namespace(append=False, build=['make'], cc='cc', cdb='compile_commands.json', cxx='c++', override_compiler=False, verbose=4)
intercept-build: DEBUG: run_build: run build ['make'], in environment:
{'ALIASES': 'C:\\Users\\William.Montgomery\\Desktop\\cmder\\config\\user-aliases.cmd',
 'ALLUSERSPROFILE': 'C:\\ProgramData',
 'ANSICON': '158x32766 (158x50)',
 'ANSICON_DEF': '7',
 'APPDATA': 'C:\\Users\\William.Montgomery\\AppData\\Roaming',
 'ARCHITECTURE': '64',
 'CC': 'intercept-cc',
 'CHOCOLATEYINSTALL': 'C:\\ProgramData\\chocolatey',
 'CHOCOLATEYLASTPATHUPDATE': 'Thu May  3 14:35:12 2018',
 'CHOCOLATEYTOOLSLOCATION': 'C:\\tools', ....
apex-omontgomery commented 6 years ago

Went ahead and did those things.

How are you running your tests and lint locally?

rizsotto commented 6 years ago

Thanks for the updates. It looks good to me. I use virtualenv and pip install lit pep8. To run the test set, it's just simple lit -v tests.

rizsotto commented 6 years ago

Thanks @wimo7083 , and sorry for the slow processing.