MyDeveloperDay added inline comments.

================
Comment at: clang/unittests/Format/FormatTest.cpp:16389
+  for (const auto &Style : Styles) {
+    verifyFormat("struct test demo[] = {\n"
+                 "    {56, 23,    \"hello\" },\n"
----------------
may be worth testing a case with comments at the end of each line

```
verifyFormat("struct test demo[3] = {\n"
                 "    {56, 23,    \"hello\" }, // first line\n"
                 "    {-1, 93463, \"world\" }, /* second line */\n"
                 "    {7,  5,     \"!!\"    } // at the end\n"
                 "};\n",
                 Style);
```


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D101868

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

Reply via email to