Lines Matching refs:sort

28   std::string sort(StringRef Code, std::vector<tooling::Range> Ranges,  in sort()  function in clang::format::__anonf87ca13d0111::SortIncludesTest
42 std::string sort(StringRef Code, StringRef FileName = "input.cpp", in sort() function in clang::format::__anonf87ca13d0111::SortIncludesTest
44 return sort(Code, GetCodeRange(Code), FileName, ExpectedNumRanges); in sort()
60 sort("#include \"a.h\"\n" in TEST_F()
67 sort("// comment\n" in TEST_F()
80 sort("#include \"a.h\"\n" in TEST_F()
126 sort("#include <sys/param.h>\n" in TEST_F()
152 sort("#include \"clang/Format/Format.h\"\n" in TEST_F()
182 sort("#include \"a.h\"\n" in TEST_F()
192 sort("#include \"a.h\"\n" in TEST_F()
202 sort("#include \"a.h\"\n" in TEST_F()
218 sort("#include <b>\n" in TEST_F()
246 EXPECT_EQ(Expected, sort(Code, "e.cpp", 1)); in TEST_F()
258 sort("#include <b>\n" in TEST_F()
276 sort("#include <b>\n" in TEST_F()
292 sort("#include \"a.h\"\n" in TEST_F()
302 sort("#include \"a.h\"\n" in TEST_F()
311 sort("#include \"a.h\" // comment\n" in TEST_F()
320 sort(" #include \"a.h\"\n" in TEST_F()
326 sort("# include \"a.h\"\n" in TEST_F()
329 EXPECT_EQ("#include \"a.h\"\n", sort("#include \"a.h\"\n" in TEST_F()
337 sort("#include \"a.h\" \n" in TEST_F()
340 EXPECT_EQ("#include \"a.h\"\n", sort("#include \"a.h\"\n" in TEST_F()
348 sort("#include \"a.h\"\n" in TEST_F()
358 sort("#include \"a.h\"\n" in TEST_F()
370 sort("#include \"a.h\"\n" in TEST_F()
381 sort("#include \"c.h\"\n" in TEST_F()
391 sort("#include \"c.h\"\n" in TEST_F()
401 sort("#include \"c.h\"\n" in TEST_F()
414 sort("#include <vector>\n" in TEST_F()
430 sort("#include <vector>\n" in TEST_F()
445 sort("#include <d.h>\n" in TEST_F()
455 sort("#include \"a.h\"\n" in TEST_F()
467 sort("#include <cstdint>\n" in TEST_F()
480 sort("#include \"llvm/a.h\"\n" in TEST_F()
487 sort("#include \"llvm/a.h\"\n" in TEST_F()
494 sort("#include \"llvm/input.h\"\n" in TEST_F()
503 sort("#include \"llvm/not_a.h\"\n" in TEST_F()
512 sort("#include \"llvm/a.h\"\n" in TEST_F()
521 sort("#include \"llvm/a.h\"\n" in TEST_F()
532 sort("#include <a>\n" in TEST_F()
544 sort("#include \"b.h\"\n" in TEST_F()
556 sort("#include \"llvm/a.h\"\n" in TEST_F()
563 sort("#include \"llvm/a.h\"\n" in TEST_F()
572 sort("#include \"llvm/a.h\"\n" in TEST_F()
579 sort("#include \"llvm/a.h\"\n" in TEST_F()
589 sort("#include \"llvm/a.h\"\n" in TEST_F()
596 sort("#include \"llvm/a.h\"\n" in TEST_F()
609 sort("#include \"b.h\"\n" in TEST_F()
624 sort("#include \"b.h\"\n" in TEST_F()
641 sort("#include \"B/a.h\"\n" in TEST_F()
671 sort(UnsortedCode)); in TEST_F()
687 sort("#include \"c.h\"\n" in TEST_F()
727 sort(UnsortedCode)); in TEST_F()
744 sort(UnsortedCode)); in TEST_F()
753 sort("#include \"c_main.h\"\n" in TEST_F()
762 sort("#include \"important_os_header.h\"\n" in TEST_F()
778 sort("#include \"c_main.h\"\n" in TEST_F()
789 sort("#include \"important_os_header.h\"\n" in TEST_F()
819 EXPECT_EQ(Expected, sort(Code)); in TEST_F()
829 sort("#include <a>\n" in TEST_F()
840 sort("#include <a>\n" in TEST_F()
852 sort("#include <a>\n" in TEST_F()
865 sort("#include <b>\n" in TEST_F()
876 sort("#include <b>\n" in TEST_F()
888 sort("#include <b>\n" in TEST_F()
907 EXPECT_EQ(Expected, sort(Code)); in TEST_F()
926 sort("#include <a>\n" in TEST_F()
954 sort("<!--;\n" in TEST_F()
968 EXPECT_EQ(Code, sort(Code, "input.h", 0)); in TEST_F()
977 EXPECT_EQ(Code, sort(Code, "input.h", 0)); in TEST_F()
986 sort("#include <b.h>\n" in TEST_F()
1009 EXPECT_EQ(Expected, sort(Code, "e.cpp", 2)); in TEST_F()
1027 EXPECT_EQ(Expected, sort(Code, "e.cpp", 2)); in TEST_F()
1045 EXPECT_EQ(Expected, sort(Code, "e.cpp", 1)); in TEST_F()
1064 EXPECT_EQ(Expected, sort(Code, "e.cpp", 2)); in TEST_F()
1079 EXPECT_EQ(Expected, sort(Code, "a.cpp", 1)); in TEST_F()
1087 EXPECT_EQ(Sorted, sort(Unsorted)); in TEST_F()
1089 EXPECT_EQ(Unsorted, sort(Unsorted, "input.cpp", 0)); in TEST_F()
1098 sort("const char *t = R\"(\n" in TEST_F()
1107 sort("const char *t = R\"x(\n" in TEST_F()
1116 sort("const char *t = R\"xyz(\n" in TEST_F()
1142 sort("#include <b.h>\n" in TEST_F()
1168 sort("const char *t = R\"AMZ029amz(\n" in TEST_F()
1178 sort("const char *t = R\"-AMZ029amz(\n" in TEST_F()
1188 sort("const char *t = R\"AMZ029amz-(\n" in TEST_F()
1198 sort("const char *t = R\"AM|029amz-(\n" in TEST_F()
1208 sort("const char *t = R\"AM[029amz-(\n" in TEST_F()
1218 sort("const char *t = R\"AM]029amz-(\n" in TEST_F()
1230 sort("const char *t = R\"" X "(\n" in TEST_F()