[PATCH] D16200: Add --force-analyze-debug-code option to scan-build to force debug build and hopefully enable more precise warnings.

Laszlo Nagy via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 28 15:04:59 PST 2016


rizsotto.mailinglist added a comment.

thanks Yury for the update.


================
Comment at: tools/scan-build-py/tests/unit/test_runner.py:216
@@ +215,3 @@
+class ForceAnalyzeDebugTest(unittest.TestCase):
+
+    def test_force_analyze_debug_code(self):
----------------
interesting to see that the method is changing the flags. (glue them together) my expectation would be that it only filters, and do not modify it. (i understand that semantically it is the same.)

and would like to see a few more tests... ['-Dkey=val'], ['-DNDEBUG'], ['-D', 'NDEBUG'], ['-DNDEBUG=1'], ['-DDEBUG'], ['-Dkey=val', '-DNDEBUG'], ['-Dkey=val', '-D', 'NDEBUG'], ['-DNDEBUG', '-Dkey=val'], ['-Dkey1=val1', '-DNDEBUG=1', '-Dkey2=val2']


Repository:
  rL LLVM

http://reviews.llvm.org/D16200





More information about the llvm-commits mailing list