Ben Langmuir
6ecd773202
Remove the new module cache from the index-module test
...
Forgot to add the new cache to the `rm -rf` line. This broke some bots
when trying to load a module built with an older compiler.
llvm-svn: 275496
2016-07-14 22:53:23 +00:00
Ben Langmuir
5cd6abdd23
Attempt to workaround Windows bots after my previous commit
...
For some reason it seems the second invocation is getting DMOD_OTHER_H
set to a path with/forward/slashes, but one of the use sites
has\back\slashes. There should be no difference with what was already
there, but for now try to avoid checking those paths.
llvm-svn: 275464
2016-07-14 20:08:43 +00:00
Ben Langmuir
6aed6b4f01
[index] Index system ImportDecls even when there is a DeclarationsOnly filter
...
Whether we call an ImportDecl a decl or a reference symbol role is
somewhat academic, but in practice it's more like a declaration because
it is interesting even to consumers who wouldn't care about references.
Most importantly, we want to report the module dependencies of system
modules even when we have declaration-only filtering.
rdar://problem/27134855
llvm-svn: 275454
2016-07-14 18:51:55 +00:00
Argyrios Kyrtzidis
a3e2ff19e5
[libclang] Make sure to use the raw module format for libclang parsing.
...
Fixes crash when passing '-gmodules' in the compiler options.
rdar://23588717
llvm-svn: 253645
2015-11-20 03:36:21 +00:00
Richard Smith
bca31b731b
[modules] Move implicit creation of ImportDecls for #includes transformed into module imports from the frontend into Sema where it belongs.
...
llvm-svn: 237555
2015-05-18 05:35:52 +00:00
Richard Smith
63b6fcef96
[modules] Refactor and simplify #include handling.
...
Fix a tiny bug where we'd try to load a module file for the module we're in
the middle of building.
llvm-svn: 237552
2015-05-18 04:45:41 +00:00
Argyrios Kyrtzidis
f0b4cd1ed3
[ASTUnit] Fix crash when trying to load a module file via ASTUnit::LoadFromASTFile.
...
rdar://19997358
llvm-svn: 231060
2015-03-03 08:04:19 +00:00
NAKAMURA Takumi
b6ac3f93e7
clang/test/Index/index-module.m: Tweak expressions to meet dos path on win32.
...
llvm-svn: 215592
2014-08-13 22:14:49 +00:00
Argyrios Kyrtzidis
f6d49c36b2
[liblang] Introduce clang_getModuleForFile, which given a CXFile header file, returns the module that contains it, if one exists.
...
llvm-svn: 208822
2014-05-14 23:14:37 +00:00
Richard Smith
a3feee2ad6
Allow a new syntax in a module requires-declaration:
...
requires ! feature
The purpose of this is to allow (for instance) the module map for /usr/include
to exclude <tgmath.h> and <complex.h> when building in C++ (these headers are
instead provided by the C++ standard library in this case, and the glibc C
<tgmath.h> header would otherwise try to include <complex.h>, resulting in a
module cycle).
llvm-svn: 193549
2013-10-28 22:18:19 +00:00
Douglas Gregor
f5f9452808
Teach subframework header lookup to suggest modules <rdar://problem/13176200>.
...
llvm-svn: 174683
2013-02-08 00:10:48 +00:00
Douglas Gregor
35b04d6fd2
Rename -fmodule-cache-path <blah> to -fmodules-cache-path=<blah> for consistency.
...
llvm-svn: 174645
2013-02-07 19:01:24 +00:00
Douglas Gregor
c50d4924eb
Use @import rather than @__experimental_modules_import, since the
...
latter is rather a mess to type.
llvm-svn: 169919
2012-12-11 22:11:52 +00:00
Argyrios Kyrtzidis
5e2ec486bb
[libclang] Invoke a ppIncludedFile callback when indexing implicit module imports.
...
llvm-svn: 166161
2012-10-18 00:17:05 +00:00
NAKAMURA Takumi
2796023802
clang/test/Index/index-module.m: Tweak expressions to fit Win32 paths.
...
llvm-svn: 165794
2012-10-12 14:11:32 +00:00
NAKAMURA Takumi
cdb8ef593b
clang/test/Index/index-module.m: Move XFAIL. It was line-number-sensitive.
...
llvm-svn: 165762
2012-10-11 22:48:22 +00:00
NAKAMURA Takumi
9bd0995f57
clang/test/Index/index-module.m: Mark it as XFAIL:win32 for now.
...
llvm-svn: 165761
2012-10-11 22:33:19 +00:00
Argyrios Kyrtzidis
8585f140bf
[libclang] Make sure the index_data.main_filename field is initialized
...
in c-index-test. index_enteredMainFile is not invoked when indexing a
module file.
llvm-svn: 165735
2012-10-11 19:38:23 +00:00
Argyrios Kyrtzidis
44ddccaeb5
[libclang] Remove this test while I investigate why it is crashing on release+asserts.
...
llvm-svn: 165734
2012-10-11 19:21:21 +00:00
Argyrios Kyrtzidis
9f57186983
[libclang] Add tests for indexing modules and PCHs using modules.
...
llvm-svn: 165732
2012-10-11 19:00:44 +00:00