[clang] [ClangFormat] Fix indent in child lines within a macro argument. (PR #82523)

via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 23 00:57:29 PST 2024


================
@@ -420,6 +420,8 @@ struct UnwrappedLineNode {
   SmallVector<UnwrappedLine, 0> Children;
 };
 
+std::ostream &operator<<(std::ostream &Stream, const UnwrappedLine &Line);
+
----------------
r4nt wrote:

I intentionally put this there, as otherwise the errors we get from the tests are useless. With the operator, the gtest matchers nicely output the expected and actual lines, and it's easy to see what's different.

https://github.com/llvm/llvm-project/pull/82523


More information about the cfe-commits mailing list