krasimir added a comment.

This is how you could add a test in `NamespaceEndCommentsFixerTest.cpp`:

  TEST_F(NamespaceEndCommentsFixerTest, FixesNamespaceCommentsInAllmanStyle) {
    FormatStyle AllmanStyle = getLLVMStyle();
    AllmanStyle.BreakBeforeBraces = FormatStyle::BS_Allman;
    EXPECT_EQ("namespace a\n"
              "{\n"
              "void f();\n"
              "void g();\n"
              "}// namespace a\n",
              fixNamespaceEndComments("namespace a\n"
                                      "{\n"
                                      "void f();\n"
                                      "void g();\n"
                                      "}\n",
                                      AllmanStyle));
  }


https://reviews.llvm.org/D37904



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

Reply via email to