Lines Matching refs:verifyGoogleFormat

74   void verifyGoogleFormat(llvm::StringRef Code) {  in verifyGoogleFormat()  function in clang::format::__anon4a65ed390111::FormatTest
679 verifyGoogleFormat("switch (x) {\n" in TEST_F()
691 verifyGoogleFormat("switch (x) {\n" in TEST_F()
697 verifyGoogleFormat("switch (test)\n" in TEST_F()
700 verifyGoogleFormat("#define OPERATION_CASE(name) \\\n" in TEST_F()
703 verifyGoogleFormat("Operation codeToOperation(OperationCode OpCode) {\n" in TEST_F()
934 verifyGoogleFormat("int a; // Trailing comment."); in TEST_F()
939 verifyGoogleFormat("#endif // HEADER_GUARD"); in TEST_F()
946 verifyGoogleFormat( in TEST_F()
1121 verifyGoogleFormat("#define A \\\n" in TEST_F()
1667 verifyGoogleFormat( in TEST_F()
1670 verifyGoogleFormat("static SomeType type = {aaaaaaaaaaa,\n" in TEST_F()
1869 verifyGoogleFormat("class A {\n" in TEST_F()
2010 verifyGoogleFormat("enum {\n" in TEST_F()
2029 verifyGoogleFormat("enum ShortEnum { A, B, C };"); in TEST_F()
2128 verifyGoogleFormat("typedef NS_ENUM(NSInteger, SomeName) { AAA, BBB }"); in TEST_F()
2129 verifyGoogleFormat("typedef NS_ENUM(NSInteger, MyType) {\n" in TEST_F()
2137 verifyGoogleFormat("typedef NS_OPTIONS(NSInteger, MyType) {\n" in TEST_F()
2142 verifyGoogleFormat("typedef CF_ENUM(NSInteger, MyType) {\n" in TEST_F()
2147 verifyGoogleFormat("typedef CF_OPTIONS(NSInteger, MyType) {\n" in TEST_F()
2499 verifyGoogleFormat("const struct A a = {.a = 1, .b = 2};"); in TEST_F()
2513 verifyGoogleFormat("SomeType Status::global_reps[3] = {\n" in TEST_F()
3224 verifyGoogleFormat("DEBUG({\n" in TEST_F()
3814 verifyGoogleFormat( in TEST_F()
3817 verifyGoogleFormat( in TEST_F()
3824 verifyGoogleFormat( in TEST_F()
3880 verifyGoogleFormat( in TEST_F()
3927 verifyGoogleFormat("void aaaaaaaaaaaaaa(aaaaaaaa aaa) override\n" in TEST_F()
3937 verifyGoogleFormat( in TEST_F()
3940 verifyGoogleFormat( in TEST_F()
3943 verifyGoogleFormat( in TEST_F()
3946 verifyGoogleFormat( in TEST_F()
4176 verifyGoogleFormat( in TEST_F()
5294 verifyGoogleFormat("A<A<int>> a;"); in TEST_F()
5295 verifyGoogleFormat("A<A<A<int>>> a;"); in TEST_F()
5296 verifyGoogleFormat("A<A<A<A<int>>>> a;"); in TEST_F()
5297 verifyGoogleFormat("A<A<int> > a;"); in TEST_F()
5298 verifyGoogleFormat("A<A<A<int> > > a;"); in TEST_F()
5299 verifyGoogleFormat("A<A<A<A<int> > > > a;"); in TEST_F()
5300 verifyGoogleFormat("A<::A<int>> a;"); in TEST_F()
5301 verifyGoogleFormat("A<::A> a;"); in TEST_F()
5302 verifyGoogleFormat("A< ::A> a;"); in TEST_F()
5303 verifyGoogleFormat("A< ::A<int> > a;"); in TEST_F()
5450 verifyGoogleFormat("operator void*();"); in TEST_F()
5451 verifyGoogleFormat("operator SomeType<SomeType<int>>();"); in TEST_F()
5452 verifyGoogleFormat("operator ::A();"); in TEST_F()
5554 verifyGoogleFormat("return sizeof(int**);"); in TEST_F()
5556 verifyGoogleFormat("Type** A = static_cast<Type**>(P);"); in TEST_F()
5569 verifyGoogleFormat("MACRO Constructor(const int& i) : a(a), b(b) {}"); in TEST_F()
5591 verifyGoogleFormat("**outparam = 1;"); in TEST_F()
5592 verifyGoogleFormat("*outparam = a * b;"); in TEST_F()
5593 verifyGoogleFormat("int main(int argc, char** argv) {}"); in TEST_F()
5594 verifyGoogleFormat("A<int*> a;"); in TEST_F()
5595 verifyGoogleFormat("A<int**> a;"); in TEST_F()
5596 verifyGoogleFormat("A<int*, int*> a;"); in TEST_F()
5597 verifyGoogleFormat("A<int**, int**> a;"); in TEST_F()
5598 verifyGoogleFormat("f(b ? *c : *d);"); in TEST_F()
5599 verifyGoogleFormat("int a = b ? *c : *d;"); in TEST_F()
5600 verifyGoogleFormat("Type* t = **x;"); in TEST_F()
5601 verifyGoogleFormat("Type* t = *++*x;"); in TEST_F()
5602 verifyGoogleFormat("*++*x;"); in TEST_F()
5603 verifyGoogleFormat("Type* t = const_cast<T*>(&*x);"); in TEST_F()
5604 verifyGoogleFormat("Type* t = x++ * y;"); in TEST_F()
5605 verifyGoogleFormat( in TEST_F()
5607 verifyGoogleFormat("void f(int i = 0, SomeType** temps = NULL);"); in TEST_F()
5608 verifyGoogleFormat("void f(Bar* a = nullptr, Bar* b);"); in TEST_F()
5609 verifyGoogleFormat("template <typename T>\n" in TEST_F()
5645 verifyGoogleFormat("for (int i = 0; i * 2 < z; i *= 2) {\n}"); in TEST_F()
5657 verifyGoogleFormat("A = new SomeType*[Length]();"); in TEST_F()
5658 verifyGoogleFormat("A = new SomeType*[Length];"); in TEST_F()
5659 verifyGoogleFormat("T** t = new T*;"); in TEST_F()
5660 verifyGoogleFormat("T** t = new T*();"); in TEST_F()
5736 verifyGoogleFormat("template <typename T>\n" in TEST_F()
5798 verifyGoogleFormat("int f(int a, char&& b) {}"); in TEST_F()
5799 verifyGoogleFormat("void f() { int&& a = b; }"); in TEST_F()
5803 verifyGoogleFormat("A<int&&> a;"); in TEST_F()
5804 verifyGoogleFormat("A<int&&, int&&> a;"); in TEST_F()
5810 verifyGoogleFormat("#define IF(a, b, c) if (a && (b == c))"); in TEST_F()
5811 verifyGoogleFormat("#define WHILE(a, b, c) while (a && (b == c))"); in TEST_F()
5919 verifyGoogleFormat("A<void*(int*, SomeType*)>;"); in TEST_F()
5920 verifyGoogleFormat("void* (*a)(int);"); in TEST_F()
5921 verifyGoogleFormat( in TEST_F()
6014 verifyGoogleFormat( in TEST_F()
6017 verifyGoogleFormat( in TEST_F()
6020 verifyGoogleFormat( in TEST_F()
6025 verifyGoogleFormat("template <typename T>\n" in TEST_F()
6028 verifyGoogleFormat("A<A<A>> aaaaaaaaaa(int aaaaaaaaaaaaaaaaaaaaaaaaaaa,\n" in TEST_F()
6058 verifyGoogleFormat("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa<int>\n" in TEST_F()
7026 verifyGoogleFormat("- (void)setDelegate:(id<Protocol>)delegate;"); in TEST_F()
7032 verifyGoogleFormat("- (int (*)())foo:(int (*)())foo;"); in TEST_F()
7038 verifyGoogleFormat("- foo:(int)foo;"); in TEST_F()
7055 verifyGoogleFormat("@interface Foo : NSObject<NSSomeDelegate> {\n" in TEST_F()
7087 verifyGoogleFormat("@interface Foo : Bar<Baz, Quux>\n" in TEST_F()
7103 verifyGoogleFormat("@interface Foo (HackStuff)<MyProtocol>\n" in TEST_F()
7168 verifyGoogleFormat("@implementation Foo : NSObject {\n" in TEST_F()
7240 verifyGoogleFormat("@protocol MyProtocol<NSObject>\n" in TEST_F()
7557 verifyGoogleFormat("@synthesize dropArrowPosition = dropArrowPosition_;"); in TEST_F()
7561 verifyGoogleFormat("@property(assign, getter=isEditable) BOOL editable;"); in TEST_F()
7635 verifyGoogleFormat( in TEST_F()
7688 verifyGoogleFormat("NSArray *some_variable = @[\n" in TEST_F()
10535 verifyGoogleFormat("auto a = [&b, c](D* d) -> D* {};"); in TEST_F()
10536 verifyGoogleFormat("auto a = [&b, c](D* d) -> pair<D*, D*> {};"); in TEST_F()
10537 verifyGoogleFormat("auto a = [&b, c](D* d) -> D& {};"); in TEST_F()
10538 verifyGoogleFormat("auto a = [&b, c](D* d) -> const D* {};"); in TEST_F()