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

References

tools/clang/unittests/Tooling/SourceCodeBuildersTest.cpp
  140   testBuilder(buildParens, "-4;", "(-4)");
  144   testBuilder(buildParens, "4 + 4;", "(4 + 4)");
  148   testBuilder(buildParens, "4;", "4");
  152   testBuilder(buildParens, "int a[3]; a[0];", "a[0]");
  156   testBuilder(buildParens, "int f(int); f(4);", "f(4)");
  160   testBuilder(buildAddressOf, "S x; x;", "&x");
  164   testBuilder(buildAddressOf, "S *x; *x;", "x");
  168   testBuilder(buildAddressOf, "S *x; *(x);", "x");
  172   testBuilder(buildAddressOf, "S x; x + x;", "&(x + x)");
  176   testBuilder(buildDereference, "S *x; x;", "*x");
  180   testBuilder(buildDereference, "S x; &x;", "x");
  184   testBuilder(buildDereference, "S x; &(x);", "x");
  188   testBuilder(buildDereference, "S *x; x + 1;", "*(x + 1)");
  192   testBuilder(buildDot, "S x; x;", "x.");
  196   testBuilder(buildDot, "S *x; *x;", "x->");
  200   testBuilder(buildDot, "S *x; *(x);", "x->");
  204   testBuilder(buildDot, "S x; x + x;", "(x + x).");
  208   testBuilder(buildDot, "S *x; *(x + 1);", "(x + 1)->");
  212   testBuilder(buildArrow, "S *x; x;", "x->");
  216   testBuilder(buildArrow, "S x; &x;", "x.");
  220   testBuilder(buildArrow, "S x; &(x);", "x.");
  224   testBuilder(buildArrow, "S *x; x + 1;", "(x + 1)->");
  228   testBuilder(buildArrow, "S x; &(true ? x : x);", "(true ? x : x).");