]> granicus.if.org Git - clang/commit
When redefining a macro don't warn twice if it's not used and don't warn for duplicate
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 18 Jan 2011 19:50:15 +0000 (19:50 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 18 Jan 2011 19:50:15 +0000 (19:50 +0000)
commita33e0504f61132ac43f4f89af43b12c87e987c20
tree635589212b1c31ffc26cd1ff2ff38b5b36fd7d13
parente188933adf2cfe2821b8acba2de6d5d152bc246b
When redefining a macro don't warn twice if it's not used and don't warn for duplicate
definition by command line options. Fixes rdar://8875916.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123767 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Lex/PPDirectives.cpp
test/Preprocessor/warn-macro-unused.c [new file with mode: 0644]