mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-15 11:48:29 +00:00
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:
1 parent
9887d23b3f
commit
04443a9a14
7 files changed
+64
-13
No files matched your search
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user