D | FormatTestSelective.cpp | 17 namespace clang { namespace 18 namespace format { namespace 23 std::string format(llvm::StringRef Code, unsigned Offset, unsigned Length) { in format() function in clang::format::__anonda8d4d5d0111::FormatTestSelective 41 EXPECT_EQ("int a;\nint b;", format("int a; \nint b;", 0, 0)); in TEST_F() 42 EXPECT_EQ("int a;", format("int a; ", 0, 0)); in TEST_F() 43 EXPECT_EQ("int a;\n", format("int a; \n \n \n ", 0, 0)); in TEST_F() 44 EXPECT_EQ("int a;\nint b; ", format("int a; \nint b; ", 0, 0)); in TEST_F() 51 format("{int b;\n int a;}", 8, 0)); in TEST_F() 55 format("{int b;\n int a;}", 7, 0)); in TEST_F() 61 format("#define A \\\n" in TEST_F() [all …]
|