[PATCH] D140543: [clang-format] Add an option to format integer literal separators

Owen Pan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 23 20:10:10 PST 2022


owenpan updated this revision to Diff 485180.
owenpan added a comment.
This revision is now accepted and ready to land.

- Adds support for C#, Java, and JavaScript using `_`.
- Adds support for only formatting affected ranges.
- Simplifies ``IntegerLiteralSeparatorFixer::format()``.
- Adds more assertions and makes minor efficiency improvements.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D140543/new/

https://reviews.llvm.org/D140543

Files:
  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
  clang/lib/Format/IntegerLiteralSeparatorFixer.h
  clang/unittests/Format/FormatTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140543.485180.patch
Type: text/x-patch
Size: 16142 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221224/a4bd7e7b/attachment-0001.bin>


More information about the cfe-commits mailing list