[clang] [BitInt] Expose a _BitInt literal suffix in C++ (PR #86586)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 7 16:29:09 PDT 2024
================
@@ -1117,6 +1118,31 @@ NumericLiteralParser::NumericLiteralParser(StringRef TokSpelling,
if (isImaginary) break; // Cannot be repeated.
isImaginary = true;
continue; // Success.
+ case '_':
+ if (isFPConstant)
+ break; // Invalid for floats
+ if (HasSize)
+ break;
+ if (DoubleUnderscore)
+ break; // Cannot be repeated.
----------------
Sirraide wrote:
An assertion would also make sense yeah.
> whoever wants to do the work
(For the record, I’m busy refactoring AST visitors so not me)
https://github.com/llvm/llvm-project/pull/86586
More information about the cfe-commits
mailing list