[clang] [clang][ASTImporter] Fix clash when import `VarTemplateDecl` in record (PR #67522)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 27 00:52:10 PDT 2023
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 a904bb464fe46052803e49b99ec255d2078c3c3b 0a00f5c846cb53a96133bc8050be74672c2c8343 -- clang/lib/AST/ASTImporter.cpp clang/unittests/AST/ASTImporterTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/unittests/AST/ASTImporterTest.cpp b/clang/unittests/AST/ASTImporterTest.cpp
index f2fafaf4329b..6f0686697417 100644
--- a/clang/unittests/AST/ASTImporterTest.cpp
+++ b/clang/unittests/AST/ASTImporterTest.cpp
@@ -4974,8 +4974,7 @@ TEST_P(ImportFriendClasses, RecordVarTemplateDecl) {
FromTU, varTemplateDecl(hasName("X")));
auto *ToA = Import(FromA, Lang_CXX11);
EXPECT_TRUE(ToA);
- EXPECT_EQ(Fwd->getTemplatedDecl(),
- ToA->getTemplatedDecl());
+ EXPECT_EQ(Fwd->getTemplatedDecl(), ToA->getTemplatedDecl());
EXPECT_EQ(Fwd->getTemplatedDecl()->getDefinition(),
ToA->getTemplatedDecl()->getDefinition());
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/67522
More information about the cfe-commits
mailing list