4 Commits

Author SHA1 Message Date
Owen Pan
1c58208d89 [clang-format][NFC] Remove redundnat llvm::, clang::, etc. 2024-05-20 20:32:18 -07:00
Manuel Klimek
1995d44245 [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
2023-02-15 12:39:24 +00:00
Benjamin Kramer
ffc9b80c35 [clang-format] Fix use after free in FormatTokenSource test
Add a lifetime annotation to IndexedTokenSource so we get a warning for
this pattern.
2023-01-31 21:03:29 +01:00
Manuel Klimek
04ed86ff1b [clang-format][NFC] Bring FormatTokenSource under test.
Add tests for FormatTokenSource and harden it against edge cases.
2023-01-31 16:06:46 +00:00