summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/input/cpp/indent_off_after_return.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/input/cpp/indent_off_after_return.cpp')
-rw-r--r--debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/input/cpp/indent_off_after_return.cpp60
1 files changed, 60 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/input/cpp/indent_off_after_return.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/input/cpp/indent_off_after_return.cpp
new file mode 100644
index 00000000..58e24797
--- /dev/null
+++ b/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/input/cpp/indent_off_after_return.cpp
@@ -0,0 +1,60 @@
+int foo1()
+{
+ return std::pair<int, int>{
+ 1, 2
+ }.first;
+}
+
+int foo2()
+{
+ return
+ int{3} & 2;
+}
+
+int foo3()
+{
+ constexpr static int x = 3;
+ return
+ decltype(x){x} & 2;
+}
+
+int foo4()
+{
+ return
+ new Type();
+}
+
+int foo5()
+{
+ return
+ veryLongMethodCall(
+ arg1,
+ longMethodCall(
+ methodCall(
+ arg2, arg3
+ ), arg4
+ )
+ );
+}
+
+int foo6()
+{
+ auto my_lambda = [] ()
+ {
+ return 1 +
+ 2 +
+ 3;
+
+ };
+}
+
+template<typename U>
+U *
+find(const std::string &name = "") const
+{
+ return find<U>([&name] (auto *pComposite)
+ {
+ return name.empty() ||
+ pComposite->getName() == name;
+ });
+}