aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorAndy MacGregor <amacgregor.1776@gmail.com>2025-09-12 04:17:40 -0400
committerGitHub <noreply@github.com>2025-09-12 01:17:40 -0700
commit220d705d2189d2ce5b993fcd1eabccf7e30efefb (patch)
tree79516dce093541ac076b1c26649b9cacba41e168 /clang/lib/Frontend/CompilerInvocation.cpp
parent5374f16270f02fdbedbbba96951a8b9ffd9c482f (diff)
downloadllvm-220d705d2189d2ce5b993fcd1eabccf7e30efefb.zip
llvm-220d705d2189d2ce5b993fcd1eabccf7e30efefb.tar.gz
llvm-220d705d2189d2ce5b993fcd1eabccf7e30efefb.tar.bz2
[clang-format] Add an option to format numeric literal case (#151590)
Some languages have the flexibility to use upper or lower case characters interchangeably in integer and float literal definitions. I'd like to be able to enforce a consistent case style in one of my projects, so I added this clang-format style option to control it. With this .clang-format configuration: ```yaml NumericLiteralCaseStyle: UpperCasePrefix: Never UpperCaseHexDigit: Always UpperCaseSuffix: Never ``` This line of code: ```C unsigned long long 0XdEaDbEeFUll; ``` gets reformatted into this line of code: ```C unsigned long long 0xDEAFBEEFull; ``` ----- I'm new to this project, so please let me know if I missed something in the process. I modeled this PR from [IntegerLiteralSeparatorFixer](https://reviews.llvm.org/D140543)
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions