[clang] [AST] Only dump desugared type when visibly different (PR #65214)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 25 11:29:24 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 8b322895207c34b434698954dc67404e0bbf8d8e f2526f9f4dca9d0cd8e8b91d29b0ac9d177a8dc8 -- clang/lib/AST/JSONNodeDumper.cpp clang/lib/AST/TextNodeDumper.cpp clang/test/AST/ast-dump-APValue-anon-union.cpp clang/test/AST/ast-dump-APValue-struct.cpp clang/test/AST/ast-dump-APValue-union.cpp clang/test/AST/ast-dump-attr.cpp clang/test/AST/ast-dump-decl-json.c clang/test/AST/ast-dump-decl.cpp clang/test/AST/ast-dump-expr-json.c clang/test/AST/ast-dump-expr-json.cpp clang/test/AST/ast-dump-expr.c clang/test/AST/ast-dump-expr.cpp clang/test/AST/ast-dump-fpfeatures.cpp clang/test/AST/ast-dump-funcs.cpp clang/test/AST/ast-dump-functionprototype.cpp clang/test/AST/ast-dump-lambda.cpp clang/test/AST/ast-dump-openmp-begin-declare-variant_reference.cpp clang/test/AST/ast-dump-openmp-begin-declare-variant_template_1.cpp clang/test/AST/ast-dump-openmp-begin-declare-variant_template_2.cpp clang/test/AST/ast-dump-openmp-begin-declare-variant_template_3.cpp clang/test/AST/ast-dump-overloaded-operators.cpp clang/test/AST/ast-dump-records-json.cpp clang/test/AST/ast-dump-records.cpp clang/test/AST/ast-dump-recovery.cpp clang/test/AST/ast-dump-stmt-json.cpp clang/test/AST/ast-dump-stmt.cpp clang/test/AST/ast-dump-template-decls-json.cpp clang/test/AST/ast-dump-template-decls.cpp clang/test/AST/ast-dump-template-json-win32-mangler-crash.cpp clang/test/AST/ast-dump-temporaries-json.cpp clang/test/AST/ast-dump-types-json.cpp clang/test/AST/coroutine-locals-cleanup.cpp clang/test/AST/float16.cpp clang/test/AST/nrvo.c clang/test/AST/sourceranges.cpp clang/test/C/drs/dr253.c clang/test/CXX/dcl.decl/dcl.init/dcl.init.ref/p4-ast.cpp clang/test/OpenMP/align_clause_ast_print.cpp clang/test/OpenMP/generic_loop_ast_print.cpp clang/test/OpenMP/scope_ast_print.cpp clang/test/SemaCXX/co_await-ast.cpp clang/test/SemaCXX/consteval-cleanup.cpp clang/test/SemaTemplate/aggregate-deduction-candidate.cpp clang/test/SemaTemplate/deduction-guide.cpp clang/test/SemaTemplate/default-expr-arguments-3.cpp clang/test/SemaTemplate/make_integer_seq.cpp clang/test/SemaTemplate/pr47676.cpp clang/test/SemaTemplate/type_pack_element.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 87e6cd1e1..7be53d444 100644
--- a/clang/unittests/AST/ASTImporterTest.cpp
+++ b/clang/unittests/AST/ASTImporterTest.cpp
@@ -4947,7 +4947,7 @@ TEST_P(ASTImporterOptionSpecificTestBase,
`-CXXDeductionGuideDecl 0x1fe59c0 <col:36> col:36 implicit <deduction guide for A> 'auto (A<T>) -> A<T>'
`-ParmVarDecl 0x1fe5958 <col:36> col:36 'A<T>'
*/
-// clang-format on
+ // clang-format on
auto *FromD1 = FirstDeclMatcher<CXXDeductionGuideDecl>().match(
FromTU, cxxDeductionGuideDecl());
auto *FromD2 = LastDeclMatcher<CXXDeductionGuideDecl>().match(
``````````
</details>
https://github.com/llvm/llvm-project/pull/65214
More information about the cfe-commits
mailing list