[clang] [clang][ast]: Add DynamicAllocLValue and TypeInfoLValue support to APValue::dump(). (PR #135178)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 13 19:53:26 PDT 2025
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 HEAD~1 HEAD --extensions cpp -- clang/lib/AST/TextNodeDumper.cpp clang/test/AST/ast-dump-APValue-lvalue.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/AST/TextNodeDumper.cpp b/clang/lib/AST/TextNodeDumper.cpp
index 4c1091c29..881ae7f49 100644
--- a/clang/lib/AST/TextNodeDumper.cpp
+++ b/clang/lib/AST/TextNodeDumper.cpp
@@ -742,7 +742,7 @@ void TextNodeDumper::Visit(const APValue &Value, QualType Ty) {
OS << "TypeInfoLValue ";
const auto BTI = B.get<TypeInfoLValue>();
ColorScope Color(OS, ShowColors, TypeColor);
- BTI.print(OS,PrintPolicy);
+ BTI.print(OS, PrintPolicy);
} else if (B.is<DynamicAllocLValue>()) {
OS << "DynamicAllocLValue";
auto BDA = B.getDynamicAllocType();
``````````
</details>
https://github.com/llvm/llvm-project/pull/135178
More information about the cfe-commits
mailing list