Lines Matching +defs:clang +defs:format
10 #include "clang/Format/Format.h"
14 #define DEBUG_TYPE "format-test"
16 namespace clang {
17 namespace format {
21 static std::string format(StringRef Code, unsigned Offset, unsigned Length,
33 static std::string format(StringRef Code) {
36 return format(Code, 0, Code.size(), Style);
40 EXPECT_EQ(Code.str(), format(Code)) << "Expected code is not stable";
41 EXPECT_EQ(Code.str(), format(test::messUp(Code)));
45 EXPECT_EQ(Result, format(MessedUp));
49 EXPECT_EQ(Code.str(), format(Code, 0, Code.size(), Style))
52 EXPECT_EQ(Code.str(), format(MessUp, 0, MessUp.size(), Style));
127 // We have to give the result and the strings to format manually.
486 } // namespace format
487 } // end namespace clang