[PATCH] D142804: [clang-format] Support clang-format on/off line comments as prefixes

Owen Pan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Jan 29 19:25:45 PST 2023


owenpan updated this revision to Diff 493180.
owenpan added a comment.

Improves `isClangFormatOnOff()` a little bit.


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

https://reviews.llvm.org/D142804

Files:
  clang/docs/ClangFormatStyleOptions.rst
  clang/include/clang/Format/Format.h
  clang/lib/Format/Format.cpp
  clang/lib/Format/FormatTokenLexer.cpp
  clang/lib/Format/IntegerLiteralSeparatorFixer.cpp
  clang/lib/Format/SortJavaScriptImports.cpp
  clang/unittests/Format/FormatTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142804.493180.patch
Type: text/x-patch
Size: 7090 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230130/e7309c02/attachment.bin>


More information about the cfe-commits mailing list