[clang-tools-extra] r250510 - Empty undefined static variable -> local variable.
Benjamin Kramer via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 16 05:11:16 PDT 2015
Author: d0k
Date: Fri Oct 16 07:11:15 2015
New Revision: 250510
URL: http://llvm.org/viewvc/llvm-project?rev=250510&view=rev
Log:
Empty undefined static variable -> local variable.
Resolves a -Wundefined-internal warning from clang.
Modified:
clang-tools-extra/trunk/clang-tidy/ClangTidyDiagnosticConsumer.cpp
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=250510&r1=250509&r2=250510&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/ClangTidyDiagnosticConsumer.cpp (original)
+++ clang-tools-extra/trunk/clang-tidy/ClangTidyDiagnosticConsumer.cpp Fri Oct 16 07:11:15 2015
@@ -519,8 +519,8 @@ struct LessClangTidyError {
}
};
struct EqualClangTidyError {
- static LessClangTidyError Less;
bool operator()(const ClangTidyError &LHS, const ClangTidyError &RHS) const {
+ LessClangTidyError Less;
return !Less(LHS, RHS) && !Less(RHS, LHS);
}
};
More information about the cfe-commits
mailing list