]> granicus.if.org Git - clang/commit
Don't warn about disabled macro expansion if we see the name of a function-like macro...
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 12 Dec 2012 02:46:14 +0000 (02:46 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 12 Dec 2012 02:46:14 +0000 (02:46 +0000)
commit1fbf6fb5c7ecbf803e692f0d1622870a36cf83b7
treec99520bfb10245cf4d1a216cfd2e36a5e3a23729
parentb94b62c3b15967d29f63165e834fa4f12944394c
Don't warn about disabled macro expansion if we see the name of a function-like macro which isn't immediately followed by '('. FreeBSD's stdio.h #defines foo(x) to (foo)(x), apparently.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169960 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Lex/Preprocessor.cpp
test/Preprocessor/warn-disabled-macro-expansion.c