diff options
author | Ben Langmuir <blangmuir@apple.com> | 2016-05-04 00:53:13 +0000 |
---|---|---|
committer | Ben Langmuir <blangmuir@apple.com> | 2016-05-04 00:53:13 +0000 |
commit | 537c5b5b62c42528fc90914ce6abe7002c3fb4c4 (patch) | |
tree | 1d85faa427187b73edb925cd0416bc5f2f9d4c08 /clang/test/CodeCompletion/Inputs/ModuleA/moduleA.h | |
parent | 2c5aeabeddd0495dcb4b39134f3ab1e89e0d66e5 (diff) | |
download | bcm5719-llvm-537c5b5b62c42528fc90914ce6abe7002c3fb4c4.tar.gz bcm5719-llvm-537c5b5b62c42528fc90914ce6abe7002c3fb4c4.zip |
Fix CodeCompletion & TypoCorrection when combining a PCH with Modules
This commit fixes the IdentifierIterator to actually include identifiers
from a PCH or precompiled preamble when there is also a global module
index. This was causing code-completion (outside of C++) and
typo-correction to be missing global identifiers defined in the
PCH/preamble. Typo-correction has been broken since we first started
using the module index, whereas code-completion only started relying on
identifier iterator in r232793.
rdar://problem/25642879
llvm-svn: 268471
Diffstat (limited to 'clang/test/CodeCompletion/Inputs/ModuleA/moduleA.h')
-rw-r--r-- | clang/test/CodeCompletion/Inputs/ModuleA/moduleA.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/CodeCompletion/Inputs/ModuleA/moduleA.h b/clang/test/CodeCompletion/Inputs/ModuleA/moduleA.h new file mode 100644 index 00000000000..f90f56dad82 --- /dev/null +++ b/clang/test/CodeCompletion/Inputs/ModuleA/moduleA.h @@ -0,0 +1 @@ +static int const FROM_MODULE_A = 0; |