[Lldb-commits] [lldb] [LLDB] Add type casting to DIL. (PR #159500)

via lldb-commits lldb-commits at lists.llvm.org
Sat Oct 18 15:18:55 PDT 2025


================
@@ -44,6 +47,31 @@ nested_name_specifier = type_name "::"
                       | namespace_name '::'
                       | nested_name_specifier identifier "::" ;
 
+type_id = type_specifier_seq [abstract_declarator] ;
+
+type_specifier_seq = type_specifier [type_specifier];
+
+type_specifier = ["::"] [nested_name_specifier] type_name;
+               | "char"
+               | "bool"
+               | "short"
+               | "int"
+               | "long"
+               | "signed"
+               | "unsigned"
+               | "float"
+               | "double"
+               | "void" ;
----------------
cmtice wrote:

That is in fact the way the (updated) implementation works: Just expecting identifiers and using calls to LLDB's type system to determine if the name is for a builtin type or not. I just forgot to update the grammar here when I changed the implementation to work that way. I will update the grammar (thanks for catching this).

https://github.com/llvm/llvm-project/pull/159500


More information about the lldb-commits mailing list