Argyrios Kyrtzidis
fead64be9b
[preprocessor] Use MacroDirective in the preprocessor callbacks to make available the
...
full information about the macro (e.g if it was imported and where).
llvm-svn: 175978
2013-02-24 00:05:14 +00:00
Argyrios Kyrtzidis
125df0589b
For ModuleLoader::makeModuleVisible() also pass the source location where the
...
module import occurred.
llvm-svn: 174191
2013-02-01 16:36:12 +00:00
NAKAMURA Takumi
e73d2a9fff
clang/unittests: Fixup corresponding to r172290.
...
llvm-svn: 172295
2013-01-12 02:16:29 +00:00
Chandler Carruth
320d9666ee
Sort the #include lines for unittests/...
...
I've tried to place sensible headers at the top as main-module headers.
llvm-svn: 169243
2012-12-04 09:45:34 +00:00
Douglas Gregor
8c05893746
Fix unit tests for ModuleLoader change in r168961.
...
llvm-svn: 168962
2012-11-30 00:01:57 +00:00
NAKAMURA Takumi
fe40a35075
clang/unittests: Fixup corresponding to Doug's r168136.
...
llvm-svn: 168137
2012-11-16 04:40:11 +00:00
Douglas Gregor
1452ff155b
Teach the preprocessor to hold onto the preprocessor options.
...
llvm-svn: 166599
2012-10-24 17:46:57 +00:00
Douglas Gregor
40ba1a0191
Update unit tests for HeaderSearch change
...
llvm-svn: 166584
2012-10-24 16:24:38 +00:00
Douglas Gregor
edf8e38701
More unit-test fixes
...
llvm-svn: 166511
2012-10-23 22:38:58 +00:00
Douglas Gregor
d8cfd399fa
Fixup unit tests for DiagnosticOptions change
...
llvm-svn: 166509
2012-10-23 22:31:51 +00:00
Douglas Gregor
44d6361ed7
Fix the handling of target options in our unit tests.
...
llvm-svn: 166079
2012-10-17 00:11:35 +00:00
Jordan Rose
8d63d5b8e6
Fix the location of the fixit for -Wnewline-eof.
...
It turns out SourceManager treating the "one-past-the-end" location as invalid,
but then failing to set the invalid flag properly.
llvm-svn: 158699
2012-06-19 03:09:38 +00:00
Argyrios Kyrtzidis
a956450eb7
[preprocessor] Handle correctly inclusion directives that have macro expansions, e.g
...
"#include MACRO(STUFF)".
-As an inclusion position for the included file, use the file location of the file where it
was included but *after* the macro expansions. We want the macro expansions to be considered
as before-in-translation-unit for everything in the included file.
-In the preprocessing record take into account that only inclusion directives can be encountered
as "out-of-order" (by comparing the start of the range which for inclusions is the hash location)
and use binary search if there is an extreme number of macro expansions in the include directive.
Fixes rdar://11111779
llvm-svn: 153527
2012-03-27 18:47:48 +00:00
Dylan Noblesmith
c95d81924d
Basic: import IntrusiveRefCntPtr<> into clang namespace
...
The class name is long enough without the llvm:: added.
Also bring in RefCountedBase and RefCountedBaseVPTR.
llvm-svn: 150958
2012-02-20 14:00:23 +00:00
Dylan Noblesmith
f1a13f29f2
drop more llvm:: prefixes on SmallString<>
...
More cleanup after r149799.
llvm-svn: 150380
2012-02-13 12:32:26 +00:00
Benjamin Kramer
4903802fbf
Move a method from IdentifierTable.h out of line and remove the SmallString include.
...
Fix all the transitive include users.
llvm-svn: 149783
2012-02-04 13:45:25 +00:00
Douglas Gregor
8992928274
Thread a TargetInfo through to the module map; we'll need it for
...
target-specific module requirements.
llvm-svn: 149224
2012-01-30 06:01:29 +00:00
NAKAMURA Takumi
1154e75c7c
clang/unittests/Basic/SourceManagerTest.cpp: Fixup corresponding to r147387.
...
llvm-svn: 147388
2011-12-31 04:25:56 +00:00
Argyrios Kyrtzidis
e841c901de
Fix bugs in SourceManager::computeMacroArgsCache() and add a unit test for it.
...
llvm-svn: 147057
2011-12-21 16:56:35 +00:00
Argyrios Kyrtzidis
2403797eec
For SourceManager::isBeforeInTranslationUnit(), have it consider macro arg expanded
...
token locations as coming before the closing ')' of a function macro expansion.
Include a unit test for SourceManager.
llvm-svn: 147056
2011-12-21 16:56:29 +00:00