[Lldb-commits] [lldb] [LLDB] Add `ScalarLiteralNode` and literal parsing in DIL (PR #152308)
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Mon Aug 11 09:22:02 PDT 2025
================
@@ -403,11 +403,13 @@ ASTNodeUP DILParser::ParseIntegerLiteral() {
auto radix = llvm::getAutoSenseRadix(spelling_ref);
bool is_unsigned = false, is_long = false, is_longlong = false;
+ if (spelling_ref.consume_back_insensitive("u"))
+ is_unsigned = true;
if (spelling_ref.consume_back_insensitive("ll"))
is_longlong = true;
if (spelling_ref.consume_back_insensitive("l"))
is_long = true;
- if (spelling_ref.consume_back_insensitive("u"))
+ if (!is_unsigned && spelling_ref.consume_back_insensitive("u"))
----------------
labath wrote:
I guess that works, but it might be worth a comment.
https://github.com/llvm/llvm-project/pull/152308
More information about the lldb-commits
mailing list