]> granicus.if.org Git - clang/commit
Modified the internals of Diagnostic and DiagnosticClient to use
authorTed Kremenek <kremenek@apple.com>
Tue, 11 Dec 2007 22:57:35 +0000 (22:57 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 11 Dec 2007 22:57:35 +0000 (22:57 +0000)
commit2eefd8657c233bc7c9330acfe475fc270bbe7cab
treea5837ec64462cfcf6ad546f8101122d1e5391f87
parent61477f7a4ccd3ac785afd9708d77a53869a53a76
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
Basic/Diagnostic.cpp
Driver/TextDiagnosticBuffer.cpp
Driver/TextDiagnosticBuffer.h
Driver/TextDiagnosticPrinter.cpp
Driver/TextDiagnosticPrinter.h
Driver/TextDiagnostics.cpp
Driver/TextDiagnostics.h
Driver/clang.cpp
include/clang/Basic/Diagnostic.h