]> granicus.if.org Git - clang/commit
Don't warn about extraneous '()' around a comparison if it occurs within a macro.
authorTed Kremenek <kremenek@apple.com>
Tue, 1 Feb 2011 22:36:09 +0000 (22:36 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 1 Feb 2011 22:36:09 +0000 (22:36 +0000)
commit006ae38a494d6b2389b7c67728705dc8da996754
tree6d2c2aee8cbf0ec19d8e9612a10c76e54bd323ed
parentcf1620a0ef7f6dc71f4fad5c46fbb0a2de6c6308
Don't warn about extraneous '()' around a comparison if it occurs within a macro.

Macros frequently contain extra '()' to make instantiation less error prone.
This warning was flagging a ton of times on postgresql because of its use of macros.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124695 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExpr.cpp
test/SemaCXX/warn-assignment-condition.cpp