reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/unittests/Format/FormatTestComments.cpp
   77     verifyFormat(Code, getGoogleStyle());
   94   verifyFormat("//* */");
   95   verifyFormat("// line 1\n"
   99   verifyFormat("void f() {\n"
  102   verifyFormat("SomeObject\n"
  105   verifyFormat("auto result = SomeObject\n"
  108   verifyFormat("void f(int i,  // some comment (probably for i)\n"
  111   verifyFormat("void f(int i,\n"
  117   verifyFormat("int i    // This is a fancy variable\n"
  120   verifyFormat("// Leading comment.\n"
  122   verifyFormat("int a; // Trailing comment\n"
  126   verifyFormat("int a; // Trailing comment\n"
  130   verifyFormat("int a;    // Comment.\n"
  133   verifyFormat(
  142   verifyFormat("#include \"a\"     // comment\n"
  144   verifyFormat("#include <a>     // comment\n"
  152   verifyFormat("enum E {\n"
  215   verifyFormat(
  218   verifyFormat("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa =\n"
  221   verifyFormat("SomeFunction(a,\n"
  224   verifyFormat("SomeFunction(a, a,\n"
  227   verifyFormat(
  232   verifyFormat("int aaaa; // aaaaa\n"
  259   verifyFormat("someFunction(anotherFunction( // Force break.\n"
  264   verifyFormat("const char *test[] = {\n"
  328   verifyFormat("f(); // comment\n"
  366   verifyFormat("#define A                                                  \\\n"
  370   verifyFormat(
  376   verifyFormat("if ( // This is some comment\n"
  436   verifyFormat("f(/*noSpaceAfterParameterNamingComment=*/true);");
  437   verifyFormat("void f() { g(/*aaa=*/x, /*bbb=*/!y, /*c=*/::c); }");
  457   verifyFormat("f(/* aaaaaaaaaaaaaaaaaa = */\n"
  462   verifyFormat("aaaaaaaa(/* parameter 1 */ aaaaaa,\n"
  551   verifyFormat("// aaaaaaaaa aaaaaaaaaa aaaaaaaaaa", Style);
  552   verifyFormat("/* aaaaaaaaa aaaaaaaaaa aaaaaaaaaa */", Style);
 1321   verifyFormat("#ifdef A // line about A\n"
 1325   verifyFormat("#ifdef A // line 1 about A\n"
 1339   verifyFormat("int f() {\n"
 1353   verifyFormat("#if A\n"
 1358   verifyFormat("#if A\n"
 1388   verifyFormat("static SomeType type = {aaaaaaaaaaa, // comment for aa...\n"
 1390   verifyFormat("static SomeType type = {aaaaaaaaaaa,\n"
 1400   verifyFormat("S s = {{a, b, c},  // Group #1\n"
 1403   verifyFormat("S s = {{// Group #1\n"
 1436   verifyFormat("const uint8_t aaaaaaaaaaaaaaaaaaaaaa[0] = {\n"
 1532   verifyFormat("// long\n"
 2059   verifyFormat("#include <t> // l l l\n"
 2356   verifyFormat("if (0) /* a comment in a strange place */ {\n"
 2359   verifyFormat("if (0) /* a comment in a strange place */ {\n"
 2364   verifyFormat("while (0) /* a comment in a strange place */ {\n"
 2367   verifyFormat("for (;;) /* a comment in a strange place */ {\n"
 2370   verifyFormat("do /* a comment in a strange place */ {\n"
 2437   verifyFormat(
 2456   verifyFormat("void f(int * /* unused */) {}");
 2598   verifyFormat("{\n"
 2996   verifyFormat("const /** comment comment */ A = B;",
 2999   verifyFormat("const /** comment comment comment */ A =\n"
 3093   verifyFormat("int a =\n"