[clang-format] Add an option to format integer literal separators
authorOwen Pan <owenpiano@gmail.com>
Thu, 22 Dec 2022 09:21:17 +0000 (01:21 -0800)
committerOwen Pan <owenpiano@gmail.com>
Sat, 24 Dec 2022 23:35:17 +0000 (15:35 -0800)
commit46c94e5067b5f396c24bb950505c79bc819bd4b8
treea762e0b8d579937f0bca02ddb921661cf164598c
parentbbe402b33a23fa1114310b227207565b1e91e6f1
[clang-format] Add an option to format integer literal separators

Closes #58949.

Differential Revision: https://reviews.llvm.org/D140543
clang/docs/ClangFormatStyleOptions.rst
clang/docs/ReleaseNotes.rst
clang/include/clang/Format/Format.h
clang/lib/Format/CMakeLists.txt
clang/lib/Format/Format.cpp
clang/lib/Format/IntegerLiteralSeparatorFixer.cpp [new file with mode: 0644]
clang/lib/Format/IntegerLiteralSeparatorFixer.h [new file with mode: 0644]
clang/unittests/Format/CMakeLists.txt
clang/unittests/Format/IntegerLiteralSeparatorTest.cpp [new file with mode: 0644]