summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend
Commit message (Collapse)AuthorAgeFilesLines
...
* Introduce -flimit-debug-info.Devang Patel2010-09-301-0/+1
| | | | | | In this experimental mode try avoiding debug info emission for classes as much as possible. The goal is to reduce size of produced debuginfo without reducing quality of debug info in general. This is a work in progress. llvm-svn: 115188
* Added two new command line arguments:Marcin Swiderski2010-09-301-0/+2
| | | | | | | -cfg-add-implicit-dtors - sets CFG::BuildOptions::AddImplicitDtors for AnalysisCosumer to true, -cfg-add-initializers - sets CFG::BuildOptions::AddInitializers for AnalysisCosumer to true. llvm-svn: 115142
* Frontend/XML: Add support for printing nested structures, patch by Martin ↵Daniel Dunbar2010-09-291-0/+12
| | | | | | Vejnár! llvm-svn: 115041
* Remove libclang logging codeDouglas Gregor2010-09-271-32/+2
| | | | llvm-svn: 114836
* When setting the globally-visible declarations for a particularDouglas Gregor2010-09-241-2/+32
| | | | | | | | | | | | | identifier, we may have a Sema object but no translation unit scope (because parsing is finished). In this case, we still need to update the IdResolver, which might still be used when writing a PCH containing another PCH (without chaining). This bug manifested as a failure with precompiled preambles. Also, add a little environment-variable-sensitive logging for libclang. llvm-svn: 114774
* Teach libclang to enable multithreading in LLVM, since libclang clients are ↵Douglas Gregor2010-09-241-0/+3
| | | | | | likely to be multithreaded. Also move the printing of timers to somewhere better for multithreaded libclang clients llvm-svn: 114760
* Synchronize globally-cached code completion results with the resultsDouglas Gregor2010-09-231-4/+6
| | | | | | | | | | | | | | provided when the optimization is disabled. In particular, split the completion context CCC_Other into two contexts: CCC_Other, which means that it's an undisclosed context for which any other results are unwelcome, and CCC_Recovery, which is used in recovery cases. Since we're now using the completion context within the completion results builder, make sure that it's always set to something. Fixes <rdar://problem/8470644>. llvm-svn: 114704
* Tweak priorities for some types and macros:Douglas Gregor2010-09-201-0/+1
| | | | | | | | | | - In Objective-C, we prefer BOOL to bool for historic reasons; slightly penalize "bool". - Treat Nil macro as a NULL pointer constant. - Treat YES, NO, true, and false macros as constants. - Treat the bool macro as a type. llvm-svn: 114356
* Add a -ftrapv-handler= option which allows a handler to invoke instead of ↵David Chisnall2010-09-171-2/+11
| | | | | | simply aborting when a signed operation overflows. This mirrors the (GCC-incompatible) behaviour from clang 1.0 and 1.1 when -ftrapv was specified, but allows the handler to be defined for each compilation unit. llvm-svn: 114192
* Use a temporary file for output which gets renamed after all the writing is ↵Argyrios Kyrtzidis2010-09-171-14/+52
| | | | | | | | finished. This mainly prevents failures and/or crashes when multiple processes try to read/write the same PCH file. (rdar://8392711&8294781); suggestion & review by Daniel! llvm-svn: 114187
* Handle '#line' in '-E' that has an empty file name. Fixes ↵Ted Kremenek2010-09-171-2/+2
| | | | | | <rdar://problem/8439412>. llvm-svn: 114142
* Introduce a new code-completion context for a parenthesizedDouglas Gregor2010-09-141-5/+12
| | | | | | | | expression, e.g., after the '(' that could also be a type cast. Here, we provide types as code-completion results in C/Objective-C (C++ already had them), although we wouldn't in a normal expression context. llvm-svn: 113904
* Revert "CMake: Update to use standard CMake dependency tracking facilities ↵Michael J. Spencer2010-09-131-15/+12
| | | | | | | | | | | | | instead" This reverts commit r113631 Conflicts: CMakeLists.txt lib/CodeGen/CMakeLists.txt llvm-svn: 113817
* The two libclang crash-recovery tests that involve precompiledDouglas Gregor2010-09-111-0/+7
| | | | | | | | | | preambles end up leaving the precompiled preambles around. This is by design, since we do minimal cleanup during crash recovery. However, it's unfortunate for testing, so introduce a hook that allows these two tests to put the precompiled preamble somewhere where we can delete them after testing. llvm-svn: 113698
* If we fail to create a temporary file for the precompiled preamble,Douglas Gregor2010-09-111-1/+10
| | | | | | | | | just abort creation of the precompiled preamble rather than doing silly things. This is the second part of the fix for the weird preamble-related failures on Windows. Big thanks to Francois Pichet for the great detective work! llvm-svn: 113697
* add latest gentoo gcc pathNuno Lopes2010-09-111-0/+4
| | | | llvm-svn: 113696
* Tweak GetPreamblePCHPath() to more closely match the behavior of theDouglas Gregor2010-09-111-0/+5
| | | | | | | | Windows GetTempPath() function, and be sure to create the directory in which the precompiled preamble will reside before creating the temporary file itself. llvm-svn: 113695
* Make sure we're producing a newline in the preprocessed output beforeDouglas Gregor2010-09-101-2/+1
| | | | | | emitting a #pragma, whenever one is needed. Fixes <rdar://problem/8417307>. llvm-svn: 113648
* CMake: Update to use standard CMake dependency tracking facilities insteadMichael J. Spencer2010-09-101-12/+15
| | | | | | of whatever we were using before... llvm-svn: 113631
* Added AnalyzerStatsChecker, a path sensitive check that reports visitation ↵Tom Care2010-09-101-0/+3
| | | | | | statistics about analysis. Running clang with the -analyzer-stats flag will emit warnings containing the information. We can then run a postanalysis script to take this data and give useful information about how much the analyzer missed in a project. llvm-svn: 113568
* When we parse a pragma, keep track of how that pragma was originallyDouglas Gregor2010-09-091-4/+20
| | | | | | | | spelled (#pragma, _Pragma, __pragma). In -E mode, use that information to add appropriate newlines when translating _Pragma and __pragma into #pragma, like GCC does. Fixes <rdar://problem/8412013>. llvm-svn: 113553
* Frontend: Add -cxx-system-include option which can be used to specify anDaniel Dunbar2010-09-092-2/+13
| | | | | | | explicit list for the C++ system include directories at the -cc1 level, as an alternative to the horrible AddDefaultCPlusPlusIncludePaths(). llvm-svn: 113505
* Fix indentation.Daniel Dunbar2010-09-091-30/+28
| | | | llvm-svn: 113504
* Clean up CMake dependenciesDouglas Gregor2010-09-091-6/+1
| | | | llvm-svn: 113489
* Add another missing CMake dependency.Daniel Dunbar2010-09-081-0/+1
| | | | llvm-svn: 113443
* Clean up some of the CMake dependenciesDouglas Gregor2010-09-081-0/+14
| | | | llvm-svn: 113416
* Frontend/-H: Add comment on why I used a temporary string here.Daniel Dunbar2010-09-081-0/+1
| | | | llvm-svn: 113379
* Tell the VS headers that char16_t and char32_t are keywords, so yvals.h ↵Steven Watanabe2010-09-051-0/+4
| | | | | | doesn't try to define them as typedefs. llvm-svn: 113126
* zap dead code.Chris Lattner2010-09-041-2/+0
| | | | llvm-svn: 113074
* fix lookup of bits/c++config.h on mingw, patch by Ismail Donmez!Chris Lattner2010-09-031-0/+2
| | | | llvm-svn: 112969
* First test commit by Francois Pichet. _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES ↵Francois Pichet2010-09-031-3/+0
| | | | | | is not a predefined macro, remove it. llvm-svn: 112953
* Add support for Borland extensions via option -fborland-extensionsDawn Perchik2010-09-021-0/+3
| | | | | | (original patch r112791 was reverted due to a bug). llvm-svn: 112915
* 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
OpenPOWER on IntegriCloud