[clang-tools-extra] r204333 - ClangTidyContext: Don't use initializer on non-static member.
NAKAMURA Takumi
geek4civic at gmail.com
Thu Mar 20 03:53:03 PDT 2014
Author: chapuni
Date: Thu Mar 20 05:53:03 2014
New Revision: 204333
URL: http://llvm.org/viewvc/llvm-project?rev=204333&view=rev
Log:
ClangTidyContext: Don't use initializer on non-static member.
Modified:
clang-tools-extra/trunk/clang-tidy/ClangTidyDiagnosticConsumer.cpp
clang-tools-extra/trunk/clang-tidy/ClangTidyDiagnosticConsumer.h
Modified: clang-tools-extra/trunk/clang-tidy/ClangTidyDiagnosticConsumer.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/ClangTidyDiagnosticConsumer.cpp?rev=204333&r1=204332&r2=204333&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/ClangTidyDiagnosticConsumer.cpp (original)
+++ clang-tools-extra/trunk/clang-tidy/ClangTidyDiagnosticConsumer.cpp Thu Mar 20 05:53:03 2014
@@ -124,7 +124,8 @@ bool ChecksFilter::isCheckEnabled(String
ClangTidyContext::ClangTidyContext(SmallVectorImpl<ClangTidyError> *Errors,
StringRef EnableChecksRegex,
StringRef DisableChecksRegex)
- : Errors(Errors), Filter(EnableChecksRegex, DisableChecksRegex) {}
+ : Errors(Errors), DiagEngine(nullptr),
+ Filter(EnableChecksRegex, DisableChecksRegex) {}
DiagnosticBuilder ClangTidyContext::diag(
StringRef CheckName, SourceLocation Loc, StringRef Description,
Modified: clang-tools-extra/trunk/clang-tidy/ClangTidyDiagnosticConsumer.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/ClangTidyDiagnosticConsumer.h?rev=204333&r1=204332&r2=204333&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/ClangTidyDiagnosticConsumer.h (original)
+++ clang-tools-extra/trunk/clang-tidy/ClangTidyDiagnosticConsumer.h Thu Mar 20 05:53:03 2014
@@ -114,7 +114,7 @@ private:
void storeError(const ClangTidyError &Error);
SmallVectorImpl<ClangTidyError> *Errors;
- DiagnosticsEngine *DiagEngine{nullptr};
+ DiagnosticsEngine *DiagEngine;
ChecksFilter Filter;
llvm::DenseMap<unsigned, std::string> CheckNamesByDiagnosticID;
More information about the cfe-commits
mailing list