summaryrefslogtreecommitdiffstats
path: root/clang/Lex/ScratchBuffer.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Reimplement SourceLocation. Instead of having a Chris Lattner2007-07-201-1/+1
| | | | | | | | | | | | | | | | | fileid/offset pair, it now contains a bit discriminating between mapped locations and file locations. This separates the tables for macros and files in SourceManager, and allows better separation of concepts in the rest of the compiler. This allows us to have *many* macro instantiations before running out of 'addressing space'. This is also more efficient, because testing whether something is a macro expansion is now a bit test instead of a table lookup (which also used to require having a srcmgr around, now it doesn't). This is fully functional, but there are several refinements and optimizations left. llvm-svn: 40103
* Finally bite the bullet and make the major change: split the clang namespaceChris Lattner2007-06-151-3/+2
| | | | | | | | | | | | | out of the llvm namespace. This makes the clang namespace be a sibling of llvm instead of being a child. The good thing about this is that it makes many things unambiguous. The bad things is that many things in the llvm namespace (notably data structures like smallvector) now require an llvm:: qualifier. IMO, libsystem and libsupport should be split out of llvm into their own namespace in the future, which will fix this issue. llvm-svn: 39659
* Remove the clang::SourceBuffer class, switch to the llvm::MemoryBuffer class.Chris Lattner2007-04-291-5/+5
| | | | llvm-svn: 39426
* Use a new helper to do this much more simply.Chris Lattner2006-06-301-5/+1
| | | | llvm-svn: 38598
* Expose a new form of the getToken method.Chris Lattner2006-06-301-15/+23
| | | | llvm-svn: 38595
* Give tokens from the scratch buffer correct source locations.Chris Lattner2006-06-291-3/+4
| | | | llvm-svn: 38591
* Initial implementation of the ScratchBuffer class.Chris Lattner2006-06-281-0/+67
llvm-svn: 38588
OpenPOWER on IntegriCloud