Sanitize the names of modules determined based on the names of headers
authorDouglas Gregor <dgregor@apple.com>
Fri, 12 Oct 2012 21:15:50 +0000 (21:15 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 12 Oct 2012 21:15:50 +0000 (21:15 +0000)
commit056396ae8cb9c4523136041dfbe58ca87c48bbd8
tree00b28d23fc44ecb40f729c603e4305f68cf37561
parent25177af7a4a94377c2469ae8a52bb19d38987cef
Sanitize the names of modules determined based on the names of headers
or directories, to make sure that they are identifiers that are not
keywords in any dialect. Fixes <rdar://problem/12489495>.

llvm-svn: 165821
clang/lib/Lex/ModuleMap.cpp
clang/test/Modules/Inputs/normal-module-map/nested_umbrella/1.h [new file with mode: 0644]
clang/test/Modules/Inputs/normal-module-map/nested_umbrella/a-extras.h [new file with mode: 0644]
clang/test/Modules/normal-module-map.cpp