llvm-project/clang/Basic
Ted Kremenek 89fbadd3be Modified the internals of Diagnostic and DiagnosticClient to use
SourceManager*'s instead of SourceManager&'s. This allows the client specify a
NULL SourceManager when using a default constructed SourceLocation. Thus the
SourceManager can be NULL when the SourceLocation's isValid() == false.

The interface to most clients of Diagnostic remains the same.
Diagnostic::Report() is overload to either accept a SourceLocation and a
SourceManager&, or neither. Thus clients that do not have a SourceManager
cannot specify a SourceLocation.

Modified TextDiagnostics* to use this new interface.
Modified the driver to not passed in SourceManager when warning about "-I-".

llvm-svn: 44887
2007-12-11 22:57:35 +00:00
..
Diagnostic.cpp Modified the internals of Diagnostic and DiagnosticClient to use 2007-12-11 22:57:35 +00:00
FileManager.cpp Removed serialization of FileEntry and DirectoryEntry. This objects will 2007-12-04 22:42:20 +00:00
IdentifierTable.cpp Fixed bug in the serialization of SelectorTable where we did not register the 2007-12-01 04:43:17 +00:00
LangOptions.cpp Implemented serialization of LangOptions. 2007-12-05 19:06:15 +00:00
Makefile Fix these to allow clang to be in any dir. 2006-10-26 04:56:55 +00:00
SourceLocation.cpp Simplified Serialization code for SourceLocation and SourceRange, and 2007-11-01 22:25:41 +00:00
SourceManager.cpp Added newline to end of file. 2007-12-10 18:01:25 +00:00
TargetInfo.cpp Mega-patch: ripped SourceManager out of Diagnostic/DiagnosticClient. Now 2007-12-11 21:27:55 +00:00
TokenKinds.cpp Modified current clients of Bitcode-Object serialization to use the 2007-10-24 19:06:02 +00:00