[PATCH] D143070: [clang-format] Enable FormatTokenSource to insert tokens.

Manuel Klimek via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 1 07:17:25 PST 2023


klimek created this revision.
klimek added a reviewer: sammccall.
Herald added a project: All.
klimek requested review of this revision.
Herald added a project: clang.

In preparation for configured macro replacements in formatting,
add the ability to insert tokens to FormatTokenSource, and implement
token insertion in IndexedTokenSource.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D143070

Files:
  clang/lib/Format/FormatTokenSource.h
  clang/lib/Format/UnwrappedLineParser.cpp
  clang/lib/Format/UnwrappedLineParser.h
  clang/unittests/Format/FormatTokenSourceTest.cpp
  clang/unittests/Format/TestLexer.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143070.493937.patch
Type: text/x-patch
Size: 10774 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230201/914d7d58/attachment-0001.bin>


More information about the cfe-commits mailing list