diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Frontend/CMakeLists.txt | 2 | ||||
-rw-r--r-- | lib/Frontend/CompilerInstance.cpp | 4 | ||||
-rw-r--r-- | lib/Frontend/VerifyDiagnosticConsumer.cpp (renamed from lib/Frontend/VerifyDiagnosticsClient.cpp) | 16 |
3 files changed, 11 insertions, 11 deletions
diff --git a/lib/Frontend/CMakeLists.txt b/lib/Frontend/CMakeLists.txt index 28072961ee..39128fba38 100644 --- a/lib/Frontend/CMakeLists.txt +++ b/lib/Frontend/CMakeLists.txt @@ -29,7 +29,7 @@ add_clang_library(clangFrontend PrintPreprocessedOutput.cpp TextDiagnosticBuffer.cpp TextDiagnosticPrinter.cpp - VerifyDiagnosticsClient.cpp + VerifyDiagnosticConsumer.cpp Warnings.cpp ) diff --git a/lib/Frontend/CompilerInstance.cpp b/lib/Frontend/CompilerInstance.cpp index c4dd651458..ce5496562b 100644 --- a/lib/Frontend/CompilerInstance.cpp +++ b/lib/Frontend/CompilerInstance.cpp @@ -25,7 +25,7 @@ #include "clang/Frontend/FrontendDiagnostic.h" #include "clang/Frontend/LogDiagnosticPrinter.h" #include "clang/Frontend/TextDiagnosticPrinter.h" -#include "clang/Frontend/VerifyDiagnosticsClient.h" +#include "clang/Frontend/VerifyDiagnosticConsumer.h" #include "clang/Frontend/Utils.h" #include "clang/Serialization/ASTReader.h" #include "clang/Sema/CodeCompleteConsumer.h" @@ -165,7 +165,7 @@ CompilerInstance::createDiagnostics(const DiagnosticOptions &Opts, // Chain in -verify checker, if requested. if (Opts.VerifyDiagnostics) - Diags->setClient(new VerifyDiagnosticsClient(*Diags)); + Diags->setClient(new VerifyDiagnosticConsumer(*Diags)); // Chain in -diagnostic-log-file dumper, if requested. if (!Opts.DiagnosticLogFile.empty()) diff --git a/lib/Frontend/VerifyDiagnosticsClient.cpp b/lib/Frontend/VerifyDiagnosticConsumer.cpp index c3a236fad4..34f3c22099 100644 --- a/lib/Frontend/VerifyDiagnosticsClient.cpp +++ b/lib/Frontend/VerifyDiagnosticConsumer.cpp @@ -1,4 +1,4 @@ -//===--- VerifyDiagnosticsClient.cpp - Verifying Diagnostic Client --------===// +//===---- VerifyDiagnosticConsumer.cpp - Verifying Diagnostic Client ------===// // // The LLVM Compiler Infrastructure // @@ -11,7 +11,7 @@ // //===----------------------------------------------------------------------===// -#include "clang/Frontend/VerifyDiagnosticsClient.h" +#include "clang/Frontend/VerifyDiagnosticConsumer.h" #include "clang/Frontend/FrontendDiagnostic.h" #include "clang/Frontend/TextDiagnosticBuffer.h" #include "clang/Lex/Preprocessor.h" @@ -20,7 +20,7 @@ #include "llvm/Support/raw_ostream.h" using namespace clang; -VerifyDiagnosticsClient::VerifyDiagnosticsClient(DiagnosticsEngine &_Diags) +VerifyDiagnosticConsumer::VerifyDiagnosticConsumer(DiagnosticsEngine &_Diags) : Diags(_Diags), PrimaryClient(Diags.getClient()), OwnsPrimaryClient(Diags.ownsClient()), Buffer(new TextDiagnosticBuffer()), CurrentPreprocessor(0) @@ -28,7 +28,7 @@ VerifyDiagnosticsClient::VerifyDiagnosticsClient(DiagnosticsEngine &_Diags) Diags.takeClient(); } -VerifyDiagnosticsClient::~VerifyDiagnosticsClient() { +VerifyDiagnosticConsumer::~VerifyDiagnosticConsumer() { CheckDiagnostics(); Diags.takeClient(); if (OwnsPrimaryClient) @@ -37,7 +37,7 @@ VerifyDiagnosticsClient::~VerifyDiagnosticsClient() { // DiagnosticConsumer interface. -void VerifyDiagnosticsClient::BeginSourceFile(const LangOptions &LangOpts, +void VerifyDiagnosticConsumer::BeginSourceFile(const LangOptions &LangOpts, const Preprocessor *PP) { // FIXME: Const hack, we screw up the preprocessor but in practice its ok // because it doesn't get reused. It would be better if we could make a copy @@ -47,7 +47,7 @@ void VerifyDiagnosticsClient::BeginSourceFile(const LangOptions &LangOpts, PrimaryClient->BeginSourceFile(LangOpts, PP); } -void VerifyDiagnosticsClient::EndSourceFile() { +void VerifyDiagnosticConsumer::EndSourceFile() { CheckDiagnostics(); PrimaryClient->EndSourceFile(); @@ -55,7 +55,7 @@ void VerifyDiagnosticsClient::EndSourceFile() { CurrentPreprocessor = 0; } -void VerifyDiagnosticsClient::HandleDiagnostic( +void VerifyDiagnosticConsumer::HandleDiagnostic( DiagnosticsEngine::Level DiagLevel, const DiagnosticInfo &Info) { if (FirstErrorFID.isInvalid() && Info.hasSourceManager()) { const SourceManager &SM = Info.getSourceManager(); @@ -478,7 +478,7 @@ static unsigned CheckResults(DiagnosticsEngine &Diags, SourceManager &SourceMgr, return NumProblems; } -void VerifyDiagnosticsClient::CheckDiagnostics() { +void VerifyDiagnosticConsumer::CheckDiagnostics() { ExpectedData ED; // Ensure any diagnostics go to the primary client. |