[clang-format][NFC] Moved configuration parsing tests in own file
authorBjörn Schäpers <bjoern@hazardy.de>
Fri, 11 Nov 2022 08:00:49 +0000 (09:00 +0100)
committerBjörn Schäpers <bjoern@hazardy.de>
Wed, 16 Nov 2022 06:02:09 +0000 (07:02 +0100)
commit617277e7cbdaea6881425c7a1a5b1cf4b1d4b507
treefe2db846f28dc922914df933d5f8fc27dcf660d6
parent409eaff5dd55dec61211486c91959c1c4b327fb3
[clang-format][NFC] Moved configuration parsing tests in own file

I want to reduce the size of ForatTest.cpp with its still wopping 25k
lines it is a burden on the compiler and editor (mine is clangd
powered).

This are tests which are really serving a different purpose than
formatting.

I've copied the code and made the following changes:
- Dropped the ; at the end of some macros, all macro "invocations"
  already have their own ;.
- Dropped the _F, we don't need a fxiture here.

Differential Revisison: https://reviews.llvm.org/D137823
clang/unittests/Format/CMakeLists.txt
clang/unittests/Format/ConfigParseTest.cpp [new file with mode: 0644]
clang/unittests/Format/FormatTest.cpp