Bouska added a comment.

Your code still breaks MultiLine

  [ RUN      ] FormatTest.MultiLineControlStatements
  /home/pablomg/dev/llvm-project/clang/unittests/Format/FormatTest.cpp:1562: 
Failure
        Expected: "try {\n" "  foo();\n" "} catch (\n" "    Exception &bar)\n" 
"{\n" "  baz();\n" "}"
        Which is: "try {\n  foo();\n} catch (\n    Exception &bar)\n{\n  
baz();\n}"
  To be equal to: format("try{foo();}catch(Exception&bar){baz();}", Style)
        Which is: "try {\n  foo();\n} catch (Exception\n             &bar) {\n  
baz();\n}"
  With diff:
  @@ -1,7 +1,6 @@
   try {
     foo();
  -} catch (
  -    Exception &bar)
  -{
  +} catch (Exception
  +             &bar) {
     baz();
   }
  
  [  FAILED  ] FormatTest.MultiLineControlStatements (28 ms)


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D71939/new/

https://reviews.llvm.org/D71939



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to