[clang] [Clang][Sema] Fix crash when using name of UnresolvedUsingValueDecl with template arguments (PR #83842)

via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 4 09:10:36 PST 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 c1d8d0aa156f651ee48414fa002e9608d6998763 de29206a4c1881acc4ed31fdd59ebed75f4388ca -- clang/test/SemaTemplate/unqual-unresolved-using-value.cpp clang/lib/Sema/SemaDecl.cpp clang/lib/Sema/SemaTemplate.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Sema/SemaTemplate.cpp b/clang/lib/Sema/SemaTemplate.cpp
index 3b41a9dfbe..df20f83ac8 100644
--- a/clang/lib/Sema/SemaTemplate.cpp
+++ b/clang/lib/Sema/SemaTemplate.cpp
@@ -503,8 +503,8 @@ bool Sema::LookupTemplateName(LookupResult &Found,
                  ? AssumedTemplateKind::FoundNothing
                  : AssumedTemplateKind::FoundFunctions;
       FilterAcceptableTemplateNames(Found,
-                                    /*AllowFunctionTemplates*/true,
-                                    /*AllowDependent*/true);
+                                    /*AllowFunctionTemplates*/ true,
+                                    /*AllowDependent*/ true);
       return false;
     }
   }

``````````

</details>


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


More information about the cfe-commits mailing list