Improve debugability of clang decls (#7945)

Add `Dump` functions for `ClangDecl`/`ClangDeclSignature`, and add
`MakeClangDeclId`/`MakeClangDeclSignatureId` and add those to
`lldbinit.py`.

Also change the label for `ClangDeclId` and `ClangDeclSignatureId` to
not have an "_id" suffix, to make them consistent with other ID types.
This commit is contained in:
Nicholas Bishop authored and GitHub committed 2026-10-09 20:24:23 +00:00
1 parent 9887d23b3f
commit 04443a9a14
7 files changed
+64 -13

No files matched your search

+2
View File
@@ -82,6 +82,8 @@ Example usage:
# The set of "Make" functions in dump.cpp.
id_types = {
"clang_decl": "SemIR::MakeClangDeclId",
"clang_decl_signature": "SemIR::MakeClangDeclSignatureId",
"class": "SemIR::MakeClassId",
"constant": "SemIR::MakeConstantId",
"constraint": "SemIR::MakeNamedConstraintId",