[clang] [clang] AST Visitor: skip empty qualifiers in QualifiedTemplateName (PR #93926)

via cfe-commits cfe-commits at lists.llvm.org
Thu May 30 22:59:14 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff c5fdb5c34e0dc3f5f3c0db19cf704b30a778cd0e dd8839b4f3294241b2a6df8bc10e869176baff72 -- clang/include/clang/AST/RecursiveASTVisitor.h
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/include/clang/AST/RecursiveASTVisitor.h b/clang/include/clang/AST/RecursiveASTVisitor.h
index 28a90dffcb..d16074443b 100644
--- a/clang/include/clang/AST/RecursiveASTVisitor.h
+++ b/clang/include/clang/AST/RecursiveASTVisitor.h
@@ -857,7 +857,8 @@ template <typename Derived>
 bool RecursiveASTVisitor<Derived>::TraverseTemplateName(TemplateName Template) {
   if (DependentTemplateName *DTN = Template.getAsDependentTemplateName()) {
     TRY_TO(TraverseNestedNameSpecifier(DTN->getQualifier()));
-  } else if (QualifiedTemplateName *QTN = Template.getAsQualifiedTemplateName()) {
+  } else if (QualifiedTemplateName *QTN =
+                 Template.getAsQualifiedTemplateName()) {
     if (T->getQualifier()) {
       TRY_TO(TraverseNestedNameSpecifier(QTN->getQualifier()));
     }

``````````

</details>


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


More information about the cfe-commits mailing list