[clang-tidy] Enhance clang-tidy misc-macro-repeated-side-effects...
authorDaniel Marjamaki <daniel.marjamaki@evidente.se>
Thu, 2 Jul 2015 07:49:55 +0000 (07:49 +0000)
committerDaniel Marjamaki <daniel.marjamaki@evidente.se>
Thu, 2 Jul 2015 07:49:55 +0000 (07:49 +0000)
commite0384e51b0aeff786c5200afc3aab0f7ecbe7484
tree4e0e1008e958fcd83961c49c6f2822213154d405
parente4f974c6fbec31da2397b0f625a09de9557b0ef5
[clang-tidy] Enhance clang-tidy misc-macro-repeated-side-effects...

Enhance clang-tidy misc-macro-repeated-side-effects to handle ? and : better.

When ? is used in a macro, there are 2 possible control flow paths through the macro.
These paths are tracked separately so problems can be detected properly.

http://reviews.llvm.org/D10653

llvm-svn: 241245
clang-tools-extra/clang-tidy/misc/MacroRepeatedSideEffectsCheck.cpp
clang-tools-extra/test/clang-tidy/misc-repeated-side-effects-in-macro.c