diff options
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.73.0/tests/expected/cpp/30219-trailing_return.cpp')
-rw-r--r-- | debian/uncrustify-trinity/uncrustify-trinity-0.73.0/tests/expected/cpp/30219-trailing_return.cpp | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.73.0/tests/expected/cpp/30219-trailing_return.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.73.0/tests/expected/cpp/30219-trailing_return.cpp new file mode 100644 index 00000000..e250cbd5 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.73.0/tests/expected/cpp/30219-trailing_return.cpp @@ -0,0 +1,50 @@ +auto f0(int a, int b)->int; + +struct Foo +{ + auto f01()->bool; + auto f02() noexcept->bool; + auto f03() noexcept(true)->bool; + auto f04() noexcept(false)->bool; + auto f05() noexcept->bool = delete; + auto f06() noexcept(true)->bool = delete; + auto f07() noexcept(false)->bool = delete; + + auto f11() const->bool; + auto f12() const noexcept->bool; + auto f13() const noexcept(true)->bool; + auto f14() const noexcept(false)->bool; + auto f15() const noexcept->bool = delete; + auto f16() const noexcept(true)->bool = delete; + auto f17() const noexcept(false)->bool = delete; + + auto f21() throw()->bool; + auto f22() throw()->bool = delete; + auto f23() const throw()->bool; + auto f24() const throw()->bool = delete; +}; + +struct Bar +{ + Bar() : m_func([](void*)->result_t { + return magic; + }) {} +}; + +void foo() +{ + auto l = [](int n)->x_t { + return n + 5; + }; + x([](int n)->x_t { + return n + 5; + }); +} + +static auto f25()->bool { + return true; +} + +static auto f26() const noexcept(true)->bool { + return true; +} |