[clang] [Clang] Fix dependence handling of nttp for variable templates (PR #69075)

Shafik Yaghmour via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 25 14:25:23 PDT 2023


=?utf-8?b?5YiY6Zuo5Z+5?= <liuyupei951018 at hotmail.com>
Message-ID:
In-Reply-To: <llvm/llvm-project/pull/69075/clang at github.com>


================
@@ -354,10 +354,10 @@ UnresolvedLookupExpr::UnresolvedLookupExpr(
     NestedNameSpecifierLoc QualifierLoc, SourceLocation TemplateKWLoc,
     const DeclarationNameInfo &NameInfo, bool RequiresADL, bool Overloaded,
     const TemplateArgumentListInfo *TemplateArgs, UnresolvedSetIterator Begin,
-    UnresolvedSetIterator End)
+    UnresolvedSetIterator End, bool KnownDependent)
     : OverloadExpr(UnresolvedLookupExprClass, Context, QualifierLoc,
-                   TemplateKWLoc, NameInfo, TemplateArgs, Begin, End, false,
-                   false, false),
+                   TemplateKWLoc, NameInfo, TemplateArgs, Begin, End,
+                   KnownDependent, false, false),
----------------
shafik wrote:

`/*KnownInstantiationDependent=*/false, /*KnownContainsUnexpandedParameterPack=*/false` 

to be consistent with [bugprone-argument-comment](https://clang.llvm.org/extra/clang-tidy/checks/bugprone/argument-comment.html)

https://github.com/llvm/llvm-project/pull/69075


More information about the cfe-commits mailing list