diff options
author | Finn Plummer <canadienfinn@gmail.com> | 2025-04-30 09:41:08 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-30 09:41:08 -0700 |
commit | 8e4dd21e6362ca161b7fda4fe7c5fa20f72ffab2 (patch) | |
tree | 82f4ac3cae695ae38246a692542cfbe64ede5659 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | ea3959e841367ef691472ccf78ec25252dbfe288 (diff) | |
download | llvm-8e4dd21e6362ca161b7fda4fe7c5fa20f72ffab2.zip llvm-8e4dd21e6362ca161b7fda4fe7c5fa20f72ffab2.tar.gz llvm-8e4dd21e6362ca161b7fda4fe7c5fa20f72ffab2.tar.bz2 |
[HLSL][RootSignature] Add lexing support for floating points (#137720)
- this takes care to add support to match the [behaviour of
DXC](https://github.com/microsoft/DirectXShaderCompiler/blob/34b6d0f91e6afd523bdc574836093f021713cce7/tools/clang/lib/Parse/HLSLRootSignature.cpp#L74)
acceptable floating point integers
Namely:
- Allow for specifying the decimal '.'
- Allow for specifying exponents with 'e' or 'E' and allow for 'f' to
denote an otherwise interpreted integer as a float
This pr is simply responsible of creating a token that could be
interpeted as a floating point integer by `NumericLiteralParser`. As
such, we are not required to validate that the special characters only
occur once and that 'f' is only at the end of the string. These will be
validated when invoking `NumericLiteralParser` during parsing.
Resolves #126565
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions