Owen Pan
1c58208d89
[clang-format][NFC] Remove redundnat llvm::, clang::, etc.
2024-05-20 20:32:18 -07:00
Owen Pan
943db678da
[clang-format][NFC] Add getNextNonComment() to FormatTokenSource ( #87868 )
2024-04-07 13:58:49 -07:00
Owen Pan
426e694589
[clang-format][NFC] Delete redundant and extraneous #include lines
2024-03-15 20:51:57 -07:00
Owen Pan
91c4db0061
[clang-format][NFC] Replace !is() with isNot()
...
Differential Revision: https://reviews.llvm.org/D158571
2023-08-24 01:27:24 -07:00
Kazu Hirata
7eaa7b0553
[clang] Use *{Map,Set}::contains (NFC)
2023-03-15 18:06:34 -07:00
Manuel Klimek
8c1f77af7f
[clang-format] Fix windows build.
...
MSVC needs a return after llvm_unreachable.
2023-02-15 20:59:43 +00:00
Benjamin Kramer
1f818f63b8
[clang-format] assert(false) -> llvm_unreachable
...
Avoids warnings in -asserts builds.
FormatTokenSource.h:240:3: error: non-void function does not return a value [-Werror,-Wreturn-type]
}
^
2023-02-15 14:10:09 +01: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
Manuel Klimek
be31f2c11d
[clang-format][NFC] Move IndexedTokenSource to FormatTokenSource header.
...
Finish refactoring of the token sources towards a single location.
2023-01-31 15:06:20 +00:00
Manuel Klimek
c3bc61d72f
[clang-format][NFC] Pull FormatTokenSource into its own header.
...
Prepare getting FormatTokenSource under unit testing.
2023-01-31 14:32:31 +00:00