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 | 2eefd8657c233bc7c9330acfe475fc270bbe7cab (patch) | |
tree | a5837ec64462cfcf6ad546f8101122d1e5391f87 /Driver/RewriteTest.cpp | |
parent | 61477f7a4ccd3ac785afd9708d77a53869a53a76 (diff) |
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-".
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44887 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Driver/RewriteTest.cpp')
0 files changed, 0 insertions, 0 deletions