[clang-format][NFC] Bring FormatTokenSource under test.
authorManuel Klimek <klimek@google.com>
Tue, 31 Jan 2023 16:03:26 +0000 (16:03 +0000)
committerManuel Klimek <klimek@google.com>
Tue, 31 Jan 2023 16:06:46 +0000 (16:06 +0000)
commit04ed86ff1b7272faf8e62fa32da4acaa2d3c6add
tree22b0e46059db550d0b0d88ac4ef99d9a6333bd1d
parent03bb277f308e0e49d2d7f00719e908b8e10325b8
[clang-format][NFC] Bring FormatTokenSource under test.

Add tests for FormatTokenSource and harden it against edge cases.
clang/lib/Format/FormatTokenSource.h
clang/unittests/Format/CMakeLists.txt
clang/unittests/Format/FormatTokenSourceTest.cpp [new file with mode: 0644]