[llvm] [LLVM] Create `lf_alias` nodes for `typedef` and `using` (PR #153936)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 1 07:50:45 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 origin/main HEAD --extensions cpp,h -- llvm/include/llvm/DebugInfo/CodeView/TypeRecord.h llvm/include/llvm/DebugInfo/LogicalView/Readers/LVCodeViewVisitor.h llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp llvm/lib/DebugInfo/CodeView/RecordName.cpp llvm/lib/DebugInfo/CodeView/TypeDumpVisitor.cpp llvm/lib/DebugInfo/CodeView/TypeRecordMapping.cpp llvm/lib/DebugInfo/LogicalView/Readers/LVCodeViewVisitor.cpp llvm/lib/ObjectYAML/CodeViewYAMLTypes.cpp llvm/tools/llvm-pdbutil/MinimalTypeDumper.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/DebugInfo/CodeView/TypeRecord.h b/llvm/include/llvm/DebugInfo/CodeView/TypeRecord.h
index 5eb8097e3..8f0cb95fa 100644
--- a/llvm/include/llvm/DebugInfo/CodeView/TypeRecord.h
+++ b/llvm/include/llvm/DebugInfo/CodeView/TypeRecord.h
@@ -958,7 +958,8 @@ public:
AliasRecord() = default;
explicit AliasRecord(TypeRecordKind Kind) : TypeRecord(Kind) {}
AliasRecord(TypeIndex UnderlyingType, StringRef Name)
- : TypeRecord(TypeRecordKind::Alias), UnderlyingType(UnderlyingType), Name(Name) {}
+ : TypeRecord(TypeRecordKind::Alias), UnderlyingType(UnderlyingType),
+ Name(Name) {}
TypeIndex UnderlyingType;
StringRef Name;
diff --git a/llvm/include/llvm/DebugInfo/LogicalView/Readers/LVCodeViewVisitor.h b/llvm/include/llvm/DebugInfo/LogicalView/Readers/LVCodeViewVisitor.h
index 164ea9903..b4bdbcc48 100644
--- a/llvm/include/llvm/DebugInfo/LogicalView/Readers/LVCodeViewVisitor.h
+++ b/llvm/include/llvm/DebugInfo/LogicalView/Readers/LVCodeViewVisitor.h
@@ -418,8 +418,8 @@ public:
LVElement *Element);
Error visitKnownRecord(CVType &Record, EndPrecompRecord &EndPrecomp,
TypeIndex TI, LVElement *Element);
- Error visitKnownRecord(CVType &Record, AliasRecord &Alias,
- TypeIndex TI, LVElement *Element);
+ Error visitKnownRecord(CVType &Record, AliasRecord &Alias, TypeIndex TI,
+ LVElement *Element);
Error visitUnknownMember(CVMemberRecord &Record, TypeIndex TI);
Error visitKnownMember(CVMemberRecord &Record, BaseClassRecord &Base,
``````````
</details>
https://github.com/llvm/llvm-project/pull/153936
More information about the llvm-commits
mailing list