[clang-tools-extra] c7a7bba - Fixup clang-tidy after recent Clang change.
Richard Smith via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 19 20:14:08 PDT 2020
Author: Richard Smith
Date: 2020-10-19T20:13:56-07:00
New Revision: c7a7bba8c101f575ef10cb54737033d71f2b722c
URL: https://github.com/llvm/llvm-project/commit/c7a7bba8c101f575ef10cb54737033d71f2b722c
DIFF: https://github.com/llvm/llvm-project/commit/c7a7bba8c101f575ef10cb54737033d71f2b722c.diff
LOG: Fixup clang-tidy after recent Clang change.
Added:
Modified:
clang-tools-extra/clang-tidy/bugprone/DynamicStaticInitializersCheck.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/clang-tidy/bugprone/DynamicStaticInitializersCheck.cpp b/clang-tools-extra/clang-tidy/bugprone/DynamicStaticInitializersCheck.cpp
index d4d3ff9af75e..2d3f1755d988 100644
--- a/clang-tools-extra/clang-tidy/bugprone/DynamicStaticInitializersCheck.cpp
+++ b/clang-tools-extra/clang-tidy/bugprone/DynamicStaticInitializersCheck.cpp
@@ -21,7 +21,7 @@ AST_MATCHER(clang::VarDecl, hasConstantDeclaration) {
if (Init && !Init->isValueDependent()) {
if (Node.isConstexpr())
return true;
- return Node.checkInitIsICE();
+ return Node.evaluateValue();
}
return false;
}
More information about the cfe-commits
mailing list