Lines Matching refs:Code
22 std::string format(llvm::StringRef Code, unsigned Offset, unsigned Length,
26 tooling::Replacements Replaces = reformat(Style, Code, Ranges);
28 std::string Result = applyAllReplacements(Code, Replaces);
35 format(llvm::StringRef Code, const FormatStyle &Style = getLLVMStyle()) {
36 return format(Code, 0, Code.size(), Style);
39 std::string messUp(llvm::StringRef Code) {
40 std::string MessedUp(Code.str());
84 void verifyFormat(llvm::StringRef Code,
86 EXPECT_EQ(Code.str(), format(messUp(Code), Style));
89 void verifyGoogleFormat(llvm::StringRef Code) {
90 verifyFormat(Code, getGoogleStyle());
1545 // This code is more common than we thought; if we
4872 // The precise formatting of this doesn't matter, nobody writes code like