| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | Implement a new type of FileID: FileIDInfo::MacroExpansion. For tokens that | Chris Lattner | 2006-06-21 | 1 | -2/+32 | |
| | | | | | | | | | | came from a macro expansion, this allows us to keep track of both where the character data came from and where the logical position of the token is (at the expansion site). This implements Preprocessor/indent_macro.c, and reduces the number of cpp iostream -E diffs vs GCC from 2589 to 2297. llvm-svn: 38557 | |||||
| * | Modify SourceManager to make way for future macro locations and #line support | Chris Lattner | 2006-06-20 | 1 | -4/+5 | |
| | | | | | | | no functionality change yet llvm-svn: 38556 | |||||
| * | Make a fundamental change to the way we represent the location of LexerToken's. | Chris Lattner | 2006-06-18 | 1 | -0/+10 | |
| | | | | | | | | | | | | | | | Now, instead of keeping a pointer to the start of the token in memory, we keep the start of the token as a SourceLocation node. This means that each LexerToken knows the full include stack it was created with, and means that the LexerToken isn't reliant on a "CurLexer" member to be around (lexer tokens would previously go out of scope when their lexers were deallocated). This simplifies several things, and forces good cleanup elsewhere. Now the Preprocessor is the one that knows how to dump tokens/macros and is the one that knows how to get the spelling of a token (it has all the context). llvm-svn: 38551 | |||||
| * | Initial checkin of c-language parser | Chris Lattner | 2006-06-18 | 1 | -0/+213 | |
| llvm-svn: 38539 | ||||||

