================
@@ -7020,6 +7020,43 @@ TEST_F(FormatTest, FormatsJoinedLinesOnSubsequentRuns) {
SingleLine);
}
+TEST_F(FormatTest, DeeplyNestedPreprocessorConditionals) {
+ std::string Input;
+ std::string Expected;
+ constexpr unsigned Depth = 20;
+ for (unsigned I = 0; I < Depth; ++I) {
----------------
HazardyKnusperkeks wrote:
I understand what you intend to do here, but that's hardly readable. Since you
already use AI, can't you just create the strings as literals?
Would improve readability and runtime.
https://github.com/llvm/llvm-project/pull/232156
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits