Refactoring of Diagnostic class.
commitf9010d2020c6c632a927527588574515841e151b
authorArgiris Kirtzidis <akyrtzi@gmail.com>
Thu, 18 Nov 2010 20:06:41 +0000 (18 20:06 +0000)
committerArgiris Kirtzidis <akyrtzi@gmail.com>
Thu, 18 Nov 2010 20:06:41 +0000 (18 20:06 +0000)
tree7f65080a9221d10495e43911e7bbaeb2724084f7
parentb500edcb581260ad86879329ab2ac1f9d976911b
Refactoring of Diagnostic class.

-Move the stuff of Diagnostic related to creating/querying diagnostic IDs into a new DiagnosticIDs class.
-DiagnosticIDs can be shared among multiple Diagnostics for multiple translation units.
-The rest of the state in Diagnostic object is considered related and tied to one translation unit.
-Have Diagnostic point to the SourceManager that is related with. Diagnostic can now accept just a
   SourceLocation instead of a FullSourceLoc.
-Reflect the changes to various interfaces.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119730 91177308-0d34-0410-b5e6-96231b3b80d8
30 files changed:
include/clang/AST/ASTImporter.h
include/clang/Basic/Diagnostic.h
include/clang/Basic/DiagnosticIDs.h [new file with mode: 0644]
include/clang/Basic/SourceManager.h
include/clang/Lex/Preprocessor.h
include/clang/Rewrite/FixItRewriter.h
lib/AST/ASTImporter.cpp
lib/AST/RecordLayoutBuilder.cpp
lib/Basic/Diagnostic.cpp
lib/Basic/DiagnosticIDs.cpp [new file with mode: 0644]
lib/Basic/SourceManager.cpp
lib/Checker/PathDiagnostic.cpp
lib/CodeGen/CGDebugInfo.cpp
lib/CodeGen/CodeGenAction.cpp
lib/CodeGen/Mangle.cpp
lib/Driver/Driver.cpp
lib/Frontend/ASTMerge.cpp
lib/Frontend/CompilerInstance.cpp
lib/Frontend/TextDiagnosticPrinter.cpp
lib/Parse/Parser.cpp
lib/Rewrite/FixItRewriter.cpp
lib/Rewrite/HTMLRewrite.cpp
lib/Sema/DeclSpec.cpp
lib/Sema/Sema.cpp
lib/Sema/SemaTemplateInstantiate.cpp
lib/Serialization/ASTReader.cpp
tools/driver/cc1_main.cpp
tools/driver/cc1as_main.cpp
tools/driver/driver.cpp
tools/libclang/CIndexCodeCompletion.cpp