Reland [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>
Sun, 1 Jan 2023 01:57:33 +0000 (17:57 -0800)
commit89aad1e6a397447f9574bb088f4de1d9044b5812
tree8bb094ba7819a38ca05a8f2623dcc7e81ce2eed3
parent7a8cb6cd4e3ff8aaadebff2b9d3ee9e2a326d444
Reland [clang-format] Add an option to format integer literal separators

Previously committed in 46c94e5067b5 which was reverted in f0756e086010
due to a memory bug.

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]