Chris Lattner
262d4e31b9
Improve #pragma comment support by building the string argument and
...
notifying PPCallbacks about it.
llvm-svn: 62333
2009-01-16 18:59:23 +00:00
Chris Lattner
2ff698df60
Implement basic support for parsing #pragma comment, a microsoft extension
...
documented here:
http://msdn.microsoft.com/en-us/library/7f0aews7(VS.80).aspx
This is according to my understanding reading the docs, I don't know if it
really agrees fully with what VC++ allows.
llvm-svn: 62317
2009-01-16 08:21:25 +00:00
Ted Kremenek
300590b584
Just use the SourceLocation of SysHeaderTok when doing a callback to emit #line
...
information. A diff of the -E output for Cocoa.h shows that there is no change
in output.
llvm-svn: 59693
2008-11-20 01:45:11 +00:00
Ted Kremenek
2861cf42fe
Use PreprocessorLexer::getFileID() instead of Lexer::getFileLoc(). This is an intermediate step to having getCurrentLexer() return a PreprocessorLexer* instead of a Lexer*.
...
llvm-svn: 59672
2008-11-19 22:55:25 +00:00
Ted Kremenek
76c3441a4e
When using a PTHLexer, use DiscardToEndOfLine() instead of ReadToEndOfLine().
...
llvm-svn: 59668
2008-11-19 22:21:33 +00:00
Chris Lattner
97b8e84bd7
remove one more Preprocessor::Diag method.
...
llvm-svn: 59512
2008-11-18 08:02:48 +00:00
Chris Lattner
907dfe94e1
Convert the lexer and start converting the PP over to using canonical Diag methods.
...
llvm-svn: 59511
2008-11-18 07:59:24 +00:00
Ted Kremenek
551c82aa7b
Replace more uses of 'CurLexer->' with 'CurPPLexer->'. No performance change.
...
llvm-svn: 59482
2008-11-18 01:12:54 +00:00
Daniel Dunbar
405965323d
Add Preprocessor::RemovePragmaHandler.
...
- No functionality change.
llvm-svn: 57065
2008-10-04 19:17:46 +00:00
Chris Lattner
b03dc76499
clean up a bunch of fixme's I added, by moving
...
DirectoryLookup::DirType into SourceManager.h
llvm-svn: 56692
2008-09-26 21:18:42 +00:00
Daniel Dunbar
56fdb6ae69
More #include cleaning
...
- Kill unnecessary #includes in .cpp files. This is an automatic
sweep so some things removed are actually used, but happen to be
included by a previous header. I tried to get rid of the obvious
examples and this was the easiest way to trim the #includes in one
fell swoop.
- We now return to regularly scheduled development.
llvm-svn: 54632
2008-08-11 06:23:49 +00:00
Chris Lattner
7a51313d8a
Make a major restructuring of the clang tree: introduce a top-level
...
lib dir and move all the libraries into it. This follows the main
llvm tree, and allows the libraries to be built in parallel. The
top level now enforces that all the libs are built before Driver,
but we don't care what order the libs are built in. This speeds
up parallel builds, particularly incremental ones.
llvm-svn: 48402
2008-03-15 23:59:48 +00:00