| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Teach Preprocessor::macro_begin/macro_end to lazily load all macro | Douglas Gregor | 2010-01-04 | 2 | -4/+32 |
| | | | | | | | | | definitions from a precompiled header. This ensures that code-completion with macro names behaves the same with or without precompiled headers. llvm-svn: 92497 | ||||
| * | Avoid an unnecessary copy of Predefines. getMemBufferCopy does the null ↵ | Benjamin Kramer | 2009-12-31 | 1 | -12/+3 |
| | | | | | | | termination for us. llvm-svn: 92358 | ||||
| * | Convert to StringRef, avoid a memcpy in the common case. | Benjamin Kramer | 2009-12-31 | 1 | -19/+16 |
| | | | | | llvm-svn: 92357 | ||||
| * | use best-fit instead of first-fit when reusing a MacroArgs object, | Chris Lattner | 2009-12-28 | 1 | -7/+16 |
| | | | | | | | this speeds up Eonly on the testcase in PR5888 from 30.5s to 0.85s llvm-svn: 92203 | ||||
| * | The PreExpArgTokens array is indexed with an argument #, | Chris Lattner | 2009-12-28 | 3 | -7/+8 |
| | | | | | | | | not a token number. Fix the reserve logic to get the right amount of space. llvm-svn: 92202 | ||||
| * | Diagnose out-of-bounds floating-point constants. Fixes rdar://problem/6974641 | John McCall | 2009-12-24 | 1 | -13/+4 |
| | | | | | llvm-svn: 92127 | ||||
| * | comment tweak | Chris Lattner | 2009-12-23 | 1 | -1/+1 |
| | | | | | llvm-svn: 92055 | ||||
| * | fix the microsoft "charify" extension to return the charified token | Chris Lattner | 2009-12-23 | 1 | -1/+1 |
| | | | | | | | | as a character literal, not a string literal. This might fix rdar://7486575 llvm-svn: 92025 | ||||
| * | Eliminate a completely unnecessary buffer copy when parsing float literals. | John McCall | 2009-12-23 | 1 | -6/+1 |
| | | | | | llvm-svn: 91974 | ||||
| * | reimplement r90860, fixing a couple of problems: | Chris Lattner | 2009-12-17 | 1 | -9/+21 |
| | | | | | | | | | | 1. Don't make a copy of LangOptions every time a lexer is created. 2. Don't make CharInfo global mutable state. 3. Fix the implementation to properly treat ^Z as EOF instead of as horizontal whitespace, which matches the semantic implemented by VC++. llvm-svn: 91586 | ||||
| * | enable reuse of MacroArgs objects. This is a small (2.5%) win | Chris Lattner | 2009-12-15 | 1 | -10/+32 |
| | | | | | | | | | | | on PR5610 (2.185 -> 2.130s). The big issue is that this is making insanely huge macro argument lists with over a million tokens in it. The reason that mallco and free are so expensive is that we are actually going to the kernel to get it, and switching to a bump pointer allocator won't change this in an interesting way. llvm-svn: 91449 | ||||
| * | set up the machinery for a MacroArgs cache hanging off Preprocessor. | Chris Lattner | 2009-12-15 | 3 | -2/+29 |
| | | | | | | | | | | We creating and free thousands of MacroArgs objects (and the related std::vectors hanging off them) for the testcase in PR5610 even though there are only ~20 live at a time. This doesn't actually use the cache yet. llvm-svn: 91391 | ||||
| * | move the VarargsElided member of MacrosArgs to shrink the MacroArgs struct | Chris Lattner | 2009-12-14 | 4 | -15/+17 |
| | | | | | | | | on 64-bit targets. Pass Preprocessor into create/destroy methods of MacroArgs even though it isn't used yet. llvm-svn: 91345 | ||||
| * | fix typo | Chris Lattner | 2009-12-14 | 1 | -1/+1 |
| | | | | | llvm-svn: 91343 | ||||
| * | teach clang to recover gracefully from conflict markers left in source | Chris Lattner | 2009-12-14 | 1 | -14/+133 |
| | | | | | | | files: PR5238. llvm-svn: 91270 | ||||
| * | fix rdar://7466570 - Be more bug compatible with GCC when it comes to | Chris Lattner | 2009-12-14 | 1 | -2/+21 |
| | | | | | | | | | expanding directives withing macro expansions. This is undefined behavior according to 6.10.3p11, so we might as well be undefined in ways similar to GCC. llvm-svn: 91266 | ||||
| * | formatting changes. | Chris Lattner | 2009-12-14 | 1 | -4/+5 |
| | | | | | llvm-svn: 91263 | ||||
| * | reduce indentation. | Chris Lattner | 2009-12-14 | 1 | -15/+14 |
| | | | | | llvm-svn: 91262 | ||||
| * | Don't expand tabs when computing the offset from the code-completion column | Douglas Gregor | 2009-12-08 | 1 | -8/+2 |
| | | | | | llvm-svn: 90881 | ||||
| * | Integrate the following from the 'objective-rewrite' branch: | Steve Naroff | 2009-12-08 | 1 | -4/+9 |
| | | | | | | | http://llvm.org/viewvc/llvm-project?view=rev&revision=80043 llvm-svn: 90860 | ||||
| * | Get rid of some diagnostics that don't follow our rules for -pedantic | Eli Friedman | 2009-12-08 | 1 | -7/+0 |
| | | | | | | | | diagnostics (specifically, that any extension in a compiler-reserved namespace shouldn't trigger a diagnostic). llvm-svn: 90826 | ||||
| * | Unbreak and add test case for r90276, a situation in which getBuffer is ↵ | Daniel Dunbar | 2009-12-06 | 1 | -1/+1 |
| | | | | | | | | | expected to fail. Also, update SourceManager.h doxyments for getBuffer() to reflect reality. llvm-svn: 90701 | ||||
| * | Change Preprocessor::EnterSourceFile to make ErrorStr non-optional, clients ↵ | Daniel Dunbar | 2009-12-06 | 3 | -5/+8 |
| | | | | | | | should be forced to deal with error conditions. llvm-svn: 90700 | ||||
| * | minor tidy. | Chris Lattner | 2009-12-04 | 1 | -6/+5 |
| | | | | | llvm-svn: 90543 | ||||
| * | Minor cleanup to the code-completion-point logic suggested by Chris. | Douglas Gregor | 2009-12-03 | 1 | -1/+1 |
| | | | | | llvm-svn: 90459 | ||||
| * | Add 'has_feature(cxx_exceptions)' to allow code to determine via ↵ | Ted Kremenek | 2009-12-03 | 1 | -0/+3 |
| | | | | | | | preprocessor logic if C++ exceptions are enabled. llvm-svn: 90378 | ||||
| * | Rename has_feature(rtti) to has_feature(cxx_rtti) for clarity. | Ted Kremenek | 2009-12-03 | 1 | -3/+3 |
| | | | | | llvm-svn: 90376 | ||||
| * | Add "has_feature" support for C++ RTTI. | Ted Kremenek | 2009-12-03 | 1 | -0/+3 |
| | | | | | llvm-svn: 90368 | ||||
| * | Extend the source manager with the ability to override the contents of | Douglas Gregor | 2009-12-02 | 2 | -23/+68 |
| | | | | | | | | | | | files with the contents of an arbitrary memory buffer. Use this new functionality to drastically clean up the way in which we handle file truncation for code-completion: all of the truncation/completion logic is now encapsulated in the preprocessor where it belongs (<rdar://problem/7434737>). llvm-svn: 90300 | ||||
| * | pass the reason for failure up from MemoryBuffer and report it | Chris Lattner | 2009-12-01 | 2 | -4/+7 |
| | | | | | | | | | | | | | in diagnostics when we fail to open a file. This allows us to report things like: $ clang test.c -I. test.c:2:10: fatal error: error opening file './foo.h': Permission denied #include "foo.h" ^ llvm-svn: 90276 | ||||
| * | Fix PR5633 by making the preprocessor handle the case where we can | Chris Lattner | 2009-11-30 | 3 | -11/+22 |
| | | | | | | | | | | | stat a file but where mmaping it fails. In this case, we emit an error like: t.c:1:10: fatal error: error opening file '../../foo.h' instead of "cannot find file". llvm-svn: 90110 | ||||
| * | remove stall comment | Nuno Lopes | 2009-11-29 | 1 | -2/+1 |
| | | | | | llvm-svn: 90080 | ||||
| * | Remove remaining VISIBILITY_HIDDEN from anonymous namespaces. | Benjamin Kramer | 2009-11-28 | 1 | -8/+7 |
| | | | | | llvm-svn: 90044 | ||||
| * | Cleanup llvm/Support/Compiler.h include in header files | Kovarththanan Rajaratnam | 2009-11-28 | 1 | -0/+1 |
| | | | | | llvm-svn: 90040 | ||||
| * | cleanup parsing of MS integer suffixes a little. this fixes PR5616 | Nuno Lopes | 2009-11-28 | 1 | -27/+15 |
| | | | | | | | btw, I believe that isMicrosoftInteger can go away; it's not read anywhere llvm-svn: 90036 | ||||
| * | Move DISABLE_INLINE to the front of the decl so MSVC can parse it. Patch by ↵ | Benjamin Kramer | 2009-11-14 | 1 | -4/+4 |
| | | | | | | | Amine Khaldi! llvm-svn: 88797 | ||||
| * | Add static version of Preprocessor::getSpelling. | Daniel Dunbar | 2009-11-14 | 1 | -2/+12 |
| | | | | | llvm-svn: 88732 | ||||
| * | Wherein the TargetInfo argument to Preprocessor is made 'const' and propogated. | Daniel Dunbar | 2009-11-13 | 2 | -2/+2 |
| | | | | | llvm-svn: 87087 | ||||
| * | Switch PTHManager to using diagnostics for most errors. | Daniel Dunbar | 2009-11-12 | 1 | -24/+15 |
| | | | | | | | Also, always give errors on a token-cache PTH failure. llvm-svn: 86939 | ||||
| * | Remove an overly-eager assertion when replacing tokens with an | Douglas Gregor | 2009-11-12 | 1 | -2/+0 |
| | | | | | | | | | | | | annotation token, because some of the tokens we're annotating might not be in the set of cached tokens (we could have consumed them unconditionally). Also, move the tentative parsing from ParseTemplateTemplateArgument into the one caller that needs it, improving recovery. llvm-svn: 86904 | ||||
| * | Allow Preprocessor to take ownership of the HeaderSearch object. I think it ↵ | Daniel Dunbar | 2009-11-11 | 1 | -1/+7 |
| | | | | | | | should probably always own the header search object, but I'm not sure... llvm-svn: 86882 | ||||
| * | Add Diagnostic::Report method for reporting diagnostics without a location. | Daniel Dunbar | 2009-11-10 | 1 | -5/+4 |
| | | | | | llvm-svn: 86760 | ||||
| * | Make LookUpIdentifierInfo const. This makes the Identifiers table mutable and is | Daniel Dunbar | 2009-11-05 | 1 | -1/+1 |
| | | | | | | | | | | a little fuzzy, but conceptually it's just uniquing the identifier. Chris, please review. I debated splitting into const/non-const versions where the const one propogated constness to the resulting IdentifierInfo*. llvm-svn: 86106 | ||||
| * | StringRefize Preprocessor::getIdentifierInfo. | Daniel Dunbar | 2009-11-05 | 1 | -2/+2 |
| | | | | | llvm-svn: 86105 | ||||
| * | Kill PreprocessorFactory, which was both morally repugnant and totally unused. | Daniel Dunbar | 2009-11-04 | 1 | -2/+0 |
| | | | | | llvm-svn: 86076 | ||||
| * | Added __has_include and __has_include_next. | John Thompson | 2009-11-02 | 1 | -2/+129 |
| | | | | | llvm-svn: 85834 | ||||
| * | Re-arranged some internal functions for coming __has_include changes. | John Thompson | 2009-10-30 | 2 | -62/+70 |
| | | | | | llvm-svn: 85589 | ||||
| * | Update location of DataTypes.h to reflect move in LLVM with r85086. | Chandler Carruth | 2009-10-26 | 1 | -1/+1 |
| | | | | | llvm-svn: 85087 | ||||
| * | Move clients to use IdentifierInfo::getNameStart() instead of getName() | Daniel Dunbar | 2009-10-18 | 4 | -12/+4 |
| | | | | | llvm-svn: 84436 | ||||
| * | Switch to llvm::HashString. | Daniel Dunbar | 2009-10-17 | 1 | -3/+4 |
| | | | | | llvm-svn: 84375 | ||||

