Lines Matching refs:Spaces
5646 FormatStyle Spaces = getLLVMStyle(); in TEST_F() local
5647 Spaces.SpacesInCStyleCastParentheses = true; in TEST_F()
5648 verifyFormat("Deleted &operator=(const Deleted &) & = default;", Spaces); in TEST_F()
5649 verifyFormat("SomeType MemberFunction(const Deleted &) & = delete;", Spaces); in TEST_F()
5650 verifyFormat("Deleted &operator=(const Deleted &) &;", Spaces); in TEST_F()
5651 verifyFormat("SomeType MemberFunction(const Deleted &) &;", Spaces); in TEST_F()
5653 Spaces.SpacesInCStyleCastParentheses = false; in TEST_F()
5654 Spaces.SpacesInParentheses = true; in TEST_F()
5655 verifyFormat("Deleted &operator=( const Deleted & ) & = default;", Spaces); in TEST_F()
5656 verifyFormat("SomeType MemberFunction( const Deleted & ) & = delete;", Spaces); in TEST_F()
5657 verifyFormat("Deleted &operator=( const Deleted & ) &;", Spaces); in TEST_F()
5658 verifyFormat("SomeType MemberFunction( const Deleted & ) &;", Spaces); in TEST_F()
8953 FormatStyle Spaces = getLLVMStyle(); in TEST_F() local
8955 Spaces.SpacesInParentheses = true; in TEST_F()
8956 verifyFormat("call( x, y, z );", Spaces); in TEST_F()
8957 verifyFormat("call();", Spaces); in TEST_F()
8958 verifyFormat("std::function<void( int, int )> callback;", Spaces); in TEST_F()
8960 Spaces); in TEST_F()
8963 Spaces); in TEST_F()
8966 Spaces); in TEST_F()
8971 Spaces); in TEST_F()
8975 Spaces); in TEST_F()
8980 Spaces); in TEST_F()
8982 Spaces.SpacesInParentheses = false; in TEST_F()
8983 Spaces.SpacesInCStyleCastParentheses = true; in TEST_F()
8984 verifyFormat("Type *A = ( Type * )P;", Spaces); in TEST_F()
8985 verifyFormat("Type *A = ( vector<Type *, int *> )P;", Spaces); in TEST_F()
8986 verifyFormat("x = ( int32 )y;", Spaces); in TEST_F()
8987 verifyFormat("int a = ( int )(2.0f);", Spaces); in TEST_F()
8988 verifyFormat("#define AA(X) sizeof((( X * )NULL)->a)", Spaces); in TEST_F()
8989 verifyFormat("my_int a = ( my_int )sizeof(int);", Spaces); in TEST_F()
8990 verifyFormat("#define x (( int )-1)", Spaces); in TEST_F()
8993 Spaces.SpacesInParentheses = false; in TEST_F()
8994 Spaces.SpaceInEmptyParentheses = true; in TEST_F()
8995 Spaces.SpacesInCStyleCastParentheses = true; in TEST_F()
8996 verifyFormat("call(x, y, z);", Spaces); in TEST_F()
8997 verifyFormat("call( );", Spaces); in TEST_F()
8998 verifyFormat("std::function<void(int, int)> callback;", Spaces); in TEST_F()
9001 Spaces); in TEST_F()
9004 Spaces); in TEST_F()
9009 Spaces); in TEST_F()
9013 Spaces); in TEST_F()
9018 Spaces); in TEST_F()
9021 Spaces.SpaceAfterCStyleCast = true; in TEST_F()
9022 verifyFormat("call(x, y, z);", Spaces); in TEST_F()
9023 verifyFormat("call( );", Spaces); in TEST_F()
9024 verifyFormat("std::function<void(int, int)> callback;", Spaces); in TEST_F()
9027 Spaces); in TEST_F()
9030 Spaces); in TEST_F()
9035 Spaces); in TEST_F()
9039 Spaces); in TEST_F()
9044 Spaces); in TEST_F()
9047 Spaces.SpacesInCStyleCastParentheses = false; in TEST_F()
9048 Spaces.SpaceAfterCStyleCast = true; in TEST_F()
9051 Spaces); in TEST_F()
9055 Spaces); in TEST_F()
9062 FormatStyle Spaces = getLLVMStyle(); in TEST_F() local
9063 Spaces.SpacesInSquareBrackets = true; in TEST_F()
9065 verifyFormat("int c = []() -> int { return 2; }();\n", Spaces); in TEST_F()
9066 verifyFormat("return [i, args...] {};", Spaces); in TEST_F()
9069 verifyFormat("int a[ 5 ];", Spaces); in TEST_F()
9070 verifyFormat("a[ 3 ] += 42;", Spaces); in TEST_F()
9071 verifyFormat("constexpr char hello[]{\"hello\"};", Spaces); in TEST_F()
9074 Spaces); in TEST_F()
9075 verifyFormat("std::unique_ptr<int[]> foo() {}", Spaces); in TEST_F()
9076 verifyFormat("int i = a[ a ][ a ]->f();", Spaces); in TEST_F()
9077 verifyFormat("int i = (*b)[ a ]->f();", Spaces); in TEST_F()
9085 FormatStyle Spaces = getLLVMStyle(); in TEST_F() local
9086 Spaces.SpaceBeforeAssignmentOperators = false; in TEST_F()
9087 verifyFormat("int a= 5;", Spaces); in TEST_F()
9088 verifyFormat("a+= 42;", Spaces); in TEST_F()
9089 verifyFormat("a or_eq 8;", Spaces); in TEST_F()
11298 FormatStyle Spaces = getLLVMStyle(); in TEST_F() local
11299 Spaces.SpacesInAngles = true; in TEST_F()
11301 verifyFormat("static_cast< int >(arg);", Spaces); in TEST_F()
11302 verifyFormat("template < typename T0, typename T1 > void f() {}", Spaces); in TEST_F()
11303 verifyFormat("f< int, float >();", Spaces); in TEST_F()
11304 verifyFormat("template <> g() {}", Spaces); in TEST_F()
11305 verifyFormat("template < std::vector< int > > f() {}", Spaces); in TEST_F()
11306 verifyFormat("std::function< void(int, int) > fct;", Spaces); in TEST_F()
11308 Spaces); in TEST_F()
11310 Spaces.Standard = FormatStyle::LS_Cpp03; in TEST_F()
11311 Spaces.SpacesInAngles = true; in TEST_F()
11312 verifyFormat("A< A< int > >();", Spaces); in TEST_F()
11314 Spaces.SpacesInAngles = false; in TEST_F()
11315 verifyFormat("A<A<int> >();", Spaces); in TEST_F()
11317 Spaces.Standard = FormatStyle::LS_Cpp11; in TEST_F()
11318 Spaces.SpacesInAngles = true; in TEST_F()
11319 verifyFormat("A< A< int > >();", Spaces); in TEST_F()
11321 Spaces.SpacesInAngles = false; in TEST_F()
11322 verifyFormat("A<A<int>>();", Spaces); in TEST_F()