diff options
author | Ted Kremenek <kremenek@apple.com> | 2007-12-11 22:57:35 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2007-12-11 22:57:35 +0000 |
commit | 89fbadd3be10a996ad533de23eba704c2a6befa6 (patch) | |
tree | fa89bed9aecaec44af7b6a9931d0ab1e0625d833 /clang/Driver/RewriteTest.cpp | |
parent | 4e56ed5fabcc8a6ad75d99fa99e9a4830732d071 (diff) | |
download | bcm5719-llvm-89fbadd3be10a996ad533de23eba704c2a6befa6.tar.gz bcm5719-llvm-89fbadd3be10a996ad533de23eba704c2a6befa6.zip |
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
Diffstat (limited to 'clang/Driver/RewriteTest.cpp')
0 files changed, 0 insertions, 0 deletions