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

References

tools/clang/unittests/Format/FormatTest.cpp
10385   SomeSpace.SpaceBeforeParens = FormatStyle::SBPO_NonEmptyParentheses;
10387   verifyFormat("[]() -> float {}", SomeSpace);
10388   verifyFormat("[] (auto foo) {}", SomeSpace);
10389   verifyFormat("[foo]() -> int {}", SomeSpace);
10390   verifyFormat("int f();", SomeSpace);
10395                SomeSpace);
10400                SomeSpace);
10404                SomeSpace);
10409                SomeSpace);
10410   verifyFormat("A::A() : a (1) {}", SomeSpace);
10411   verifyFormat("void f() __attribute__ ((asdf));", SomeSpace);
10416                SomeSpace);
10417   verifyFormat("#define A(x) x", SomeSpace);
10418   verifyFormat("#define A (x) x", SomeSpace);
10421                SomeSpace);
10422   verifyFormat("auto i = std::make_unique<int> (5);", SomeSpace);
10423   verifyFormat("size_t x = sizeof (x);", SomeSpace);
10424   verifyFormat("auto f (int x) -> decltype (x);", SomeSpace);
10425   verifyFormat("int f (T x) noexcept (x.create());", SomeSpace);
10426   verifyFormat("alignas (128) char a[128];", SomeSpace);
10427   verifyFormat("size_t x = alignof (MyType);", SomeSpace);
10429                SomeSpace);
10430   verifyFormat("int f() throw (Deprecated);", SomeSpace);
10431   verifyFormat("typedef void (*cb) (int);", SomeSpace);
10432   verifyFormat("T A::operator()();", SomeSpace);
10433   verifyFormat("X A::operator++ (T);", SomeSpace);
10434   verifyFormat("int x = int (y);", SomeSpace);
10435   verifyFormat("auto lambda = []() { return 0; };", SomeSpace);