[all-commits] [llvm/llvm-project] 1995d4: [clang-format] Enable FormatTokenSource to insert ...

r4nt via All-commits all-commits at lists.llvm.org
Wed Feb 15 04:43:49 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1995d4424505cb5a1c3f0e5f851a660ec32d7af1
      https://github.com/llvm/llvm-project/commit/1995d4424505cb5a1c3f0e5f851a660ec32d7af1
  Author: Manuel Klimek <klimek at google.com>
  Date:   2023-02-15 (Wed, 15 Feb 2023)

  Changed paths:
    M clang/lib/Format/FormatTokenSource.h
    M clang/lib/Format/UnwrappedLineParser.h
    M clang/unittests/Format/FormatTokenSourceTest.cpp

  Log Message:
  -----------
  [clang-format] Enable FormatTokenSource to insert tokens.

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

Differential Revision: https://reviews.llvm.org/D143070




More information about the All-commits mailing list