reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/unittests/Format/FormatTest.cpp
10452   Spaces.SpacesInParentheses = true;
10453   verifyFormat("do_something( ::globalVar );", Spaces);
10454   verifyFormat("call( x, y, z );", Spaces);
10455   verifyFormat("call();", Spaces);
10456   verifyFormat("std::function<void( int, int )> callback;", Spaces);
10458                Spaces);
10461                Spaces);
10464                Spaces);
10469                Spaces);
10473                Spaces);
10478                Spaces);
10480   Spaces.SpacesInParentheses = false;
10481   Spaces.SpacesInCStyleCastParentheses = true;
10482   verifyFormat("Type *A = ( Type * )P;", Spaces);
10483   verifyFormat("Type *A = ( vector<Type *, int *> )P;", Spaces);
10484   verifyFormat("x = ( int32 )y;", Spaces);
10485   verifyFormat("int a = ( int )(2.0f);", Spaces);
10486   verifyFormat("#define AA(X) sizeof((( X * )NULL)->a)", Spaces);
10487   verifyFormat("my_int a = ( my_int )sizeof(int);", Spaces);
10488   verifyFormat("#define x (( int )-1)", Spaces);
10491   Spaces.SpacesInParentheses = false;
10492   Spaces.SpaceInEmptyParentheses = true;
10493   Spaces.SpacesInCStyleCastParentheses = true;
10494   verifyFormat("call(x, y, z);", Spaces);
10495   verifyFormat("call( );", Spaces);
10496   verifyFormat("std::function<void(int, int)> callback;", Spaces);
10499                Spaces);
10502                Spaces);
10507                Spaces);
10511                Spaces);
10516                Spaces);
10519   Spaces.SpaceAfterCStyleCast = true;
10520   verifyFormat("call(x, y, z);", Spaces);
10521   verifyFormat("call( );", Spaces);
10522   verifyFormat("std::function<void(int, int)> callback;", Spaces);
10525                Spaces);
10528                Spaces);
10533                Spaces);
10537                Spaces);
10542                Spaces);
10545   Spaces.SpacesInCStyleCastParentheses = false;
10546   Spaces.SpaceAfterCStyleCast = true;
10549                Spaces);
10553                Spaces);