Argyrios Kyrtzidis
065d720c31
[Lexer] Improve Lexer::getSourceText() when the given range deals with function macro arguments.
...
This is a modified version of a patch by Manuel Klimek.
llvm-svn: 182055
2013-05-16 21:37:39 +00:00
Douglas Gregor
fb9126578e
<rdar://problem/12368093> Extend module maps with a 'conflict' declaration, and warn when a newly-imported module conflicts with an already-imported module.
...
llvm-svn: 177577
2013-03-20 21:10:35 +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
fa0b3bb7ec
Really sort the #include lines in unittests/...
...
I forgot to re-sort after fixing main module headers.
llvm-svn: 169244
2012-12-04 09:53:37 +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
Fariborz Jahanian
461b7bb9e6
get rid of an unsued variable warning.
...
llvm-svn: 152146
2012-03-06 21:18:56 +00:00
Ted Kremenek
f7639e1b4a
Add new code migrator support for migrating existing Objective-C code to use
...
the new Objective-C NSArray/NSDictionary/NSNumber literal syntax.
This introduces a new library, libEdit, which provides a new way to support
migration of code that improves on the original ARC migrator. We now believe
that most of its functionality can be refactored into the existing libraries,
and thus this new library may shortly disappear.
llvm-svn: 152141
2012-03-06 20:06:33 +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
Argyrios Kyrtzidis
0d9e24b1db
Change Lexer::makeFileCharRange() to have it accept a CharSourceRange
...
instead of a SourceRange, and handle the case where the range is
a char (not token) range.
llvm-svn: 149677
2012-02-03 05:58:29 +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
Argyrios Kyrtzidis
abff5f1271
Improve Lexer::getImmediateMacroName to take into account inner macros
...
of macro arguments.
For "MAC1( MAC2(foo) )" and location of 'foo' token it would return
"MAC1" instead of "MAC2".
llvm-svn: 148704
2012-01-23 16:58:33 +00:00
Argyrios Kyrtzidis
85e7671b71
Enhance Lexer::makeFileCharRange to check for ranges inside a macro argument
...
expansion, in which case it returns a file range in the location where the
argument was spelled.
llvm-svn: 148551
2012-01-20 16:52:43 +00:00
Benjamin Kramer
704fe866b2
Silence set-but-unused warning.
...
llvm-svn: 148496
2012-01-19 21:12:23 +00:00
Argyrios Kyrtzidis
7838a2bffb
Introduce Lexer::getSourceText() that returns a string for the source
...
that the given source range encompasses.
llvm-svn: 148481
2012-01-19 15:59:19 +00:00
Argyrios Kyrtzidis
a99e02d019
Introduce Lexer::makeFileCharRange() that accepts a token source range
...
and returns a character range with file locations.
llvm-svn: 148480
2012-01-19 15:59:14 +00:00
Argyrios Kyrtzidis
1b07c344b4
For Lexer's isAt[Start/End]OfMacroExpansion add an out parameter for the macro
...
start/end location.
It is commonly needed after calling the function; with this way we avoid
recalculating it.
llvm-svn: 148479
2012-01-19 15:59:08 +00:00
Argyrios Kyrtzidis
d169911cc0
Add unit testing for Lexer.
...
llvm-svn: 148478
2012-01-19 15:59:01 +00:00