================
@@ -13,8 +13,9 @@ using namespace clang::ast_matchers;
 namespace clang::tidy::fuchsia {
 
 namespace {
-AST_MATCHER(Expr, isConstantInitializer) {
-  return Node.isConstantInitializer(Finder->getASTContext(), false);
+AST_MATCHER(Expr, isConstantOrValueDependentInitializer) {
+  return Node.isValueDependent() ||
----------------
vbvictor wrote:

I'd make a separate matcher for ValueDependent, I think we already have 
`isValueDependent` in https://clang.llvm.org/docs/LibASTMatchersReference.html.

https://github.com/llvm/llvm-project/pull/201287
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to