]> granicus.if.org Git - clang/commit
Fix another aspect of PR7047, macro expansions. Previously, this was hacked
authorChandler Carruth <chandlerc@gmail.com>
Mon, 12 Jul 2010 06:23:38 +0000 (06:23 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 12 Jul 2010 06:23:38 +0000 (06:23 +0000)
commit64d092c232bc282762430df9eb67beafffaa2fdc
tree9ab85c74507a09a2f87793ef2439cfc76d7b6355
parent63dae6e5ad23cab32f5e556c1b0dc3e4576edc83
Fix another aspect of PR7047, macro expansions. Previously, this was hacked
around by exempting enums from the check, but this doesn't handle a lot of
cases. A better approach is to directly check if the operator comes from
a macro expansion.

I've removed a reference to the rdar that originally led to the enum
suppression when removing it's overly contrived test case. Let me know if that
number or a more reasilistic test case involving enums is still needed.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108128 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExpr.cpp
test/Sema/self-comparison.c