summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Lex
Commit message (Collapse)AuthorAgeFilesLines
...
* Sort the #include lines for unittests/...Chandler Carruth2012-12-043-13/+10
| | | | | | I've tried to place sensible headers at the top as main-module headers. llvm-svn: 169243
* clang/Lex: [CMake] Update CMakefiles since r169229.NAKAMURA Takumi2012-12-041-1/+1
| | | | llvm-svn: 169233
* Refactor recording the preprocessor conditional directive regions out ofArgyrios Kyrtzidis2012-12-041-22/+23
| | | | | | | | | PreprocessingRecord and into its own class, PPConditionalDirectiveRecord. Decoupling allows a client to use the functionality of PPConditionalDirectiveRecord without needing a PreprocessingRecord. llvm-svn: 169229
* Fix unit tests for ModuleLoader change in r168961.Douglas Gregor2012-11-303-12/+15
| | | | llvm-svn: 168962
* clang/unittests: Fixup corresponding to Doug's r168136.NAKAMURA Takumi2012-11-163-3/+3
| | | | llvm-svn: 168137
* Escape trigraphs in unittest.Benjamin Kramer2012-11-031-6/+4
| | | | llvm-svn: 167359
* Make the FilenameRange of the InclusionDirective callback more accurate,Argyrios Kyrtzidis2012-11-012-0/+249
| | | | | | | | preserve the macro location of the range end if the filename came from a macro. Patch by Kim Gräsman! llvm-svn: 167239
* Teach the preprocessor to hold onto the preprocessor options.Douglas Gregor2012-10-242-4/+4
| | | | llvm-svn: 166599
* Update unit tests for HeaderSearch changeDouglas Gregor2012-10-242-2/+6
| | | | llvm-svn: 166584
* One last unit-test fixDouglas Gregor2012-10-231-1/+2
| | | | llvm-svn: 166513
* More unit-test fixesDouglas Gregor2012-10-231-0/+1
| | | | llvm-svn: 166511
* Fixup unit tests for DiagnosticOptions changeDouglas Gregor2012-10-231-1/+1
| | | | llvm-svn: 166509
* Fix the handling of target options in our unit tests.Douglas Gregor2012-10-172-8/+12
| | | | llvm-svn: 166079
* Clang side of a refactoring of the CMake unit test build strategy.Chandler Carruth2012-06-211-0/+8
| | | | | | | | | | | | | | | | The fundamental change is to put a CMakeLists.txt file in the unittest directory, with a single test binary produced from it. This has several advantages. Among other fundamental advantages, we start to get the checking logic for when a file is missing from the CMake build, and this caught one missing file already! More fun details in the LLVM commit corresponding to this one. Note that the LLVM commit and this one most both be applied, or neither. Sorry for any skew issues. llvm-svn: 158910
* get rid of an unsued variable warning.Fariborz Jahanian2012-03-061-1/+1
| | | | llvm-svn: 152146
* Add new code migrator support for migrating existing Objective-C code to useTed Kremenek2012-03-061-2/+2
| | | | | | | | | | | 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
* [preprocessor] Enhance PreprocessingRecord to keep track of locations of ↵Argyrios Kyrtzidis2012-03-051-0/+139
| | | | | | | | | conditional directives. Introduce PreprocessingRecord::rangeIntersectsConditionalDirective() which returns true if a given range intersects with a conditional directive block. llvm-svn: 152018
* Basic: import IntrusiveRefCntPtr<> into clang namespaceDylan Noblesmith2012-02-201-2/+2
| | | | | | | The class name is long enough without the llvm:: added. Also bring in RefCountedBase and RefCountedBaseVPTR. llvm-svn: 150958
* Change Lexer::makeFileCharRange() to have it accept a CharSourceRangeArgyrios Kyrtzidis2012-02-031-11/+13
| | | | | | | instead of a SourceRange, and handle the case where the range is a char (not token) range. llvm-svn: 149677
* Thread a TargetInfo through to the module map; we'll need it forDouglas Gregor2012-01-301-1/+1
| | | | | | target-specific module requirements. llvm-svn: 149224
* Improve Lexer::getImmediateMacroName to take into account inner macrosArgyrios Kyrtzidis2012-01-231-2/+21
| | | | | | | | | of macro arguments. For "MAC1( MAC2(foo) )" and location of 'foo' token it would return "MAC1" instead of "MAC2". llvm-svn: 148704
* Enhance Lexer::makeFileCharRange to check for ranges inside a macro argumentArgyrios Kyrtzidis2012-01-201-2/+34
| | | | | | | expansion, in which case it returns a file range in the location where the argument was spelled. llvm-svn: 148551
* Silence set-but-unused warning.Benjamin Kramer2012-01-191-1/+1
| | | | llvm-svn: 148496
* Introduce Lexer::getSourceText() that returns a string for the sourceArgyrios Kyrtzidis2012-01-191-0/+5
| | | | | | that the given source range encompasses. llvm-svn: 148481
* Introduce Lexer::makeFileCharRange() that accepts a token source rangeArgyrios Kyrtzidis2012-01-191-3/+19
| | | | | | and returns a character range with file locations. llvm-svn: 148480
* For Lexer's isAt[Start/End]OfMacroExpansion add an out parameter for the macroArgyrios Kyrtzidis2012-01-191-2/+5
| | | | | | | | | start/end location. It is commonly needed after calling the function; with this way we avoid recalculating it. llvm-svn: 148479
* Add unit testing for Lexer.Argyrios Kyrtzidis2012-01-192-0/+115
llvm-svn: 148478
OpenPOWER on IntegriCloud