[clang] [Clang] Only compare template params of potential overload after checking their decl context (PR #78139)

via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 15 02:01:32 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 08e4386a2c91befabab317498b50ffc326ff4eae e5be422e1d27a9e1066777e9114bba510e5195bb -- clang/test/Modules/GH77953.cpp clang/lib/Sema/SemaOverload.cpp clang/test/CXX/over/over.load/p2-0x.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Sema/SemaOverload.cpp b/clang/lib/Sema/SemaOverload.cpp
index 4b84a60d47..0d1db8d176 100644
--- a/clang/lib/Sema/SemaOverload.cpp
+++ b/clang/lib/Sema/SemaOverload.cpp
@@ -1330,8 +1330,6 @@ static bool IsOverloadOrOverrideImpl(Sema &SemaRef, FunctionDecl *New,
       return true;
   }
 
-
-
   const auto *OldMethod = dyn_cast<CXXMethodDecl>(Old);
   const auto *NewMethod = dyn_cast<CXXMethodDecl>(New);
 

``````````

</details>


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


More information about the cfe-commits mailing list