summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/preamble.c
Commit message (Collapse)AuthorAgeFilesLines
* [Preprocessor] Pass TranslationUnitKind to the preprocessor and if it is ↵Argyrios Kyrtzidis2014-03-071-5/+11
| | | | | | | | | | TU_Prefix avoid warning for unused macros. rdar://15034698 llvm-svn: 203213
* Report a correct end location for nameless parameters.Benjamin Kramer2014-02-021-1/+1
| | | | | | | | | | | | | | | Ranges before: void test(void (*)(int), int, float); ~~~~~~~~~~~~~ ~~~~ ~~~~~~ Ranges after: void test(void (*)(int), int, float); ~~~~~~~~~~~~~ ~~~ ~~~~~ This does not change the actual location of the ParmVarDecl, it still points to the location where the name would be. PR17970. llvm-svn: 200640
* [PCH] Fix a PCH serialization crash, with invalid code related to forward ↵Argyrios Kyrtzidis2013-08-071-3/+5
| | | | | | | | | | | | | | | | enum references. The problem was that an enum without closing semicolon could be associated as a forward enum in an erroneous declaration, leading to the identifier being associated with the enum decl but without a declaration actually referencing it. This resulted in not having it serialized before serializing the identifier that is associated with. Also prevent the ASTUnit from querying the serialized DeclID for an invalid top-level decl; it may not have been serialized. rdar://14539667 llvm-svn: 187914
* Expose more statement, expression, and declaration kinds in libclang,Douglas Gregor2011-10-051-2/+2
| | | | | | from Manuel Holtgrewe! llvm-svn: 141200
* Fixed source range for all DeclaratorDecl's.Abramo Bagnara2011-03-081-2/+2
| | | | llvm-svn: 127225
* Get rid of the lame attempt to prioritize "void" functions atDouglas Gregor2010-09-201-1/+1
| | | | | | | statement context; it really isn't helpful in practice (remember printf!) and we'll be doing other adjustments for statements very soon. llvm-svn: 114358
* Add libclang support for label statements, gotos, and taking theDouglas Gregor2010-09-101-4/+0
| | | | | | address of a label (GNU extension). llvm-svn: 113564
* Give a slight preference to functions returning "void" when we'reDouglas Gregor2010-08-241-1/+1
| | | | | | | performing code completion at the statement level (rather than in an arbitrary expression). llvm-svn: 112001
* Implement clang_saveTranslationUnit(), which saves a translation unitDouglas Gregor2010-08-131-1/+1
| | | | | | into a PCH/AST file. llvm-svn: 111006
* Use precompiled preambles for in-process code completion.Douglas Gregor2010-08-091-0/+8
| | | | llvm-svn: 110596
* When using a precompiled preamble, keep track of the top-levelDouglas Gregor2010-08-031-0/+10
| | | | | | | | | | declarations that we saw when creating the precompiled preamble, and provide those declarations in addition to the declarations parsed in the main source file when traversing top-level declarations. This makes the use of precompiled preambles a pure optimization, rather than changing the semantics of the parsed translation unit. llvm-svn: 110131
* When using a precompiled preamble, save the diagnostics produced whenDouglas Gregor2010-08-021-1/+3
| | | | | | | | creating the preamble and "replay" them when reusing the preamble. Also, fix a thinko in the copying of the preamble when building the precompiled preamble. llvm-svn: 110061
* tests: Use env instead of assuming bash.Daniel Dunbar2010-07-301-1/+1
| | | | llvm-svn: 109864
* Implement -fno-validate-pch at the -cc1 level, which suppresses mostDouglas Gregor2010-07-271-6/+1
| | | | | | | | | | | | | | | of the usual consistency checks used to determine when a precompiled header is incompatible with the translation unit it's being loaded into. Enable this option when loading a precompiled preamble, because the preamble loader will be performing all of this checking itself. Enable the preamble-based test now that it's working. This option is also useful for debugging Clang's PCH (<rdar://problem/7532213>). llvm-svn: 109475
* When remapping a virtual file, also make an entry for the file withDouglas Gregor2010-07-261-0/+13
its absolute path on disk. Also, introduce a fun test for the precompiled preamble, which almost works... llvm-svn: 109470
OpenPOWER on IntegriCloud