Lines Matching refs:format
1 //===- unittest/Format/FormatTestJS.cpp - Formatting unit tests for JS ----===//
11 #include "clang/Format/Format.h"
15 #define DEBUG_TYPE "format-test"
18 namespace format {
22 static std::string format(llvm::StringRef Code, unsigned Offset,
34 static std::string format(
37 return format(Code, 0, Code.size(), Style);
49 EXPECT_EQ(Code.str(), format(test::messUp(Code), Style));
163 format("abc=xyz?function(){return 1;}:function(){return -1;};"));