Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Remove this hard-coded buffer size. In some basic experiments preprocessing | Dan Gohman | 2010-04-16 | 1 | -2/+0 | |
| | | | | | | | | | | | large files, this doesn't seem significantly better than just letting raw_ostream pick a buffer size. This code predates raw-ostream's automatic buffer sizing; in fact, it was introduced as part of the code which would eventually become raw_ostream. llvm-svn: 101473 | |||||
* | Improve line marker directive locations, patch by Jordy Rose | Chris Lattner | 2010-04-14 | 1 | -1/+1 | |
| | | | | llvm-svn: 101226 | |||||
* | make the token paste avoidance logic turn "..." into ".. ." instead of ". . ." | Chris Lattner | 2010-04-14 | 1 | -3/+6 | |
| | | | | | | when avoiding paste. Patch by David Peixotto! llvm-svn: 101218 | |||||
* | cache the PP's SourceManager. | Chris Lattner | 2010-04-13 | 1 | -5/+6 | |
| | | | | llvm-svn: 101099 | |||||
* | make the preprocessor listen to linemarker directives in -E mode, | Chris Lattner | 2010-04-13 | 1 | -10/+14 | |
| | | | | | | PR6101. This is based on a patch and testcase by Jordy Rose! llvm-svn: 101097 | |||||
* | Entering the main source file in the preprocessor can fail if the | Douglas Gregor | 2010-03-17 | 1 | -2/+4 | |
| | | | | | | source file has been changed. Handle that failure more gracefully. llvm-svn: 98727 | |||||
* | Use SmallString instead of SmallVector | Kovarththanan Rajaratnam | 2010-03-13 | 1 | -1/+1 | |
| | | | | llvm-svn: 98436 | |||||
* | Rename to addPPCallbacks since we're effectively adding a callback and maybe ↵ | Kovarththanan Rajaratnam | 2010-03-07 | 1 | -4/+4 | |
| | | | | | | chaining it to an existing one llvm-svn: 97913 | |||||
* | Revert 97324. Chris says this cleanup could hurt -E performance. | Benjamin Kramer | 2010-02-27 | 1 | -8/+24 | |
| | | | | llvm-svn: 97331 | |||||
* | Simplify code. | Benjamin Kramer | 2010-02-27 | 1 | -24/+8 | |
| | | | | llvm-svn: 97324 | |||||
* | Add an overload of Preprocessor::getSpelling which takes a SmallVector and | Benjamin Kramer | 2010-02-27 | 1 | -6/+1 | |
| | | | | | | returns a StringRef. Use it to simplify some repetitive code. llvm-svn: 97322 | |||||
* | Avoid an instantiation of std::sort. | Benjamin Kramer | 2010-01-19 | 1 | -14/+10 | |
| | | | | llvm-svn: 93882 | |||||
* | Neil points out that this could be simplified, do it. | Chris Lattner | 2009-12-09 | 1 | -15/+9 | |
| | | | | llvm-svn: 90927 | |||||
* | fix -dM with variadic macros, PR5699 | Chris Lattner | 2009-12-07 | 1 | -8/+15 | |
| | | | | llvm-svn: 90735 | |||||
* | some code cleanup. | Chris Lattner | 2009-12-07 | 1 | -9/+14 | |
| | | | | llvm-svn: 90732 | |||||
* | Integrate the following from the 'objective-rewrite' branch: | Steve Naroff | 2009-12-06 | 1 | -7/+13 | |
| | | | | | | http://llvm.org/viewvc/llvm-project?view=rev&revision=71473 llvm-svn: 90688 | |||||
* | Add PreprocessorOutputOptions to CompilerInvocation, and move initialization to | Daniel Dunbar | 2009-11-11 | 1 | -1/+1 | |
| | | | | | | clang-cc/Options.cpp llvm-svn: 86828 | |||||
* | Add PreprocessorOutputOptions, for things like -dM, -C, -CC which control -E | Daniel Dunbar | 2009-11-11 | 1 | -10/+16 | |
| | | | | | | mode. llvm-svn: 86827 | |||||
* | Fix buffer overflow in PrintMacroDefinition() by inverting the check to see ↵ | Ted Kremenek | 2009-11-03 | 1 | -1/+1 | |
| | | | | | | if the target buffer needs to be resized. Fixes <rdar://problem/7255377>. llvm-svn: 85872 | |||||
* | PR5218: Replace IdentifierInfo::getName with StringRef version, now that clients | Daniel Dunbar | 2009-10-18 | 1 | -2/+2 | |
| | | | | | | are updated. llvm-svn: 84447 | |||||
* | Move misc clients to IdentifierInfo StringRef API. | Daniel Dunbar | 2009-10-18 | 1 | -2/+2 | |
| | | | | | | | | | - strcmp -> == - OS.write(II->getName() ...) -> OS << II->getNameStr() - Avoid std::string concatenation - Use getNameStr().str() when an std::string is really needed. llvm-svn: 84437 | |||||
* | Remove tabs, and whitespace cleanups. | Mike Stump | 2009-09-09 | 1 | -48/+48 | |
| | | | | llvm-svn: 81346 | |||||
* | no really, add the lines :) | Chris Lattner | 2009-06-15 | 1 | -1/+1 | |
| | | | | llvm-svn: 73367 | |||||
* | Fix PR2741 by making our newline tracking be aware of newlines that | Chris Lattner | 2009-06-15 | 1 | -0/+35 | |
| | | | | | | can occur in the middle of comment tokens. llvm-svn: 73365 | |||||
* | PR4288: Make -dD (dump macros with preprocessed source) play nicely with | Eli Friedman | 2009-06-02 | 1 | -2/+7 | |
| | | | | | | # line directives. llvm-svn: 72724 | |||||
* | Use v.data() instead of &v[0] when SmallVector v might be empty. | Jay Foad | 2009-05-21 | 1 | -1/+1 | |
| | | | | llvm-svn: 72210 | |||||
* | Clean up some unnecessary includes. | Eli Friedman | 2009-05-19 | 1 | -2/+0 | |
| | | | | llvm-svn: 72101 | |||||
* | Move clang-cc.h to lib/Frontend/Utils.h, and move the associated .cpp | Eli Friedman | 2009-05-19 | 1 | -0/+467 | |
files to lib/Frontend. llvm-svn: 72099 |