diff options
author | Douglas Gregor <dgregor@apple.com> | 2013-11-07 22:55:02 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2013-11-07 22:55:02 +0000 |
commit | 594b8c934f79de7c2085a6ca7fb519648a7ff684 (patch) | |
tree | fc076913310c4493f343f3825e14b24206cee7ff /clang-tools-extra/unittests/clang-query/QueryEngineTest.cpp | |
parent | 4b60a1594d2c6b1d18b0839614cd414306ca0176 (diff) | |
download | bcm5719-llvm-594b8c934f79de7c2085a6ca7fb519648a7ff684.tar.gz bcm5719-llvm-594b8c934f79de7c2085a6ca7fb519648a7ff684.zip |
Modules: Teach the preprocessor to recognize 'import' only after an '@'.
The preprocessor currently recognizes module declarations to load a
module based on seeing the 'import' keyword followed by an
identifier. This sequence is fairly unlikely in C (one would need a
type named 'import'), but is more common in Objective-C (where a
variable named 'import' can cause problems). Since import declarations
currently require a leading '@', recognize that in the preprocessor as
well. Fixes <rdar://problem/15084587>.
llvm-svn: 194225
Diffstat (limited to 'clang-tools-extra/unittests/clang-query/QueryEngineTest.cpp')
0 files changed, 0 insertions, 0 deletions