]> granicus.if.org Git - clang/commit
[modules] Re-enable the "ambiguous expansion of macro" warning.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 27 Mar 2013 01:25:19 +0000 (01:25 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 27 Mar 2013 01:25:19 +0000 (01:25 +0000)
commit35803282ef0282467fe1c09aa8284d734030dc3f
tree27a03e16bb7e33288b803bc3765be69293700b87
parent12fef490dce56bf8abc1bad7fec798eb882aabf7
[modules] Re-enable the "ambiguous expansion of macro" warning.

Also update "test/Modules/macros.c" to test modified semantics:
-When there is an ambiguous macro, expand using the latest introduced version, not the first one.
-#undefs in submodules cause the macro to not be exported by that submodule, it doesn't cause
 undefining of macros in the translation unit that imported that submodule.
 This reduces macro namespace interference across modules.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178105 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Lex/PPMacroExpansion.cpp
test/Modules/macros.c