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

References

tools/clang/unittests/Format/FormatTestCSharp.cpp
   54   verifyFormat("public class SomeClass\n"
   76   verifyFormat("public String toString()\n"
   79   verifyFormat("private String toString()\n"
   82   verifyFormat("protected String toString()\n"
   85   verifyFormat("internal String toString()\n"
   89   verifyFormat("public override String toString()\n"
   92   verifyFormat("private override String toString()\n"
   95   verifyFormat("protected override String toString()\n"
   98   verifyFormat("internal override String toString()\n"
  102   verifyFormat("internal static String toString()\n"
  108   verifyFormat("foo("
  114   verifyFormat("foo(@\"aaaaaaaa\\abc\\aaaa\");");
  129   verifyFormat("foo($\"aaaaaaaa{aaa}aaaa\");");
  130   verifyFormat("foo($\"aaaa{A}\");");
  131   verifyFormat(
  134   verifyFormat("Name = $\"{firstName} {lastName}\";");
  138   verifyFormat("string s = $\"A{abc}BC\" + ToString(\"B\");");
  139   verifyFormat("$\"{domain}\\\\{user}\"");
  140   verifyFormat(
  145   verifyFormat("Task serverTask = Task.Run(async() => {");
  146   verifyFormat("public override string ToString() => \"{Name}\\{Age}\";");
  153   verifyFormat(
  156   verifyFormat("foo () {\n"
  161   verifyFormat("switch (args?.Length) {}", Style);
  163   verifyFormat("public static void Main(string[] args)\n"
  170   verifyFormat("switch(args?.Length) {}", Style);
  174   verifyFormat("[STAThread]\n"
  179   verifyFormat("[TestMethod]\n"
  184   verifyFormat("[TestMethod]\n"
  189   verifyFormat("[TestMethod]\n"
  194   verifyFormat("[TestMethod]\n"
  199   verifyFormat("[TestMethod]\n"
  205   verifyFormat("[System.AttributeUsage(System.AttributeTargets.Method)]\n"
  211   verifyFormat("[Verb(\"start\", HelpText = \"Starts the server listening on "
  217   verifyFormat("[TestMethod]\n"
  224   verifyFormat("[TestMethod(\"start\", HelpText = \"Starts the server "
  236   verifyFormat("public void foo () {\n"
  241   verifyFormat("using (StreamWriter sw = new StreamWriter (filenameB)) {}",
  245   verifyFormat("public void foo() {\n"
  250   verifyFormat("using(StreamWriter sw = new StreamWriter(filenameB)) {}",
  255   verifyFormat("#region aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaa "
  260   verifyFormat("public enum var { none, @string, bool, @enum }");
  264   verifyFormat("var test = ABC ?? DEF");
  265   verifyFormat("string myname = name ?? \"ABC\";");
  266   verifyFormat("return _name ?? \"DEF\";");
  273   verifyFormat("[STAThread]\n"
  279   verifyFormat("[STAThread]\n"
  286   verifyFormat("[STAThread]\n"
  293   verifyFormat("[SuppressMessage(\"A\", \"B\", Justification = \"C\")]\n"
  299   verifyFormat("[SuppressMessage]\n"
  305   verifyFormat("[SuppressMessage]\n"
  311   verifyFormat("public A(B b) : base(b)\n"
  325   verifyFormat("List<string> list;", Style);
  326   verifyFormat("Dictionary<string, string> dict;", Style);
  328   verifyFormat("for (int i = 0; i < size (); i++) {\n"
  331   verifyFormat("foreach (var x in y) {\n"
  334   verifyFormat("switch (x) {}", Style);
  335   verifyFormat("do {\n"
  341   verifyFormat("List<string> list;", Style);
  342   verifyFormat("Dictionary<string, string> dict;", Style);
  344   verifyFormat("for(int i = 0; i < size(); i++) {\n"
  347   verifyFormat("foreach(var x in y) {\n"
  350   verifyFormat("switch(x) {}", Style);
  351   verifyFormat("do {\n"