summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend
Commit message (Collapse)AuthorAgeFilesLines
* Reverting rev 112791 - apparently -fborland-extensions is on all the time?!Dawn Perchik2010-09-021-3/+0
| | | | llvm-svn: 112797
* Add support for Borland extensions via option -fborland-extensionsDawn Perchik2010-09-021-0/+3
| | | | llvm-svn: 112791
* StringRefize.Benjamin Kramer2010-09-011-6/+5
| | | | llvm-svn: 112718
* add a new version of mingw, patch by İsmail "cartman" DönmezChris Lattner2010-09-011-0/+4
| | | | | | in PR8049 llvm-svn: 112710
* Add NetBSD include search pathAnton Korobeynikov2010-08-311-0/+3
| | | | llvm-svn: 112663
* Predeclare class type_info in Microsoft mode, from Francois Pichet!Douglas Gregor2010-08-301-0/+1
| | | | llvm-svn: 112478
* Straighten out target triples provided on the command lineDuncan Sands2010-08-301-1/+2
| | | | | | before using them. llvm-svn: 112468
* Suggest "const" and "volatile" code completions after a functionDouglas Gregor2010-08-271-0/+1
| | | | | | declarator, the very definition of "low-hanging fruit". llvm-svn: 112274
* createMainFileID doesn't need its IncludePos argument, sinceDan Gohman2010-08-271-1/+1
| | | | | | | the main file isn't an included file, and the IncludePos is always SourceLocation(). llvm-svn: 112269
* Implement code completion for @selector expressionsDouglas Gregor2010-08-261-0/+1
| | | | llvm-svn: 112186
* Move the sorting of code-completion results out of the main path andDouglas Gregor2010-08-261-3/+1
| | | | | | | | | | | into the clients, e.g., the printing code-completion consumer and c-index-test. Clients may want to re-sort the results anyway. Provide a libclang function that sorts the results. 3rd try. How embarrassing. llvm-svn: 112180
* Revert r112149, "Move the sorting of code-completion results out of the mainDaniel Dunbar2010-08-261-1/+3
| | | | | | path and ...", it is failing tests. llvm-svn: 112161
* Move the sorting of code-completion results out of the main path andDouglas Gregor2010-08-261-3/+1
| | | | | | | | | into the clients, e.g., the printing code-completion consumer and c-index-test. Clients may want to re-sort the results anyway. Provide a libclang function that sorts the results. llvm-svn: 112149
* Revert "Move the sorting of code-completion results out of the main path andDouglas Gregor2010-08-261-1/+3
| | | | | | | into the clients", because the C standard library sucks. Where's my stable sort, huh? llvm-svn: 112121
* Move the sorting of code-completion results out of the main path andDouglas Gregor2010-08-251-3/+1
| | | | | | | into the clients, e.g., the printing code-completion consumer and c-index-test. Clients may want to re-sort the results anyway. llvm-svn: 112095
* When combining the code-completion results from Sema long with theDouglas Gregor2010-08-251-2/+6
| | | | | | | | code-completion results cached by ASTUnit, sort the resulting result set. This makes testing far, far easier, so this commit also includes tests for the previous few fixes. llvm-svn: 112070
* Add a missing caseDouglas Gregor2010-08-251-0/+1
| | | | llvm-svn: 112065
* Fix an off-by-one error when computing the precompiled preamble forDouglas Gregor2010-08-251-1/+2
| | | | | | | code completion. We were allowing the preamble to include the line that we're code-completing on. Again, testcase is forthcoming. llvm-svn: 112064
* Make the cursor kind of macro-name-only completions produced byDouglas Gregor2010-08-251-1/+4
| | | | | | | ASTUnit match those produced directly by code completion. Test case is forthcoming. llvm-svn: 112063
* Teach Sema to live without CodeCompleteConsumer.h.John McCall2010-08-251-6/+6
| | | | llvm-svn: 112028
* Frontend: Add basic -H support.Daniel Dunbar2010-08-242-9/+44
| | | | | | | - I didn't implement the GCC "multiple include guard" detection parts, because it doesn't seem useful or obvious. llvm-svn: 111983
* correct the -isystem option to not add the -isysroot path. Only the weirdChris Lattner2010-08-242-7/+8
| | | | | | -iwithsysroot flag should do that. This fixes rdar://8345942 llvm-svn: 111979
* Implement code completion for preprocessor expressions and in macroDouglas Gregor2010-08-241-1/+3
| | | | | | arguments. llvm-svn: 111976
* Implement -iwithsysroot, an apple extension which is a close cousin of -isystem.Chris Lattner2010-08-241-1/+1
| | | | | | | Instead of implementing -isystem, I accidentally implemented this cousin. Next up is to implement -isystem right. llvm-svn: 111966
* Implement preprocessor code completion where a macro name is expected,Douglas Gregor2010-08-241-5/+22
| | | | | | | e.g., after #ifdef/#ifndef or #undef, or inside a defined <macroname> expression in a preprocessor conditional. llvm-svn: 111954
* Move ExecuteCompilerInvocation to a new library FrontendToolPeter Collingbourne2010-08-242-156/+0
| | | | | | | | | | r110903 introduced a dependency from Frontend to every library that declared an Action by introducing Action references that previously resided in the driver in the file ExecuteCompilerInvocation.cpp. This patch moves ExecuteCompilerInvocation to a new library named FrontendTool which is intended to bear these dependencies. llvm-svn: 111873
* Introduce new libclang API functions that determine the availabilityDouglas Gregor2010-08-231-1/+4
| | | | | | | of a cursor or code-completion result, e.g., whether that result refers to an unavailable, deleted, or deprecated declaration. llvm-svn: 111858
* Don't include macro results when we're completing a declarator.Douglas Gregor2010-08-231-3/+1
| | | | llvm-svn: 111830
* Introduce a new code-completion point when we're parsing aDouglas Gregor2010-08-231-2/+8
| | | | | | | | | declarator. Here, we can only see a few things (e.g., cvr-qualifiers, nested name specifiers) and we do not want to provide other non-macro completions. Previously, we would end up in recovery mode and would provide a large number of non-relevant completions. llvm-svn: 111818
* Abstract out member-pointer creation. I'm really unhappy about the currentJohn McCall2010-08-222-7/+5
| | | | | | | | duplication between the constant and non-constant paths in all of this. Implement ARM ABI semantics for member pointer constants and conversion. llvm-svn: 111772
* Detabify.Eli Friedman2010-08-221-1/+1
| | | | llvm-svn: 111768
* Visual Studio tools used on win32 hosts when targeting win32.Michael J. Spencer2010-08-211-2/+12
| | | | llvm-svn: 111748
* Fix typo in comment.Michael J. Spencer2010-08-211-1/+1
| | | | llvm-svn: 111729
* Another step in the process of making the parser depend on Sema:John McCall2010-08-202-2/+2
| | | | | | | | | - move DeclSpec &c into the Sema library - move ParseAST into the Parse library Reflect this change in a thousand different includes. Reflect this change in the link orders. llvm-svn: 111667
* Eliminate some extraneous whitespace in the machine-parseable Fix-It output.Douglas Gregor2010-08-201-2/+2
| | | | llvm-svn: 111610
* When performing code-completion in the presence of a preamble, makeDouglas Gregor2010-08-201-8/+13
| | | | | | | | | sure to (1) actually use the remapped files we were given rather than old data, and (2) keep the remapped files alive until the code-completion results are destroyed. Big thanks to Daniel for the test case. llvm-svn: 111597
* When we decide not to reuse a precompiled preamble, clear out theDouglas Gregor2010-08-201-2/+18
| | | | | | previous precompiled preamble completely. Fixes <rdar://problem/8330950>. llvm-svn: 111590
* Add machine-parseable Fix-It output as part of diagnostics, under theDouglas Gregor2010-08-192-0/+45
| | | | | | flag -fdiagnostics-parseable-fixits, from Eelis van der Weegen! llvm-svn: 111557
* Fix a loop overrun in ComputePreamble when the last remapped file was erased,Daniel Dunbar2010-08-191-0/+4
| | | | | | | | and reenable crash recovery test. - Reparsing is still very crashy / weird, so I had to sprinkle random code into the remapped input to get it to do what I want (i.e., crash!). llvm-svn: 111550
* Plug a leak when precompiling the preamble in ASTUnit.Douglas Gregor2010-08-191-7/+21
| | | | llvm-svn: 111504
* Make sure to initialize ASTUnit::UnsafeToFreeDouglas Gregor2010-08-191-1/+2
| | | | llvm-svn: 111490
* Rename the ASTReader header files.Sebastian Redl2010-08-183-3/+3
| | | | llvm-svn: 111474
* More PCH -> AST renaming.Sebastian Redl2010-08-183-12/+12
| | | | llvm-svn: 111472
* Rename various classes from PCH to AST.Sebastian Redl2010-08-183-5/+5
| | | | llvm-svn: 111471
* Rename PCHReader to ASTReader.Sebastian Redl2010-08-183-16/+16
| | | | llvm-svn: 111467
* Rename PCHWriter.h to ASTWriter.hSebastian Redl2010-08-182-2/+2
| | | | llvm-svn: 111466
* Rename PCHWriter to ASTWriterSebastian Redl2010-08-181-2/+2
| | | | llvm-svn: 111463
* When creating an ASTUnit by parsing source code, set DisableFree toDouglas Gregor2010-08-181-1/+1
| | | | | | | | false (not true), so that the CompilerInstance will actually free data structures when it's done. This fixes a major leak with libclang's in-process code completion. llvm-svn: 111457
* Simplify the ownership model for DiagnosticClients, which was reallyDouglas Gregor2010-08-183-33/+23
| | | | | | | convoluted and a bit leaky. Now, the Diagnostic object owns its DiagnosticClient. llvm-svn: 111437
* Simplify FixItHint by eliminated the unnecessary InsertionLocDouglas Gregor2010-08-181-2/+2
| | | | | | location. Patch by Eelis van der Weegen! llvm-svn: 111362
OpenPOWER on IntegriCloud