diff options
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp')
699 files changed, 0 insertions, 14027 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/2138.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/2138.cpp deleted file mode 100644 index e0379b43..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/2138.cpp +++ /dev/null @@ -1 +0,0 @@ -int i = 0; /* a b *//* a b */ int b = 0; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/2185.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/2185.cpp deleted file mode 100644 index 6f874926..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/2185.cpp +++ /dev/null @@ -1,13 +0,0 @@ -typedef enum { - HAL_USART_ENABLED = 64, ///< Requested task impossible while - ///< peripheral in question is - ///< enabled - HAL_USART_DISABLED, ///< Requested task impossible while - ///< peripheral in question is - ///< disabled - HAL_USART_GPIO_ERROR, ///< GPIO tied with USART peripheral - ///< returned error state - HAL_USART_BUFFER_DEPLETED, ///< Not enough data to be read - HAL_USART_BUFFER_FULL ///< Data requested to be written - ///< didn't fit into buffer -} hal_usart_errors_t; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/2203.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/2203.cpp deleted file mode 100644 index 4a2c05fa..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/2203.cpp +++ /dev/null @@ -1 +0,0 @@ -using Foo = std::function<void (const bool)>; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/621_this-spacing.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/621_this-spacing.cpp deleted file mode 100644 index bd28a5e8..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/621_this-spacing.cpp +++ /dev/null @@ -1,2 +0,0 @@ -result = (Foo)this;
-result = (Foo)foo;
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/622_ifdef-indentation.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/622_ifdef-indentation.cpp deleted file mode 100644 index a6aface7..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/622_ifdef-indentation.cpp +++ /dev/null @@ -1,16 +0,0 @@ -f()
-{
- {
- {
- {
-# if 1
- return 0;
-# endif
-
- #if 1
- return 0;
- #endif
- }
- }
- }
-}
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/623_caret-spacing.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/623_caret-spacing.cpp deleted file mode 100644 index ad1ed6f7..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/623_caret-spacing.cpp +++ /dev/null @@ -1,3 +0,0 @@ -Foo^ foo = dynamic_cast<Bar^>(bar);
-Foo* foo = dynamic_cast<Bar*>(bar);
-x = a^b;
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/633_decl-in-func-typedef.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/633_decl-in-func-typedef.cpp deleted file mode 100644 index 4e18c597..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/633_decl-in-func-typedef.cpp +++ /dev/null @@ -1,5 +0,0 @@ -typedef void (*func)(); -typedef void (__stdcall *func)(); - -typedef std::vector<string *> * (* Finder )(std::string *); -typedef vector<std::string *> * (* Handler )(std::map< std::string * , vector *> *); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/634_extern-c-no-block.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/634_extern-c-no-block.cpp deleted file mode 100644 index bb6b14fb..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/634_extern-c-no-block.cpp +++ /dev/null @@ -1,9 +0,0 @@ -extern "C" int* i;
-extern "C" { int* i; }
-int* i;
-extern "C" NSString* i;
-extern "C" { NSString* i; }
-NSString* i;
-
-__attribute__((visibility ("default"))) int* i;
-__attribute__((visibility ("default"))) NSString* i;
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/DB.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/DB.cpp deleted file mode 100644 index 1b8f4bc8..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/DB.cpp +++ /dev/null @@ -1,5 +0,0 @@ -void AkonadiServer::createDatabase() -{ - DbConfig::configuredDatabase()->apply(db); - db.setDatabaseName(DbConfig::configuredDatabase()->databaseName()); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/DefaultAndDelete.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/DefaultAndDelete.cpp deleted file mode 100644 index 3c4f3b9e..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/DefaultAndDelete.cpp +++ /dev/null @@ -1,12 +0,0 @@ -class Foo -{ - public: - Foo( int bar)=0; - Foo( int bar = 777 ); - Foo( const Foo & ) = delete; - Foo( int boo ) =default; - Foo( unsigned int ) =default; - Foo( unsigned int boo=999 ); - Foo &operator= ( const Foo & ) = delete; - ~Foo(); -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Discussion_3987.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Discussion_3987.cpp deleted file mode 100644 index e4d0dad9..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Discussion_3987.cpp +++ /dev/null @@ -1,5 +0,0 @@ -static void append_tag_name(UncText &txt, Chunk *pc) -{ - LOG_FUNC_ENTRY(); - Chunk *tmp = pc->GetPrevNcNnl(); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/DoxygenComments.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/DoxygenComments.cpp deleted file mode 100644 index dfa5a906..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/DoxygenComments.cpp +++ /dev/null @@ -1,2 +0,0 @@ - //a cpp comment - ///<a Doygen comment diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Example.h b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Example.h deleted file mode 100644 index deede79a..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Example.h +++ /dev/null @@ -1,10 +0,0 @@ -class Example
-{
-
- Example()
- : member(0)
- {}
-
- int member;
-
-};
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/I1112-1.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/I1112-1.cpp deleted file mode 100644 index 365df31f..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/I1112-1.cpp +++ /dev/null @@ -1 +0,0 @@ -::some::very::looong::_and::complicated::name::MyType & a;
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/I1112-2.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/I1112-2.cpp deleted file mode 100644 index c3765ce4..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/I1112-2.cpp +++ /dev/null @@ -1,7 +0,0 @@ -class MyClass -{ -public: - void foo(::some::very::looong::_and::complicated::name::MyType& a, - ::some::very::looong::_and::complicated::name::MyType& b, - some::very::looong::_and::complicated::name::MyType& c); -};
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/I1112-3.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/I1112-3.cpp deleted file mode 100644 index 6c48cb63..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/I1112-3.cpp +++ /dev/null @@ -1,5 +0,0 @@ -class MyClass -{ -public: - ::some::name * foo; -};
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/I2102.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/I2102.cpp deleted file mode 100644 index d8cf883a..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/I2102.cpp +++ /dev/null @@ -1,2 +0,0 @@ -unsigned __int32 b = 1ui32; -unsigned __int64 b = 1ui64; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/I2103.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/I2103.cpp deleted file mode 100644 index c35fbe56..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/I2103.cpp +++ /dev/null @@ -1,3 +0,0 @@ -int i1 = EEnumType::a & EEnumType::b; -int i2 = a & b; -int i3 = EEnumType::Enum1 & b; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1052.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1052.cpp deleted file mode 100644 index 19461b71..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1052.cpp +++ /dev/null @@ -1,3 +0,0 @@ -ut8 u32s[sizeof (ut32)] = { -0 -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1130.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1130.cpp deleted file mode 100644 index 201ed38c..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1130.cpp +++ /dev/null @@ -1,39 +0,0 @@ -void ABC() -{ -bool bb = true; -bool ccc = true; -char x; -// simple: E1 ? E2 : E3 -x = - bb ? - 'T' - : 'F'; -// simple_R: E1 ? E2 : E1r ? E2r : E3r -x = - bb ? - 'T' - : ccc ? - 'r' - : 'F'; - simple_L: E1 ? E1l ? E2l : E3l : E3 -x = - bb ? - (ccc) ? - 't' - : 'l' - : 'F'; -// CDanU E1 ? E1l ? E2ll : E1ll ? E3ll : E3l : E3 -x = - (bb) ? - (is_newline_tmp) ? 'n' - : (is_comment_tmp) ? 'c' - : 'o' - : '-'; - - -//CDanU E1 ? E1l ? E2ll : E1ll ? E3ll : E3l : E3 -// x = (y) ? _is_newline(tmp) ? 'n' : _is_comment(tmp) ? 'c' : 'o' : '-'; -// |E1______________ c E2_ C E3_| -// |E1______________ b E2_ B E3___________________________| -// |E1_ a E2_____________________________________________________ A E3| -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1167.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1167.cpp deleted file mode 100644 index 6a9042c2..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1167.cpp +++ /dev/null @@ -1 +0,0 @@ -typedef ::foo::moon::extra::common::super::VeryLongClassName <::foo::moon::extra::common::super::ISuperNice, ::foo::moon::extra::common::super::NiceStoryAboutTheSea, ::foo::moon::extra::common::super::TheVeryLastParameter> AVeryLongNameForDemonstration; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1184.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1184.cpp deleted file mode 100644 index 7c69e7fb..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1184.cpp +++ /dev/null @@ -1,4 +0,0 @@ -char buf [2000]; - -buf [0] = 5; -buf [1] = 6; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1460.h b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1460.h deleted file mode 100644 index 63787999..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1460.h +++ /dev/null @@ -1,5 +0,0 @@ -#define MGT_TYPE_WINDOW (mgt_window_get_type ()) - -G_DECLARE_FINAL_TYPE (MgtWindow, mgt_window, MGT, WINDOW, GtkApplicationWindow) - -MgtWindow *mgt_window_new (MgtApplication *app); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1511.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1511.cpp deleted file mode 100644 index 2583c0e3..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1511.cpp +++ /dev/null @@ -1 +0,0 @@ -int getFoo() { return foo; } diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1692.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1692.cpp deleted file mode 100644 index 4a2c97b5..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1692.cpp +++ /dev/null @@ -1,6 +0,0 @@ -switch (a) -{ - case 0: - // code - break; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1703.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1703.cpp deleted file mode 100644 index bca40664..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1703.cpp +++ /dev/null @@ -1 +0,0 @@ -#define NUM_LPM_TESTS (sizeof(tests) / sizeof(tests[0])) diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1704.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1704.cpp deleted file mode 100644 index 90cb2049..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1704.cpp +++ /dev/null @@ -1 +0,0 @@ -#define INC_REF_COUNT(ref_count) ++ref_count diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1733.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1733.cpp deleted file mode 100644 index 10be5586..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1733.cpp +++ /dev/null @@ -1,14 +0,0 @@ -class X15 -{ -enum Enum -{ - e1 -}; - -operator Enum(); -}; - -::X15::operator ::X15::Enum() -{ - return e1; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1734.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1734.cpp deleted file mode 100644 index 31d08c29..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1734.cpp +++ /dev/null @@ -1,14 +0,0 @@ -class X16 -{ -public: -X16(); -}; - -// https://en.cppreference.com/w/cpp/language/function-try-block -X16::X16() -try -{ -} -catch (...) -{ -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1737.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1737.cpp deleted file mode 100644 index fd8b1384..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1737.cpp +++ /dev/null @@ -1,11 +0,0 @@ -template<class T> -class foo -{ -public: - T x; - foo<T>(int a): x(a) - { - int y = a; - int z = 13; - } -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1753.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1753.cpp deleted file mode 100644 index bf5530c3..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1753.cpp +++ /dev/null @@ -1,9 +0,0 @@ -void x() -{ - a = c0*d0(); - a = b?c+d:e; - a = b?c*d:e; - a = b?c+d():e; - a = b1?c1*d1():e1; - a = b2?c2()*d2:e2; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1813-2.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1813-2.cpp deleted file mode 100644 index 9c02605a..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1813-2.cpp +++ /dev/null @@ -1,11 +0,0 @@ -namespace n1 { - namespace n2 { - - void func() { - another_func([]() { - return 42; - }); - } - - } - } diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1813-3.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1813-3.cpp deleted file mode 100644 index 93e0799c..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1813-3.cpp +++ /dev/null @@ -1,13 +0,0 @@ -namespace n1 { - namespace n2 { - namespace n3 { - - void func() { - another_func([]() { - return 42; - }); - } - - } - } - } diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1813.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1813.cpp deleted file mode 100644 index 0c07555d..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1813.cpp +++ /dev/null @@ -1,29 +0,0 @@ -namespace ns1 -{ -namespace ns2 -{ -void func0() -{ -functionThatTakesALambda( [&] () -> void -{ -lambdaBody; -}); -functionThatTakesALambda( [&] __device__ () -> void -{ -lambdaBody; -}); -functionThatTakesALambda( [&] __host__ __device__ () -> void -{ -lambdaBody; -}); -functionThatTakesALambda( [&] DEVICE_LAMBDA_CONTEXT () -> void -{ -lambdaBody; -}); -functionThatTakesALambda( [&] HOST_DEVICE_LAMBDA_CONTEXT () -> void -{ -lambdaBody; -}); -} -} -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1923.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1923.cpp deleted file mode 100644 index e5b3ceeb..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1923.cpp +++ /dev/null @@ -1,5 +0,0 @@ -int x1 = 0; -foobar long_x2 = 0; -foo<int> x3 = 0; -int x4[] = {1, 2, 3}; -decltype(x1) x5 = 0; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1966.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1966.cpp deleted file mode 100644 index 80b7ddc7..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_1966.cpp +++ /dev/null @@ -1,2 +0,0 @@ -#define FLAG1 0x101 /* struct foo should not be used. -The struct is unsafe */ diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2020.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2020.cpp deleted file mode 100644 index 94d0aa28..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2020.cpp +++ /dev/null @@ -1,20 +0,0 @@ -class X21 -{ -public: -void f( -int p1, int p2); -}; - -void -X21::f( -int p1, int p2) -{ -} - -void -n1() -{ - X21 x21; - x21.f( -111, 122); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2045.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2045.cpp deleted file mode 100644 index 627eba3f..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2045.cpp +++ /dev/null @@ -1,12 +0,0 @@ -void wpa_smk_send_error(struct wpa_authenticator *wpa_auth, - struct wpa_state_machine *sm, const u8 *peer, - u16 mui, u16 error_type) -{ - u8 kde[2 + RSN_SELECTOR_LEN + ETH_ALEN + - 2 + RSN_SELECTOR_LEN + sizeof(struct rsn_error_kde)]; - u8 *pos; - struct rsn_error_kde error; - - wpa_auth_logger(wpa_auth, sm->addr, LOGGER_DEBUG, - "Sending SMK Error"); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2085.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2085.cpp deleted file mode 100644 index 581f4db4..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2085.cpp +++ /dev/null @@ -1 +0,0 @@ -typedef std::function<size_t (int arg)> Fail; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2091.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2091.cpp deleted file mode 100644 index 6e32d683..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2091.cpp +++ /dev/null @@ -1,5 +0,0 @@ -#include <AClass.h> -#include <SomeClass.h> -#include <TheClass.h> -#include <iostream> -#include <vector> diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2099.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2099.cpp deleted file mode 100644 index 4726f44b..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2099.cpp +++ /dev/null @@ -1,2 +0,0 @@ -void GoAbsolutePosition( /* [in1] */ double arg1_, - /* [in2] */ double arg2_ ); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2101.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2101.cpp deleted file mode 100644 index 3e07c686..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2101.cpp +++ /dev/null @@ -1,5 +0,0 @@ -void Test() -{ - aaaaaa = condition ? FunctionWithVeryLongName( andWithVeryLongArgumentsToo1, andWithVeryLongArgumentsToo2 ) - : FunctionWithVeryLongName( andWithVeryLongArgumentsToo2, andWithVeryLongArgumentsToo1 ); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2138.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2138.cpp deleted file mode 100644 index ad53fa57..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2138.cpp +++ /dev/null @@ -1,2 +0,0 @@ -void funcName() const; -void ncName() override; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2149.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2149.cpp deleted file mode 100644 index 88fb2249..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2149.cpp +++ /dev/null @@ -1,7 +0,0 @@ -namespace -{ - enum EnumValue - { - EnumValue1 = 1 << 1 - }; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2150.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2150.cpp deleted file mode 100644 index 1e4d6bf5..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2150.cpp +++ /dev/null @@ -1,17 +0,0 @@ -int f( int a ) -{ - switch ( a ) - { - case 1: - { - return a; - } - case 2: -#if 1 - case 3: -#endif - { - return a; - } - } -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2151.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2151.cpp deleted file mode 100644 index dce02df3..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2151.cpp +++ /dev/null @@ -1,5 +0,0 @@ -void f( int a ) -{ - namespace C { enum { Value }; } - const bool ok = ( a & C::Value ) && true; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2163.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2163.cpp deleted file mode 100644 index 543b9827..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2163.cpp +++ /dev/null @@ -1,15 +0,0 @@ -/* - * m - */ -void -m(){ return 0; } -/* - * n - */ -void -n(){ return 0; } -/* - * n - */ -int& -n( int& x ){ return x; } diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2166.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2166.cpp deleted file mode 100644 index d9ac55c7..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2166.cpp +++ /dev/null @@ -1,7 +0,0 @@ -void f1() -{ - int a; - int b; - auto lambda1 = [ &a ](){ return true; }; - auto lambda2 = [ &a = b ](){ return true; }; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2170.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2170.cpp deleted file mode 100644 index beeffc7e..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2170.cpp +++ /dev/null @@ -1,8 +0,0 @@ -class Foo -{ - public: - Foo( int bar = 1 ); - Foo( const Foo & ) = delete; - Foo &operator= ( const Foo & ) = delete; - ~Foo(); -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2186.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2186.cpp deleted file mode 100644 index c9cbacda..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2186.cpp +++ /dev/null @@ -1,14 +0,0 @@ -using namespace std; - -namespace ui { class CClass; } // Expected to stay as-is -namespace ui::dlg { class CClassDlg; } // Expected to stay as-is (new in C++17) - -namespace ui { // Brace should be on the next line -class CClass1; // Should be indented -class CClass2; -class CClass3; -class CClass4; -class CClass5; -class CClass6; -class CClass7; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2195.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2195.cpp deleted file mode 100644 index 3573b20d..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2195.cpp +++ /dev/null @@ -1,44 +0,0 @@ -void Launcher::signal(int code) -{ - /* - 1 HUP 2 INT 3 QUIT 4 ILL 5 TRAP 6 ABRT 7 BUS - 8 FPE 9 KILL 10 USR1 11 SEGV 12 USR2 13 PIPE 14 ALRM - 15 TERM 16 STKFLT 17 CHLD 18 CONT 19 STOP 20 TSTP 21 TTIN - 22 TTOU 23 URG 24 XCPU 25 XFSZ 26 VTALRM 27 PROF 28 WINCH - 29 POLL 30 PWR 31 SYS - - - Operation WinCode NixCode - Status 128 1 (HUP) - Terminate N/A 2 (INT) Linux or macOS uses this for CTRL-C. - 129 3 - 130 4 - 131 5 - 132 6 - 133 7 - 8 - 9 - 10 - 11 - 12 - 13 - 14 - Terminate N/A 15 (TERM) Linux or macOS uses this for CTRL-C. - 16 - N/A 17 (CHILD) Child process exited. - N/A 28 WINCH, window changed size. - */ - - // Convert to lower range - if (code >= 128) - { - code -= 127; - } - - - - - - - event_queue.push(code); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2219.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2219.cpp deleted file mode 100644 index cb6e24bf..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2219.cpp +++ /dev/null @@ -1,5 +0,0 @@ -void foo() -{ -for(int i = 0;i < 1;i++) {return (false);} -float g = 0.13; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2224.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2224.cpp deleted file mode 100644 index 65382eb9..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2224.cpp +++ /dev/null @@ -1,6 +0,0 @@ -static void GPUFailedMsgA(const long long int error, const char* file, int line) -{ -if (GPUFailedMsgAI(error, file, line)) { -throw std::runtime_error("Failure"); -} -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2229.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2229.cpp deleted file mode 100644 index 9f575dc1..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2229.cpp +++ /dev/null @@ -1,6 +0,0 @@ -int foo() -{ -if (false) {return 1;} -if (true) {return 2;} -float a = 0; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2232.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2232.cpp deleted file mode 100644 index 7632ed27..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2232.cpp +++ /dev/null @@ -1,7 +0,0 @@ -void main() -{ -if (true) { return;} - -mInitialized = true; -return 0; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2236.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2236.cpp deleted file mode 100644 index 5dbc4fbe..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2236.cpp +++ /dev/null @@ -1,8 +0,0 @@ -class A -{ -public: - virtual void f11111111( int a, int b, int c ) = 0; - virtual void f2( int* ptr2 = nullptr ) = 0; - virtual void f2333( int* ptr3 = 3 ) = delete; - void f244444( int* ptr4 = 4 ) = default; -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2250.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2250.cpp deleted file mode 100644 index 9268c2e3..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2250.cpp +++ /dev/null @@ -1,9 +0,0 @@ -SettingsDelta::SettingsDelta( - const LastEffectiveContextData& lastEffCtxData) - : Member2(lastEffCtxData.member2()) - , Member3(lastEffCtxData.member3().c_str()) - , Functor([this](const int& num) { Callback(num); }) - , Member4(lastEffCtxData.member4().c_str()) - , Member5(lastEffCtxData.member5()) -{ -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2281.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2281.cpp deleted file mode 100644 index 44b9e75f..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2281.cpp +++ /dev/null @@ -1,24 +0,0 @@ -int foo(int op) -{ - switch (op) - { - case 1: - do_something(); - break; - case 2: - do_something_else(); - case 3: - if (do_something_different()) - { - do_this(); - break; // this should be indented like the surrounding code - } - do_something_more(); - break; - } - return -1; - for (;;) - { - break; - } -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2302.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2302.cpp deleted file mode 100644 index 4763c574..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2302.cpp +++ /dev/null @@ -1,6 +0,0 @@ -template<class T> -class Foo<T>::Baz { - Baz() noexcept - : i(0) - {} -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2305.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2305.cpp deleted file mode 100644 index 1b35ac11..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2305.cpp +++ /dev/null @@ -1,6 +0,0 @@ -template<class T> -class Foo<T>::Bar { - void - Bar(int iii) : iii(0) - {} -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2319.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2319.cpp deleted file mode 100644 index 8c0ae3e9..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2319.cpp +++ /dev/null @@ -1,2 +0,0 @@ -using AbstractLinkPtr = AbstractLink*; -using AbstractLinkPtrPtr = AbstractLink**; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2332.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2332.cpp deleted file mode 100644 index 0bc9cf8f..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2332.cpp +++ /dev/null @@ -1,6 +0,0 @@ -CPoint GetPoint() -{ - return { obj_.GetCoordinateXFromObject(), - obj_.GetCoordinateYFromObject(), - obj_.GetCoordinateZFromObject() }; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2343.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2343.cpp deleted file mode 100644 index 837b0506..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2343.cpp +++ /dev/null @@ -1,143 +0,0 @@ -class Capteur { - public: - Capteur (); - public: - float val_num; - float val_num_prec; // La valeur précédente pour la comparaison - String tendance; // La variable text récupérée du flux Internet - String val_texte; // La variable text récupérée du flux Internet -}; - -class Capteur_CO2 : public Capteur { - public: - Capteur_CO2() : - un_membre_en_plus ( 0 ) {} - public: - int un_membre_en_plus; -}; - - -class Salon { - public: - Capteur temperature; - Capteur humidite; - Capteur pression; - Capteur_CO2 CO2; -}; - - -typedef struct Exterieur Exterieur; -struct Exterieur { // Structure qui regroupe toutes les variables de la station météo - float temp_num; - float temp_num_prec; // La valeur précédente pour la comparaison - int humidite; - int humidite_prec; // La valeur précédente pour la comparaison - String temp_tendance; // La variable text récupérée du flux Internet - String temp_texte; // La variable text récupérée du flux Internet - String humidite_texte; // La variable text récupérée du flux Internet - Exterieur () : - temp_num ( -99.9 ), - temp_num_prec ( -99.9 ), - humidite ( 0 ), - humidite_prec ( 0 ), - temp_tendance ( "up" ), - temp_texte ( "" ), - humidite_texte ( "" ) {} -}; - - - -for ( int i = 3; i < 42; i++ ) { - Serial.print ( "TEXTE(AC" ); - Serial.print ( i ); - Serial.print ( ";\"0\");\",\";" ); -} -#define OLIVE 0x7BE0 -#define LIGHTGREY 0xC618 -#ifndef _NETATMO_FONCTIONS_WIFI_h - #define _NETATMO_FONCTIONS_WIFI_h - #if defined ( ARDUINO ) && ARDUINO >= 100 - #include "arduino.h" - #if defined ( RORO ) - #define qsijnqsijdn 1323 - // asbdsqhbdsqibd - #endif - #define qsijnqsijdn 1323 - - #else - #define qsijnqsijdn 1323 - - #include "WProgram.h" - #endif // if defined ( ARDUINO ) && ARDUINO >= 100 - #define qsijnqsijdn 1323 - -#endif // ifndef _NETATMO_FONCTIONS_WIFI_h - -// Essaie de signe=se+szde/szz-sszzd%zdzd -zzez = { 1, 2, 3 }; -toto += 1 + 2 / 9 - 3 / 2; - -int fonction ( ( int *zeze ), ( ss ) ) { ksjbshjdbshjdb = 1;} -fonction ( ( &zeze ), ( ss ) ); -fonction (); -// Définition des structures de données -typedef struct Exterieur Exterieur; -struct Exterieur { // Structure qui regroupe toutes les variables de la station météo - float temp_num; - float temp_num_prec; // La valeur précédente pour la comparaison - int humidite; - int humidite_prec; // La valeur précédente pour la comparaison - String temp_tendance; // La variable text récupérée du flux Internet -}; -Exterieur tototot = { -99, -99, -99, -99, 99 }; - -// Température Extérieure -float _Temp_Ext = -99.9; -float _Temp_Ext_Precedente = -99.9; // La valeur précédente pour la comparaison -String _Temp_Ext_Tendance = "up"; - -UTFT myGLCD ( SSD1963_800 = 1, 38, 39, 40, 41 ); // (byte model, int RS, int WR, int CS, int RST, int SER) -UTFT_Geometry geo_myGLCD ( &myGLCD ); - -const char *jour_semaine[[1], [2]] = { - "\0", - "Vendredi\0", - "Dimanche\0" -}; - -void Centrer_Nombre_Int_dans_Zone ( int _nbr, int Y, int X1, int X2, int COULEUR ); -void Centrer_Nombre_Float_dans_Zone ( float _nbr, int Y, int X1, int X2, int COULEUR ); - -void Centrer_Nombre_Int_dans_Zone ( int _nbr, int Y, int X1, int X2, int COULEUR ) { - toto = 1 + 2 / 9 - 3 / 2; - String _texte = String ( _nbr, 1 ); - if ( X2 > X1 ) { - X = X1 + ( X2 - X1 + 1 - _texte.length () * myGLCD.getFontXsize () ) / 2; - } - else { - X = X2 + ( X1 - X2 - myGLCD.getFontXsize () ) / 2; - } - if ( X <= 0 ) { - Serial.print ( F ( "-- Erreur dans le fonction Centrer_Nombre_Int_dans_Zone : la valeur calculée de X est négative ou nulle, elle vaut :" ) ); - Serial.println ( X ); - Serial.print ( F ( "Le texte qui génère cette erreur est : " ) ); - Serial.println ( _texte ); - } - else { - myGLCD.setColor ( COULEUR ); - myGLCD.printNumI ( _nbr, X, Y ); - } -} - -void Texte_Bonjour () { - myGLCD.setColor ( VGA_AQUA ); - myGLCD.setBackColor ( VGA_TRANSPARENT ); - - - - myGLCD.setFont ( Grotesk32x64 ); - myGLCD.print ( F ( "BONJOUR" ), CENTER, 20 ); - myGLCD.setFont ( BigFont ); - myGLCD.print ( F ( "*** NETATMO AFFICHAGE DEPORTE ***" ), CENTER, 100 ); - myGLCD.print ( F ( "Debut : Mai 2019 / MAJ : Juillet 2019" ), CENTER, 120 ); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2345-3.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2345-3.cpp deleted file mode 100644 index 787ce29b..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2345-3.cpp +++ /dev/null @@ -1,5 +0,0 @@ -namespace fooD { - void a(); - void b(); - void c(); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2345-4.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2345-4.cpp deleted file mode 100644 index 9478d63e..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2345-4.cpp +++ /dev/null @@ -1,6 +0,0 @@ -namespace fooD { - void a(); - void b(); - void c(); - void d(); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2368.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2368.cpp deleted file mode 100644 index 08d0556b..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2368.cpp +++ /dev/null @@ -1,10 +0,0 @@ -void Func1() -{ - OtherFunc( 5, b ); -} - -void Func2() -{ - Func3( p1, p2, p3 ); - Func3( p111, p222, p333 ); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2383.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2383.cpp deleted file mode 100644 index 356fd9af..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2383.cpp +++ /dev/null @@ -1,7 +0,0 @@ -// Smooth -// Copyright (C) 2017 Per -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2386.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2386.cpp deleted file mode 100644 index ac0b1dd4..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2386.cpp +++ /dev/null @@ -1,19 +0,0 @@ -// A - - -std::string getText() -{ - return "Hello World"; -} - -int main(int argc, char *argv[]) -{ - std::cout << getText() << std::endl; - return 0; -} -// This is Hello World with a function call and - -// form feed characters in it for emacs page-break-lines extension -// which draws a horizontal line for each FF char it finds. -// -// this file contains two single h. lines and two consecutive h. lines diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2387.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2387.cpp deleted file mode 100644 index af00e16e..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2387.cpp +++ /dev/null @@ -1,14 +0,0 @@ -namespace bar -{ -void none(); -}; - -void foo() -{ - namespace // does not - x // start a - = // namespace - bar; - - x::none(); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2428.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2428.cpp deleted file mode 100644 index c919d5a5..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2428.cpp +++ /dev/null @@ -1,5 +0,0 @@ -void test() -{ - int { 0 }; - int abcdef { 0 }; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2437.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2437.cpp deleted file mode 100644 index 2a64bd8f..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2437.cpp +++ /dev/null @@ -1,2 +0,0 @@ -void timer_cb1(struct timer_node *n); -typedef void timer_cb (struct timer_node *n); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2440.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2440.cpp deleted file mode 100644 index c52c30da..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2440.cpp +++ /dev/null @@ -1,2 +0,0 @@ -#pragma region -#pragma endregion diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2440_nl.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2440_nl.cpp deleted file mode 100644 index c52c30da..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2440_nl.cpp +++ /dev/null @@ -1,2 +0,0 @@ -#pragma region -#pragma endregion diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2478.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2478.cpp deleted file mode 100644 index fbcfec1f..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2478.cpp +++ /dev/null @@ -1,41 +0,0 @@ -//example file -typedef int X35GlobalT1; -typedef int X35T2; - -void fooX35a() -{ - ::X35GlobalT1 a1; - X35T2 a2; - - ::X35GlobalT1 a3 = 1; - X35T2 a4 = 1; -} - -void fooX35b() -{ - X35GlobalT1 a1; - X35T2 a2; - - X35GlobalT1 a3 = 1; - X35T2 a4 = 1; -} - -class X35_1a -{ - private: - ::X35GlobalT1 a1; - X35T2 a2; - - ::X35GlobalT1 a3 = 1; - X35T2 a4 = 1; -}; - -class X35_1b -{ - private: - X35GlobalT1 a1; - X35T2 a2; - - X35GlobalT1 a3= 1; - X35T2 a4 = 1; -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2561.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2561.cpp deleted file mode 100644 index 15232fc4..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2561.cpp +++ /dev/null @@ -1,10 +0,0 @@ -#include <stdio.h> - -int getFoo() { return foo; } - -int main (int argc, char *argv[]) -{ - printf("hello world!\n"); - - return 0; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2565.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2565.cpp deleted file mode 100644 index 721d4d78..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2565.cpp +++ /dev/null @@ -1,3 +0,0 @@ -template -<bool = (sizeof(unsigned long) >= sizeof(size_t))> -struct LongFitsIntoSizeTMinusOne { ... } diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2570.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2570.cpp deleted file mode 100644 index 44373e77..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2570.cpp +++ /dev/null @@ -1,3 +0,0 @@ -class [[nodiscard]] CClass final -{ -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2574.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2574.cpp deleted file mode 100644 index fc79cd0d..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2574.cpp +++ /dev/null @@ -1,13 +0,0 @@ -#include <pybind11/pybind11.h> -namespace py = pybind11; -PYBIND11_MODULE(example, m) -{ - py::class_<Pet>(m, "Pet").def(py::init<const std::string&>()).def( - "setName_T", - &Pet::setName).def("getName", &Pet::getName); -} - -auto three()->int -{ - return 3; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2582.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2582.cpp deleted file mode 100644 index adf9bfe9..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2582.cpp +++ /dev/null @@ -1,3 +0,0 @@ -int fail = doSomething( - argument -).doNotIndentMe(); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2591.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2591.cpp deleted file mode 100644 index 01ed232e..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2591.cpp +++ /dev/null @@ -1,3 +0,0 @@ -const auto lambda = [this](int arg) { - doSomething(); -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2594.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2594.cpp deleted file mode 100644 index 798a719a..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2594.cpp +++ /dev/null @@ -1,16 +0,0 @@ -int GPUReconstructionOCL2Backend::GetOCLPrograms() -{ - -#ifdef OPENCL2_ENABLED_SPIRV // clang-format off - if (ver >= 2.2) { - mInternals->program = clCreateProgramWithIL(mInternals->context, _makefile_opencl_program_Base_opencl_GPUReconstructionOCL2_cl_spirv, _makefile_opencl_program_Base_opencl_GPUReconstructionOCL2_cl_spirv_size, &ocl_error); - } else - { - size_t program_sizes[1] = {_makefile_opencl_program_Base_opencl_GPUReconstructionOCL2_cl_src_size}; - char* programs_sources[1] = {_makefile_opencl_program_Base_opencl_GPUReconstructionOCL2_cl_src}; - mInternals->program = clCreateProgramWithSource(mInternals->context, (cl_uint) 1, (const char**) &programs_sources, program_sizes, &ocl_error); - } -#endif // clang-format on - - return 0; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2596.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2596.cpp deleted file mode 100644 index d2517e8b..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2596.cpp +++ /dev/null @@ -1,5 +0,0 @@ -void function(void) { - int a = 0; - int b = (a==1)?1:2; - int c = (a==1) ? 1 : 2; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2604.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2604.cpp deleted file mode 100644 index e73c67a8..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2604.cpp +++ /dev/null @@ -1,15 +0,0 @@ -void funcPROTO( int parameter1, int parameter2, - int parameter3, int parameter4, - int parameter5, int parameter6, - int parameter7); - -void funcDEF( int parameter1, int parameter2, - int parameter3, int parameter4, - int parameter5, int parameter6, - int parameter7) -{ -funcCALL( parameter1, parameter2, - parameter3, parameter4, - parameter5, parameter6, - parameter7 ); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2668.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2668.cpp deleted file mode 100644 index 1e2f5d02..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2668.cpp +++ /dev/null @@ -1,9 +0,0 @@ -class SubClass2 : public SuperClass -{ -bool variable; -int abcde; -SubClass2() - : SuperClass() -{ -} -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2672-a.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2672-a.cpp deleted file mode 100644 index d29d2c47..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2672-a.cpp +++ /dev/null @@ -1,10 +0,0 @@ -struct Point2D -{ - float x; - float y; -}; - -struct : Point2D -{ - float z; -} point; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2672-b.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2672-b.cpp deleted file mode 100644 index f484d4ff..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2672-b.cpp +++ /dev/null @@ -1,2 +0,0 @@ -struct BaseStruct {}; -struct : BaseStruct {}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2688.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2688.cpp deleted file mode 100644 index 0b394620..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2688.cpp +++ /dev/null @@ -1,7 +0,0 @@ -{ -std::vector<Object> someVector = { - flag && (hasFeedback != nil) - ? objectA - : objectB, -}; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2689.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2689.cpp deleted file mode 100644 index ef3b5a4b..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2689.cpp +++ /dev/null @@ -1,5 +0,0 @@ -class C -{ -public: - size_t f4 : 8 * sizeof(size_t) - 2; // <-- this star is treated a pointer token -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2692.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2692.cpp deleted file mode 100644 index 4173ad5d..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2692.cpp +++ /dev/null @@ -1,5 +0,0 @@ -class Class -{ -std::mutex* a; -int* b; -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2703.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2703.cpp deleted file mode 100644 index ec4554e9..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2703.cpp +++ /dev/null @@ -1,14 +0,0 @@ -#define DEFINE_OPERATORS(classT, flagsT) \ - inline classT::flagsT \ - operator&(const classT::flagsT& lh1, \ - const classT::flagsT::EnumType rh1) \ - { \ - return classT::flagsT(lhs) &= rhs; \ - } \ - \ - inline classT::flagsT \ - operator&(const classT::flagsT::EnumType lh2, \ - const classT::flagsT& rh2) \ - { \ - return classT::flagsT(lhs) &= rhs; \ - } diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2726.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2726.cpp deleted file mode 100644 index 7b76eb43..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2726.cpp +++ /dev/null @@ -1,13 +0,0 @@ -VIEW_CONTROLLER_MACRO(ThreadButton) -UIViewController * MSGCreate(MBAMailbox * mailbox, NSNumber * threadKey); - - -NS_SWIFT_NAME(Create(String)) -Controller * create(NSString * str); - - -MACRO_FUNCTION -Object * create( NSString * str, NSDictionary<NSString *, NSArray *> * data, string ** str) -{ - return nullptr; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2734.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2734.cpp deleted file mode 100644 index 7b85c0ec..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2734.cpp +++ /dev/null @@ -1 +0,0 @@ -connect(server, SIGNAL(newConnection()), this, SLOT(ok())); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2735.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2735.cpp deleted file mode 100644 index f83e3536..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2735.cpp +++ /dev/null @@ -1,24 +0,0 @@ -void func(int a){ - switch (a) - { - case 1: - ; - break; - - case 2: - ; - break; - - case 3: - { - int b = 3; - } - break; - - case 4: - { - float f = 4.0; - } - break; - } -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2742.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2742.cpp deleted file mode 100644 index 9d76fe44..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2742.cpp +++ /dev/null @@ -1,7 +0,0 @@ - -#define FOO \ -\ - int my_type; \ - int a; \ - float b; \ - double c; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2752.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2752.cpp deleted file mode 100644 index 237c8ce1..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2752.cpp +++ /dev/null @@ -1 +0,0 @@ -int main() {} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2757.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2757.cpp deleted file mode 100644 index 3c84969b..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2757.cpp +++ /dev/null @@ -1,5 +0,0 @@ -void -foo(map< int, int >& aaa, -int bbb) -{ -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2758.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2758.cpp deleted file mode 100644 index 1ac9a86e..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2758.cpp +++ /dev/null @@ -1,2 +0,0 @@ -// a function call: -int a = b(5); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2759.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2759.cpp deleted file mode 100644 index cbe9c4a5..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2759.cpp +++ /dev/null @@ -1,6 +0,0 @@ -Foo::Foo(int a, - int b) - : a_(a), // the comment should stay here - b_(b) -{ -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2771.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2771.cpp deleted file mode 100644 index ab7c285f..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2771.cpp +++ /dev/null @@ -1,4 +0,0 @@ -class CDiagnostic -{ - CDiagnostic& operator<<( int value_ ) { return ns::operator<<( *this, value_ ); } -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2794.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2794.cpp deleted file mode 100644 index 03f2ae4c..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2794.cpp +++ /dev/null @@ -1,14 +0,0 @@ -int -main() -{ -int i, j, k, l, m, q; - -i = rand(); -k = rand(); -l = rand(); -m = rand(); -j = rand(); -q = i * j + (2 * l) /m - ( 100 * k ) + k * k - i * i + 3000 * j + 1000 ; /* this is a very long trailing c comment */ - -// the trailing * */ above should be */ -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2795.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2795.cpp deleted file mode 100644 index 6cb7e112..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2795.cpp +++ /dev/null @@ -1,3 +0,0 @@ -void SnRequestTracefork::onCurlTestError(QProcess::ProcessError _error) { - myerror(QString("Curl process failed with error %1").arg(_error)); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2823.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2823.cpp deleted file mode 100644 index eb0228c9..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2823.cpp +++ /dev/null @@ -1,3 +0,0 @@ -namespace farm::animal::chicken::leg -{ -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2831.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2831.cpp deleted file mode 100644 index f2dc1717..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2831.cpp +++ /dev/null @@ -1,8 +0,0 @@ -class Test { -public: - void funca() - { - static_cast<A>(funcb(static_cast<B>( - info))); - } -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2836.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2836.cpp deleted file mode 100644 index 44272d56..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2836.cpp +++ /dev/null @@ -1,4 +0,0 @@ -module x; -static if (1) {{ - int x; -}} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2873.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2873.cpp deleted file mode 100644 index af3020d3..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2873.cpp +++ /dev/null @@ -1,22 +0,0 @@ -class Capteur_CO2 - : public Capteur - , aabc - , def -{ -public: - Capteur_CO2() - : un ( 1 ) - , deux(2) { - } -}; -class Capteur_CO3 - : public Capteur, - aabc, - def -{ -public: - Capteur_CO3() - : un ( 1 ), - deux(2) { - } -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2879.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2879.cpp deleted file mode 100644 index 294c5e85..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2879.cpp +++ /dev/null @@ -1,7 +0,0 @@ -class CObject -{ -void f() -{ - CObject obj( b1 && c1, b2 && c2 ); -} -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2886.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2886.cpp deleted file mode 100644 index 0474c710..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2886.cpp +++ /dev/null @@ -1 +0,0 @@ -ValuePrimaryKey<int64_t, Schema, ColumnId1{0}> id = { kTableName, kColumnNameId }; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2890.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2890.cpp deleted file mode 100644 index cea47724..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2890.cpp +++ /dev/null @@ -1,45 +0,0 @@ -#include <iostream> -#include <sstream> -#include <string> - -struct StringBuilder -{ - template <typename T> - StringBuilder& append(const T& thing) - { - ss << thing; - return *this; - } - std::string build() - { - return ss.str(); - } - std::stringstream ss; -}; - -int main() -{ - std::string my_____String = StringBuilder().append(7).append(" + ").append(21).append(" = ").append(7 + 21).build(); - std::string my_____String = StringBuilder() - .append(7) - .append(" + ") - .append(21) - .append(" = ") - .append(7 + 21) - .build(); - - std::cout << my___String << std::endl; -} - -void function() -{ - auto response = ResponseBuilder_1(1) - .setStatus_1(status) - .finish_1(); - - ResponseBuilder_2(request) - .setStatus_2(status) - .finish_2(); - - return ResponseBuilder_3(request).setStatus_3(status).finish_3(); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2902.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2902.cpp deleted file mode 100644 index ae10d5a9..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2902.cpp +++ /dev/null @@ -1 +0,0 @@ -enum empty {}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2907.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2907.cpp deleted file mode 100644 index 9d42a72d..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2907.cpp +++ /dev/null @@ -1,7 +0,0 @@ -template< typename Enum > class Flags -{ - public: - constexpr Flags() : value{ 0 } {} - constexpr Flags( Enum f ) : value( static_cast< value_t >( f ) ) {} - constexpr Flags( Flags const& ) = default; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2910.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2910.cpp deleted file mode 100644 index 82c2bec9..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2910.cpp +++ /dev/null @@ -1,4 +0,0 @@ -auto foo() -> decltype(0) -{ - return 0; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2914.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2914.cpp deleted file mode 100644 index c2cd8b59..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2914.cpp +++ /dev/null @@ -1,6 +0,0 @@ -void f() -{ - CallFunction( //-V556: Warning disabled because blablabla - param1, - param2 ); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2921.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2921.cpp deleted file mode 100644 index 43e19e96..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2921.cpp +++ /dev/null @@ -1,34 +0,0 @@ -namespace Namespace1 -{ - namespace Namespace2 - { - namespace Namespace3 - { - namespace Namespace4 - { - namespace Namespace5 - { - namespace Namespace6 - { - namespace Namespace7 - { - namespace Namespace8 - { - class ClassName - { - public: - ClassName(int a, - int b); - - private: - int a; - int b; - }; - } - } - } - } - } - } - } -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2930.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2930.cpp deleted file mode 100644 index 9b130982..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2930.cpp +++ /dev/null @@ -1,3 +0,0 @@ -int main(int argc, char** argv) { - return 0; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2942.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2942.cpp deleted file mode 100644 index e5bc781f..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2942.cpp +++ /dev/null @@ -1 +0,0 @@ -if (p == b); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2949.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2949.cpp deleted file mode 100644 index d37d7ac3..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2949.cpp +++ /dev/null @@ -1,7 +0,0 @@ -int index = -1; - -int main(void) -{ - const int x = 2; - int y = index < -x ? 1 : index > x ? 2 : 0; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2957.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2957.cpp deleted file mode 100644 index abb52b72..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2957.cpp +++ /dev/null @@ -1,6 +0,0 @@ -bus_type i2c_bus_type = { - .name = "i2c", - .match = i2c_device_match, - .suspend = i2c_bus_suspend, - .resume = i2c_bus_resume, -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2971.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2971.cpp deleted file mode 100644 index 52e7a253..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_2971.cpp +++ /dev/null @@ -1,11 +0,0 @@ -#include <iostream> -class X33 -{ - int - f1(std::istream* c1) - { - int i; - *c1 >> i; - return i; - } -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3010.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3010.cpp deleted file mode 100644 index b546e7be..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3010.cpp +++ /dev/null @@ -1,16 +0,0 @@ -namespace SomeLongNamespaceName { -class Foo { }; -} - -class Bar : SomeLongNamespaceName::Foo { -public: -Bar() - : SomeLongNamespaceName::Foo(), - myNumber(3), // <-- this line - myOtherNumber(5) -{ -} -private: -int myNumber; -int myOtherNumber; -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3018.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3018.cpp deleted file mode 100644 index ddbb473e..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3018.cpp +++ /dev/null @@ -1,7 +0,0 @@ -class Class -{ -int fa(); -int* fpa(); -int fb(); -int& frb(); -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3025.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3025.cpp deleted file mode 100644 index 9e64526e..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3025.cpp +++ /dev/null @@ -1,2 +0,0 @@ -int a;// Рука -int d;/* Рука */ diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3034.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3034.cpp deleted file mode 100644 index b91f431d..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3034.cpp +++ /dev/null @@ -1,13 +0,0 @@ -void main() -{ - while (*stringcur) - { -#ifdef NO8BIT - if (((*bufcur++ ^ *stringcur) & 0x7F) != 0) -#else /* NO8BIT */ - if (*bufcur++ != *stringcur) -#endif /* NO8BIT */ /* Issue #3034 */ - break; - } -} - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3040.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3040.cpp deleted file mode 100644 index fe9aed25..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3040.cpp +++ /dev/null @@ -1,57 +0,0 @@ -int main() -{ - switch (opcode) - { - case 1: - return Number(localeCompare(s, a0.toString(exec))); - -#ifndef A - case 2: - result = String("<big>" + s + "</big>"); - break; -#endif - - } - - switch (ev->command) - { - case (3): - ev->note = *ptrdata; ptrdata++; currentpos++; - ev->vel = *ptrdata; ptrdata++; currentpos++; - if (ev->vel==0) - note[ev->chn][ev->note]=FALSE; - else - note[ev->chn][ev->note]=TRUE; - -#ifdef B - if (ev->chn==6) { - if (ev->vel==0) printfdebug("Note Onf\n"); - else printfdebug("Note On\n"); - }; -#endif - break; - case (4) : -#ifdef C - if (ev->chn==6) printfdebug("Note Off\n"); -#endif - ev->note = *ptrdata;ptrdata++;currentpos++; - ev->vel = *ptrdata;ptrdata++;currentpos++; - note[ev->chn][ev->note]=FALSE; - - break; - case (5) : -#ifdef D - if (ev->chn==6) printfdebug ("Key press\n"); -#endif - ev->note = *ptrdata;ptrdata++;currentpos++; - ev->vel = *ptrdata;ptrdata++;currentpos++; - break; - -#ifndef E - case 6: - result = String("<big>" + s + "</big>"); - break; -#endif - } -} - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3044.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3044.cpp deleted file mode 100644 index 739b1305..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3044.cpp +++ /dev/null @@ -1,38 +0,0 @@ -int main() -{ - int af; - int A; - int B; - switch (af) - { - case 1: - B = 2; - case 2: - return 1; - case 3: - A = 1; - break; -#ifdef ALL_THE_CASE - case 4: - return 2; -#endif -#ifdef ALL_THE_CASE - case 5: - B = 2; -#endif - case (6): - B=13; -#ifdef PART_OF_THE_CASE_UNDER - A=1; -#endif - break; - case (7) : -#ifdef PART_OF_THE_CASE_ABOVE - A=5; -#endif - B=7; - break; - default: - B= 50; - } -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3048.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3048.cpp deleted file mode 100644 index 678d6ce4..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3048.cpp +++ /dev/null @@ -1,40 +0,0 @@ -int main() -{ - int sa_family; - int d; - int scopeid; - switch (sa_family) - { - case 1: -#ifdef AF_INET6 - if (d == 1) - scopeid = 1; - else - scopeid = 2; - return 5; -#else - return 6; -#endif - - case 2: -#ifdef AF_INET6 - TQString scopeid("%"); - if (d->addr.generic->sa_family == AF_INET6 && d->addr.in6->sin6_scope_id) - scopeid += TQString::number(d->addr.in6->sin6_scope_id); - else - scopeid.truncate(0); - return d->ref.ipAddress().toString() + scopeid; -#endif - - case 3: -#ifdef AF_INET6 - TQString scopeid("%"); - if (d->addr.generic->sa_family == AF_INET6 && d->addr.in6->sin6_scope_id) - scopeid += TQString::number(d->addr.in6->sin6_scope_id); - else - scopeid.truncate(0); - return d->ref.ipAddress().toString() + scopeid; -#endif - } -} - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3052.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3052.cpp deleted file mode 100644 index cb468be3..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3052.cpp +++ /dev/null @@ -1,11 +0,0 @@ -#define VTABLE_DECLARE \ - extern struct vtable_struct_name_macro vtable_base_macro; \ - struct vtable_struct_name_macro - -#define VTABLE_METHOD(retvalue, method, args ...) \ - retvalue(*method)(args) - -VTABLE_DECLARE { - VTABLE_METHOD(int, get, const char *name); - VTABLE_METHOD(int, set, const char *name, int value); -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3054-2.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3054-2.cpp deleted file mode 100644 index 77d0d337..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3054-2.cpp +++ /dev/null @@ -1,6 +0,0 @@ -void func(){ - parallel_for(0, 100, [&](int aaaaaa, int bbbbbbb, int ccccccc, int ddddddd, const int eee){ - // do something - return a; - }); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3054.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3054.cpp deleted file mode 100644 index 2d8b38d0..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3054.cpp +++ /dev/null @@ -1,7 +0,0 @@ -void func() -{ - parallel_for(0, 100, [ & ] ( const int i ) { - const std::vector<int> values = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; - return values[i]; - }); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3055-a.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3055-a.cpp deleted file mode 100644 index 85c9b7e8..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3055-a.cpp +++ /dev/null @@ -1,13 +0,0 @@ -#ifndef ABC -# define ABC - -#ifdef XYZ1 -extern "C" { -#endif - -#ifdef XYZ2 -} -#endif - -#endif -int a; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3055.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3055.cpp deleted file mode 100644 index 4d66bbf3..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3055.cpp +++ /dev/null @@ -1,12 +0,0 @@ -#ifndef ABC -# define ABC - -#ifdef XYZ1 -extern "C" { -#endif - -#ifdef XYZ2 -} -#endif - -#endif diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3058.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3058.cpp deleted file mode 100644 index f94e88e7..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3058.cpp +++ /dev/null @@ -1,70 +0,0 @@ -KJS::Value KJS::KateJSViewProtoFunc::call(KJS::ExecState *exec, KJS::Object &thisObj, const KJS::List &args) -{ - switch (id) - { - case KateJSView::SetCursorPositionReal: - return KJS::Boolean( view->setCursorPositionReal( args[0].toUInt32(exec), args[1].toUInt32(exec) ) ); - - // SelectionInterface goes in the view, in anticipation of the future - case KateJSView::Selection: - return KJS::String( view->selection() ); - } - - return KJS::Undefined(); -} - -void KateXmlIndent::getLineInfo (uint line, uint &prevIndent, int &numTags, - uint &attrCol, bool &unclosedTag) -{ - for(pos = 0; pos < len; ++pos) { - int ch = text.at(pos).unicode(); - switch(ch) { - case '<': - ++numTags; - break; - - // don't indent because of DOCTYPE, comment, CDATA, etc. - case '!': - if(lastCh == '<') --numTags; - break; - - // don't indent because of xml decl or PI - case '?': - if(lastCh == '<') --numTags; - break; - } - } -} - -static YYSIZE_T yytnamerr (char *yyres, const char *yystr) -{ - if (*yystr == '"') - { - for (;;) - switch (*++yyp) - { - case '\\': - if (*++yyp != '\\') - yyres[yyn] = *yyp; - /* Fall through. */ - default: - if (yyres) - yyres[yyn] = *yyp; - yyn++; - break; - } - } - return yystpcpy (yyres, yystr) - yyres; -} - -Value RegExpProtoFuncImp::call(ExecState *exec, Object &thisObj, const List &args) -{ - if (!thisObj.inherits(&RegExpImp::info)) { - if (thisObj.inherits(&RegExpPrototypeImp::info)) { - switch (id) { - case ToString: return String("//"); // FireFox returns /(?:)/ - } - } - return err; - } -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3061_0nl.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3061_0nl.cpp deleted file mode 100644 index 2a76b5a3..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3061_0nl.cpp +++ /dev/null @@ -1,8 +0,0 @@ -DCOPClient::DCOPClient() -{ - TQObject::connect(&d->postMessageTimer, TQT_SIGNAL(timeout()), this, - TQT_SLOT(processPostedMessagesInternal())); - TQObject::connect(&d->eventLoopTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(eventLoopTimeout())); -} - -#include <dcopclient.moc>
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3061_1nl.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3061_1nl.cpp deleted file mode 100644 index fd369e24..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3061_1nl.cpp +++ /dev/null @@ -1,8 +0,0 @@ -DCOPClient::DCOPClient() -{ - TQObject::connect(&d->postMessageTimer, TQT_SIGNAL(timeout()), this, - TQT_SLOT(processPostedMessagesInternal())); - TQObject::connect(&d->eventLoopTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(eventLoopTimeout())); -} - -#include <dcopclient.moc> diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3061_2nl.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3061_2nl.cpp deleted file mode 100644 index 25906e08..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3061_2nl.cpp +++ /dev/null @@ -1,9 +0,0 @@ -DCOPClient::DCOPClient() -{ - TQObject::connect(&d->postMessageTimer, TQT_SIGNAL(timeout()), this, - TQT_SLOT(processPostedMessagesInternal())); - TQObject::connect(&d->eventLoopTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(eventLoopTimeout())); -} - -#include <dcopclient.moc> - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3080.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3080.cpp deleted file mode 100644 index 75c6072b..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3080.cpp +++ /dev/null @@ -1,2 +0,0 @@ -auto j = int{0}; -auto j = decltype(int){0}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3097.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3097.cpp deleted file mode 100644 index 3959e85a..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3097.cpp +++ /dev/null @@ -1,17 +0,0 @@ -void foo() -{ - for( unsigned p = 0; p < np; - ++p ) - { - double* o = bar[p]; - } - int x = 42; -} - -void bar() -{ - // hello - int x = 42; - if( x ) foo; - type::value_t y = 0; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3113.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3113.cpp deleted file mode 100644 index 63090f4a..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3113.cpp +++ /dev/null @@ -1 +0,0 @@ -#define CONTINUE_IF(expr) { if ((expr)) continue; } diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3164.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3164.cpp deleted file mode 100644 index 79fd6508..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3164.cpp +++ /dev/null @@ -1,5 +0,0 @@ -#include <cassert> -#include <rt> -#include <cassert> // comment -#include <cass> -#include <cassert> /* comment B */ diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3176.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3176.cpp deleted file mode 100644 index 2384027d..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3176.cpp +++ /dev/null @@ -1 +0,0 @@ -SecureStorage::~SecureStorage() = default; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3197.h b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3197.h deleted file mode 100644 index f1ba44b5..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3197.h +++ /dev/null @@ -1,4 +0,0 @@ -vec_ & operator+=(vec_ & , const vec_ &); - - -int xyz(int a, int b); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3198.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3198.cpp deleted file mode 100644 index 8dd234b7..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3198.cpp +++ /dev/null @@ -1,4 +0,0 @@ -enum class Flags : std::int64_t -{ - MyFlag -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3203.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3203.cpp deleted file mode 100644 index 47b37eee..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3203.cpp +++ /dev/null @@ -1,14 +0,0 @@ -#include <vector> - -class A -{ -public: - int a; - int b; - - std::vector<int*> v = - { - &a, - &b - }; -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3205.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3205.cpp deleted file mode 100644 index 99767289..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3205.cpp +++ /dev/null @@ -1 +0,0 @@ -vec_& operator+=(vec_&, const vec_&); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3220.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3220.cpp deleted file mode 100644 index ba42b013..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3220.cpp +++ /dev/null @@ -1,6 +0,0 @@ -int * b; -auto Func2(Model * model) -> Color * * const; -auto Func2(Model * model) -> Color * * const { - return nullptr; -} -int * Funcf(Model * model, int * *); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3236.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3236.cpp deleted file mode 100644 index ec79686e..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3236.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/* multi boolean */ -if (va1 < 0 || va2 > 0) -{ -} - - -/* single condition */ -if (auto val = getValue(); condition(val)) -{ -} - -/* multi boolean expression with existing parentheses */ -if (auto val = getValue(); (val < 0) || (val > 0)) -{ -} - -/* multi boolean expression without existing parentheses */ -if (auto val = getValue(); val < 0 || val > 0) -{ -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3237.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3237.cpp deleted file mode 100644 index 17e84d9c..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3237.cpp +++ /dev/null @@ -1,4 +0,0 @@ -void f() -{ - CPoint pt( aaa * bbb ); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3252.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3252.cpp deleted file mode 100644 index b435f4e2..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3252.cpp +++ /dev/null @@ -1,6 +0,0 @@ -void (*x)(void); - -typedef struct -{ -void (*y)(void); -} z; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3283.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3283.cpp deleted file mode 100644 index 9357b3b3..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3283.cpp +++ /dev/null @@ -1,3 +0,0 @@ -#define MACRO(a) if(!x) x=a; -#define MACRO(a) {if(!x) {x=a;}} -#define MACRO(a) {if(!x) x=a;} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3284.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3284.cpp deleted file mode 100644 index cea9091e..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3284.cpp +++ /dev/null @@ -1,5 +0,0 @@ -Node( const Node &rhs ) = delete; -Node &operator=( const Node &rhs ) = delete; - -Node( Node &&rhs ) noexcept = delete; -Node &operator=( Node &&rhs ) noexcept = delete; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3294.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3294.cpp deleted file mode 100644 index e1bf0e87..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3294.cpp +++ /dev/null @@ -1,17 +0,0 @@ -#include <vector> - -std::vector<int> x; - -void f1() -{ - int v = x.empty() - /**/ ? x.size() - /**/ : x.size(); -} - -void f2() -{ - int v = x.empty() - ? x.size() - : x.size(); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3309.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3309.cpp deleted file mode 100644 index d6dd1dac..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3309.cpp +++ /dev/null @@ -1 +0,0 @@ -template<typename ... ARGS> void test(ARGS&&... args) {} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3316.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3316.cpp deleted file mode 100644 index ee644d21..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3316.cpp +++ /dev/null @@ -1,15 +0,0 @@ -#include <iostream> - -bool -foo() -{ - const int i = 3; - - if ( i == 2 || i == 3 || i == 5 ) { - std::cerr << "Very small prime!\n"; - } - - const auto isSmallPrime = i == 2 || i == 3 || i == 5 || i == 7 || i == 11; - - return isSmallPrime || i == 13 || i == 17 || i == 19; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3321.h b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3321.h deleted file mode 100644 index 8e74beb2..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3321.h +++ /dev/null @@ -1,4 +0,0 @@ -auto l1 = []() {}; -auto l2 = [&]() {}; -auto l3 = []() noexcept {}; -auto l4 = [&]() noexcept {}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3357.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3357.cpp deleted file mode 100644 index f94d17fe..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3357.cpp +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @param[out] dest The memory area to copy to. - * @param[in] src The memory area to copy from. - * @param[in] n The number of bytes to copy - * @param[in,out] t The Test - */ -void memcpy(void *dest, const void *src, size_t n); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3409.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3409.cpp deleted file mode 100644 index ac6e64bf..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3409.cpp +++ /dev/null @@ -1,8 +0,0 @@ -namespace ns1 {
- namespace ns2 {
- const auto lamb = []() -> int
- {
- return 42;
- };
- }
-}
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3413.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3413.cpp deleted file mode 100644 index 80ec8cbc..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3413.cpp +++ /dev/null @@ -1,10 +0,0 @@ -namespace -{ -struct S { void f() {} }; -} - -void FuncCrash(int a = {}) { } -void FuncCrash(int b = int{}) { } -void FuncCrash(int b = int(0)) { } -void FuncCrash(int b = double{0}) { } -void FuncCrash(int b = 0) { } diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3422.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3422.cpp deleted file mode 100644 index 015d93f4..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3422.cpp +++ /dev/null @@ -1,14 +0,0 @@ -voind main() -{ - unsigned long uncompressed_size = 0; - char *data_buffer = NULL; - - unsigned long uncompressed_size = 0, compressed_size = 0; - char *data_buffer = NULL; - - unsigned long uncompressed_size, compressed_size = 0; - char *data_buffer = NULL; - - unsigned long uncompressed_size, compressed_size; - char *data_buffer = NULL; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3428.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3428.cpp deleted file mode 100644 index e4f45a1c..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3428.cpp +++ /dev/null @@ -1,57 +0,0 @@ -void main()
-{
- if(aaaa)
- {
- it = std::find_if(
- bbbb.begin(),
- bbbb.end(),
- [&cccc](const auto& dddd)
- {
- return (eeee.ffff == iiii && !jjjj.kkkk);
- }
- );
- }
-}
-
-namespace ns1 {
-
-void one()
-{
- if(aaaa)
- {
- it = std::find_if(
- bbbb.begin(),
- bbbb.end(),
- [&cccc](const auto& dddd)
- {
- return (eeee.ffff == iiii && !jjjj.kkkk);
- }
- );
- }
-}
-
- namespace ns2 {
- namespace ns3 {
- const auto lamb = []() -> int
- {
- return 42;
- };
-
-void two()
-{
- if(aaaa)
- {
- it = std::find_if(
- bbbb.begin(),
- bbbb.end(),
- [&cccc](const auto& dddd)
- {
- return (eeee.ffff == iiii && !jjjj.kkkk);
- }
- );
- }
-}
-
- }
-}
-}
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3446.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3446.cpp deleted file mode 100644 index 6332b0ad..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3446.cpp +++ /dev/null @@ -1,16 +0,0 @@ -Foo::Foo() { } - -std::true_type blarg(); -template <typename T> -decltype(std::declval<T &>().put(foo, bar), std::true_type()) -has_module_api_(T && t); - -void -foo() -{ - using V = decltype(STD::declval<T &>().put(foo, bar), std::true_type()); -} - -template <typename T> -decltype(std::declval<T &>()./* ((( */put(foo, bar), std::true_type()) -has_module_api_(T && t); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3448.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3448.cpp deleted file mode 100644 index 8dc80497..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3448.cpp +++ /dev/null @@ -1,4 +0,0 @@ -class Foo : public Bar, private Blarg, private Baz { -Foo() : first(), second(), third() -{ } -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3505.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3505.cpp deleted file mode 100644 index bb9bcee5..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3505.cpp +++ /dev/null @@ -1,7 +0,0 @@ -class Spaceship -{ -Spaceship(int a, -int b); -void init(int a, -int b); -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3513-0.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3513-0.cpp deleted file mode 100644 index 51f07966..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3513-0.cpp +++ /dev/null @@ -1,5 +0,0 @@ -struct S { - operator int() const { - return get(); - } -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3513-1.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3513-1.cpp deleted file mode 100644 index 020cc496..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3513-1.cpp +++ /dev/null @@ -1,5 +0,0 @@ -struct S { - operator int() { - return get(); - } -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3536.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3536.cpp deleted file mode 100644 index d068dd96..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3536.cpp +++ /dev/null @@ -1,32 +0,0 @@ -struct S {}; -class C {}; - -void processStruct0( -struct S s, -int i -); - -void processClass0( -class C c, -int i -); - -void processStruct1( - struct S s, - int i - ); - -void processClass1( - class C c, - int i - ); - -void processStruct2( - struct S s, - int i - ); - -void processClass2( - class C c, - int i - ); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3538.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3538.cpp deleted file mode 100644 index b965cb12..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3538.cpp +++ /dev/null @@ -1,12 +0,0 @@ -class Alpha {}; - -class Beta -{ -public: - Beta(class Alpha alpha) : _alpha(alpha) {} - - void init(); - -private: - class Alpha _alpha; -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3546.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3546.cpp deleted file mode 100644 index 617e849f..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3546.cpp +++ /dev/null @@ -1,28 +0,0 @@ -#include <stdio.h> - -class - alignas(32) - Foobar; - -int main() -{ - typedef - int - int32; - int foo, - bar, - baz; - foo = 5 - + 6 - + 7; - if (printf("%d %d", - 5 - + 6, - 7) - < 0) - { - return 1; - } - - return 0; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3550.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3550.cpp deleted file mode 100644 index bf43f50e..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3550.cpp +++ /dev/null @@ -1,9 +0,0 @@ -void foo(a, b)
-{
- bool called = false;
-
- auto callback = [&](float value)
- {
- called = true;
- };
-}
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3552.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3552.cpp deleted file mode 100644 index f3baae42..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3552.cpp +++ /dev/null @@ -1,9 +0,0 @@ -namespace Salads -{ -class -Waldorf -{ -public: -int size; -}; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3558.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3558.cpp deleted file mode 100644 index 561821ee..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3558.cpp +++ /dev/null @@ -1,4 +0,0 @@ -int main() -{ - return foo ? foo : bar & mask; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3570.h b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3570.h deleted file mode 100644 index 363447e7..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3570.h +++ /dev/null @@ -1,25 +0,0 @@ -class Foo -{ -public: -Foo -( -) -{ -} - -Foo -( -int x -); - -void init -( -) -{ -} - -void init -( -int x -); -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3576.h b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3576.h deleted file mode 100644 index 9f668b6d..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3576.h +++ /dev/null @@ -1,9 +0,0 @@ -class Foo : public Bar -{ -public: -void doIt -( -) -{ -} -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3604.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3604.cpp deleted file mode 100644 index a96b3437..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3604.cpp +++ /dev/null @@ -1,4 +0,0 @@ -#define MY_DEF(Type, ...) \ - enum Type { \ - __VA_ARGS__, \ - }; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3614.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3614.cpp deleted file mode 100644 index 3129de2e..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3614.cpp +++ /dev/null @@ -1,2 +0,0 @@ -//bla -//lint {...} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3691.h b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3691.h deleted file mode 100644 index fb1ec761..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3691.h +++ /dev/null @@ -1 +0,0 @@ -void test(std::function<void(const int&)> func); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3710.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3710.cpp deleted file mode 100644 index 4c31fe90..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3710.cpp +++ /dev/null @@ -1,4 +0,0 @@ -void foo() -{ - PyErr_SetString( PyExc_KeyError, sstr.str().c_str() ); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3761.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3761.cpp deleted file mode 100644 index b3f8cbb5..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3761.cpp +++ /dev/null @@ -1,14 +0,0 @@ -void f(void (*g)()) -{ -} - -int main() -{ - f([]() { - int x = 1; - switch (x) { - case 1: - break; - } - }); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3785.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3785.cpp deleted file mode 100644 index 90d4b28c..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3785.cpp +++ /dev/null @@ -1,24 +0,0 @@ -void output_text(FILE *pfile) -{ - for (pc = Chunk::GetHead(); pc->IsNotNullChunk(); pc = pc->GetNext()) - { - if (pc->GetTrackingData() != nullptr) - { - if (many > 1) - { - } -#define \ - EXTRA_LOG_2 - char *old_one = nullptr; - } - } -} // output_text - - -void dump_step(const char *filename, const char *step_description) -{ - static int file_num = 0; - char buffer[256]; - FILE *dump_file; - fclose(dump_file); -} // dump_step diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3786.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3786.cpp deleted file mode 100644 index ea830d4a..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3786.cpp +++ /dev/null @@ -1,4 +0,0 @@ -unsigned char wow[][2] = { - {0,24,}, - {152,1,}, -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3863.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3863.cpp deleted file mode 100644 index 4163ee8e..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3863.cpp +++ /dev/null @@ -1,3 +0,0 @@ -void MyClass::myFn()
-{
-}
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3863_2.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3863_2.cpp deleted file mode 100644 index f91c6547..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3863_2.cpp +++ /dev/null @@ -1,3 +0,0 @@ -void MyClass::myFn()
-{
-}
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3863_3.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3863_3.cpp deleted file mode 100644 index f2885f39..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3863_3.cpp +++ /dev/null @@ -1,4 +0,0 @@ -void MyClass::myFn()
-{
-}
-
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3865.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3865.cpp deleted file mode 100644 index 8e444b2a..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3865.cpp +++ /dev/null @@ -1,33 +0,0 @@ -MOCK_METHOD(bool, isThat, (const std::string& name), (override));
-MOCK_METHOD(bool, isThat, (std::string& name), (override));
-MOCK_METHOD(bool, isThat, std::string& name, (override));
-MOCK_METHOD(bool, isThat, const std::string& name, (override));
-MyFunction(const std::string& some_value);
-MOCK_METHOD(void, isThat, (Callback const&), (override));
-
-class MyClass
-{
- constexpr explicit MyClass(MyClass*& a) noexcept;
-};
-
-SomeClass::SomeClass(unsigned& counter, MyOtherType& lock)
- : thisThing(counter)
- , thatThing(lock)
-{
-}
-
-template<typename T = unsigned>
-struct TemplatedClass
-{
- TemplatedClass(T& thing) {}
-};
-
-MyThing* MyClass::my_function()
-{
- return &_theirThing;
-}
-
-// Shouldn't change
-EXPECT_EQ(static_cast<int>(MyEnumm::Last & MyEnumm::MyValue));
-#define SOME_MACRO(type, sss) if(n & type) { if(!k.doofer()) { k += "| "; } k += sss; }
-#define SOME_OTHER_MACRO(ttt, sss) (&ttt, &sss)
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3914.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3914.cpp deleted file mode 100644 index c51c4955..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3914.cpp +++ /dev/null @@ -1,8 +0,0 @@ -void foo() -{ -desc->add_options() - ("help,h", "produce help message") - ("version,v", "print the version number") - ("include-path,I", value< vector<string> >(), "include path") - ("input-file,i", value<string>(), "input file"); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3915.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3915.cpp deleted file mode 100644 index 51c63928..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3915.cpp +++ /dev/null @@ -1,9 +0,0 @@ -void -foo(Foo const & f) -{ - auto bar = Bar(f); - if (bar.something) { - assert(bar.something_else == 1); - } -} - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3916.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3916.cpp deleted file mode 100644 index 40944d8b..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3916.cpp +++ /dev/null @@ -1,29 +0,0 @@ -#include <string> - -using TEnglishString = std::string; - -class CComCommandInfo -{ -public: - CComCommandInfo( TEnglishString, TEnglishString ); -}; - -template< typename T > -class CGenericCommandEx -{ -public: - CGenericCommandEx( T ); -}; - - -template< typename T > -void Test( TEnglishString commandName_, TEnglishString commandDescription_, T functor_ ) -{ - CComCommandInfo cmdInfo( std::forward< TEnglishString >( commandName_ ), - std::forward< TEnglishString >( commandDescription_ ) ); - - auto* pCommand = - new CGenericCommandEx( - std::forward< decltype( functor_ ) >( functor_ ) ); // <--- Note the extra spaces added here -} - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3919.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3919.cpp deleted file mode 100644 index 611ce2e1..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3919.cpp +++ /dev/null @@ -1,5 +0,0 @@ -void Test -{ - //<-- Here we want a space after // - DoSomething(); //-V612 : warning #612 disabled. -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3920.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3920.cpp deleted file mode 100644 index 440fb5cf..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3920.cpp +++ /dev/null @@ -1,4 +0,0 @@ -std::string StrGet() -{ - return IsConnected() ? "Connected" : {}; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3965-2.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3965-2.cpp deleted file mode 100644 index 864979bb..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3965-2.cpp +++ /dev/null @@ -1,7 +0,0 @@ -void Win::check(QString id) -{ - if(names.contains(id + QString("_tst")) or names.contains(id + QString("_prd"))) { - true; - } - return; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3965.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3965.cpp deleted file mode 100644 index 2205a5a5..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3965.cpp +++ /dev/null @@ -1,4 +0,0 @@ -void Win::fill() -{ - product->addItem(product.name + "%1"); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3967.cc b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3967.cc deleted file mode 100644 index 84b393a2..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3967.cc +++ /dev/null @@ -1,4 +0,0 @@ -std::ostream& xx::operator<<(std::ostream& os, xx::Exception const& ex) -{ - return os; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3980.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3980.cpp deleted file mode 100644 index 89d43dfe..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3980.cpp +++ /dev/null @@ -1,5 +0,0 @@ -int a = 4I8; -int b = 4I16; -int c = 4I32; -int d = 4I64; -int e = 4I128; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3983.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3983.cpp deleted file mode 100644 index 3e479f25..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3983.cpp +++ /dev/null @@ -1,9 +0,0 @@ -#include <iostream> -struct s {int i;}; - -int main() -{ - struct s x; - x.i = 5; - std::cout << x.i << std::endl; -} // main diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3996.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3996.cpp deleted file mode 100644 index d2b4479f..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3996.cpp +++ /dev/null @@ -1,25 +0,0 @@ -#include <iostream> - -class OtherClass -{ -public: - int i; - OtherClass(): i(5) {} - OtherClass* self() {return this;} -}; - -class MyClass -{ -public: - OtherClass x; - int getI(); -}; - -int MyClass::getI() { - return this->x.self()->i; -} - -int main() { - MyClass c; - std::cout << c.getI() << std::endl; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_4023.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_4023.cpp deleted file mode 100644 index 609e499f..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_4023.cpp +++ /dev/null @@ -1,20 +0,0 @@ -class foo { -public: - bool var; - - foo(bool x) { var = x; } - - bool get() - { - return var; - } -}; - - -int main() { - foo f(false); - - const int b = true ? 2 : 3; - - const int a = !f.get() ? 2 : 3; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_4026.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_4026.cpp deleted file mode 100644 index c0169c73..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_4026.cpp +++ /dev/null @@ -1,50 +0,0 @@ -class foo { -public: - int var; - - foo(int x) { var = x; } -}; - -int main() -{ - int a = 2; - a++; - - foo f(3); - f.var++; -} - -InternalFunctionImp::InternalFunctionImp(ExecState *exec) - : ObjectImp(static_cast<FunctionPrototypeImp*>(exec->interpreter()->builtinFunctionPrototype().imp())) -{ - for (int z=0; z<count; z++) - { - TQString hlName = KateFactory::self()->schemaManager()->list().operator[](z); - - if (names.contains(hlName) < 1) - { - names << hlName; - popupMenu()->insertItem ( hlName, this, TQT_SLOT(setSchema(int)), 0, z+1); - } - } - - struct sockaddr_in *sin1 = (sockaddr_in *) s1.address(); - struct sockaddr_in *sin2 = (sockaddr_in *) s2.address(); - - if ((bytesLeft < 0 ) || (len > (uint) bytesLeft)) - { - tqWarning("[dcopserver] Corrupt data!"); - printf("[dcopserver] bytesLeft: %d, len: %d", bytesLeft, len); - return result; - } - result.TQByteArray::resize( (uint)len ); - - if (pbar->isVisible() && pbar->isEnabled() && - pbar->progress() != pbar->totalSteps()) - { - ++iter.data(); - if (iter.data() == 28) - iter.data() = 0; - iter.key()->update(); - } -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_4027.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_4027.cpp deleted file mode 100644 index bd9a32d4..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_4027.cpp +++ /dev/null @@ -1 +0,0 @@ -#define KK2 27F30 diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_4036.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_4036.cpp deleted file mode 100644 index ceaa5312..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_4036.cpp +++ /dev/null @@ -1,3 +0,0 @@ -struct a { - bool b : 1; -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_4042.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_4042.cpp deleted file mode 100644 index 3e5f01c2..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_4042.cpp +++ /dev/null @@ -1,6 +0,0 @@ - union Data { - int val1; - long val2; - Data( ) noexcept(false ) - : val1( 1 ) { } - }; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_4080.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_4080.cpp deleted file mode 100644 index 178612c4..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_4080.cpp +++ /dev/null @@ -1,6 +0,0 @@ -auto foo() -> char; -int*x; -int*y; -int reset(); -int*X; -int*Y; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_4094.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_4094.cpp deleted file mode 100644 index 2eb624d0..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_4094.cpp +++ /dev/null @@ -1,2 +0,0 @@ -auto lambda1 = []( int x ){}; -auto lambda2 = [](){}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_4132.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_4132.cpp deleted file mode 100644 index 256db54c..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_4132.cpp +++ /dev/null @@ -1 +0,0 @@ -using stdsize = typename _arch_helper< (int)sizeof(void*) >::sz_t; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_4239.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_4239.cpp deleted file mode 100644 index 5bcbfe77..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_4239.cpp +++ /dev/null @@ -1,10 +0,0 @@ -void f() -{ - int x; - int y; - y = x; - if ((y = x) != 0) - for (;;) - if (x) - return; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_750.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_750.cpp deleted file mode 100644 index 461e79ac..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_750.cpp +++ /dev/null @@ -1,15 +0,0 @@ -class Greeks -{ - double _dRho = 111.0; - int _dTheoretical = 22222.0; - double _dTheta = 3333333.0; - double _dTimeValue = 0.0; - double _dVega { 0.0 }; - double _dVolatility { 0.0 }; - double _dPvDiv = 0.0; -} - - double sdf[6] = { 5.0, 6, 6, 34, 324, 5 }; - int fsaf[6] = { 5, 6, 6, 34, 324, 5 }; - char msa[3] { 6, 5, 3 }; - int y[3] { 6, 5, 3 }; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_931.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_931.cpp deleted file mode 100644 index 90084874..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_931.cpp +++ /dev/null @@ -1,7 +0,0 @@ -//we manually indented continuation here to prevent 'reallyLongArgumentName' from crossing -//our line length limit -void ReallyLongClassName::ReallyLongMethondName(int arg1, - int reallyLongArgumentName) - -void LongClassName::LongMethondName(int arg1, - int reallyLongArgumentName) diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_995-do.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_995-do.cpp deleted file mode 100644 index 05eca611..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_995-do.cpp +++ /dev/null @@ -1,3 +0,0 @@ - do { - xxx = _error; - }while(0) diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/NewLine.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/NewLine.cpp deleted file mode 100644 index 9c7f1ee9..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/NewLine.cpp +++ /dev/null @@ -1,9 +0,0 @@ - - -{ - /* - * test for new lines, everywhere - */ -} - - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/NewLine0.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/NewLine0.cpp deleted file mode 100644 index 01e7cc97..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/NewLine0.cpp +++ /dev/null @@ -1,5 +0,0 @@ -{ - /* - * test for new lines, everywhere - */ -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/PR326_invalid-backslash-eol-csharp.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/PR326_invalid-backslash-eol-csharp.cpp deleted file mode 100644 index b0e13d6a..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/PR326_invalid-backslash-eol-csharp.cpp +++ /dev/null @@ -1,2 +0,0 @@ -// test \
-blah()
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Q_2.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Q_2.cpp deleted file mode 100644 index ee6239f9..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Q_2.cpp +++ /dev/null @@ -1,10 +0,0 @@ -bool AkonadiServer::quit() -{ - QTimer::singleShot( 0, this, SLOT ( doQuit( ) ) ); -} - -void AkonadiServer::incomingConnection(quintptr socketDescriptor) -{ - QPointer<ConnectionThread> thread = new ConnectionThread(socketDescriptor, this); - connect(thread, SIGNAL(finished()), thread, SLOT(deleteLater())); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Q_EMIT.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Q_EMIT.cpp deleted file mode 100644 index d3ef9396..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Q_EMIT.cpp +++ /dev/null @@ -1,5 +0,0 @@ -bool Handler::failureResponse(const QByteArray &failureMessage) -{ - response.setString(failureMessage); - Q_EMIT responseAvailable(response); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Q_FOREACH.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Q_FOREACH.cpp deleted file mode 100644 index 37156618..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Q_FOREACH.cpp +++ /dev/null @@ -1,6 +0,0 @@ -void Cache::collection() -{ - Q_FOREACH(QString partName, lParts) { - a = 5; - } -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Q_FOREVER.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Q_FOREVER.cpp deleted file mode 100644 index a0fb07d5..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Q_FOREVER.cpp +++ /dev/null @@ -1,6 +0,0 @@ -void Cache::collection() -{ - Q_FOREVER{ - a = 5; - } -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Q_SIGNAL_SLOT.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Q_SIGNAL_SLOT.cpp deleted file mode 100644 index 5a4c8e7d..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Q_SIGNAL_SLOT.cpp +++ /dev/null @@ -1,23 +0,0 @@ -bool AkonadiServer :: init () -{ - connect ( watcher , SIGNAL( serviceOwnerChanged ( QString, QString,QString ) ), - this, SLOT(serviceOwnerChanged(QString,QString, QString))); - return true; -} - -connect(&mapper, SIGNAL(mapped(Q1 &)), this, SLOT(onSomeEvent(const Q2 &))); - -connect(&mapper, - SIGNAL(mapped(Q1 &)), - this, - SLOT(onSomeEvent(const Q2 &))); - -connect(&mapper, - SIGNAL(emitted(Q1 *)), - this, - SLOT(accept(const Q2 *))); - -connect(&mapper, - SIGNAL(emitted(X< int >)), - this, - SLOT(accept(X< int >))); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/STUCK_macro-difficulties.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/STUCK_macro-difficulties.cpp deleted file mode 100644 index ea1c724e..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/STUCK_macro-difficulties.cpp +++ /dev/null @@ -1,5 +0,0 @@ -#define inline_2 __forceinline
-#define inline(i) inline_##i
-inline(2) f()
-{
-}
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Timestamp.h b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Timestamp.h deleted file mode 100644 index 60dc3791..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Timestamp.h +++ /dev/null @@ -1,169 +0,0 @@ -/**
- * @file Timestamp.h
- * Definition of class example::Timestamp.
- */
-
-#ifndef __Timestamp_h_
-#define __Timestamp_h_
-
-#include <string>
-
-namespace example {
-
-class IStreamable;
-class InStream;
-class OutStream;
-
-/**
- * Timestamp is a timestamp with nanosecond resolution.
- */
-class Timestamp
- : public IStreamable
-{
-
-public:
-
- /**
- * Default constructor.
- */
- Timestamp();
-
- /**
- * Constructor.
- *
- * @param sec The seconds
- * @param nsec The nanoseconds
- */
- Timestamp(long sec, unsigned long nsec);
-
- /**
- * Destructor.
- */
- virtual ~Timestamp();
-
- /**
- * Adds two timestamps.
- *
- * @param rhs The other timestamp
- * @return The resulting timestamp
- */
- Timestamp operator+ (const Timestamp& rhs) const;
-
- /**
- * Substracts two timestamps.
- *
- * @param rhs The other timestamp
- * @return The resulting timestamp
- */
- Timestamp operator- (const Timestamp& rhs) const;
-
- /**
- * Compares two timestamps.
- *
- * @param rhs The other timestamp
- * @return true if timestamp is smaller than the given timestamp
- */
- bool operator< (const Timestamp& rhs) const;
-
- /**
- * Compares two timestamps.
- *
- * @param rhs The other timestamp
- * @return true if timestamp is greater than the given timestamp
- */
- bool operator> (const Timestamp& rhs) const;
-
- /**
- * Compares two timestamps.
- *
- * @param rhs The other timestamp
- * @return true if timestamp is equal to the given timestamp
- */
- bool operator== (const Timestamp& rhs) const;
-
- /**
- * Compares two timestamps.
- *
- * @param rhs The other timestamp
- * @return true if timestamp is not equal to the given timestamp
- */
- bool operator!= (const Timestamp& rhs) const;
-
- /**
- * Adds an other timestamp.
- *
- * @param rhs The other timestamp
- */
- void operator+= (const Timestamp& rhs);
-
- /**
- * Adds milliseconds.
- *
- * @param ms The milliseconds
- * @return The resulting timestamp
- */
- Timestamp addMilliseconds(unsigned long ms) const;
-
- /**
- * Adds nanoseconds.
- *
- * @param ns The nanoseconds
- * @return The resulting timestamp
- */
- Timestamp addNanoseconds(unsigned long ns) const;
-
- /**
- * Checks if this timestamp is zero.
- *
- * @return true if timestamp is zero
- */
- bool isZero() const;
-
- /**
- * Gets the milliseconds.
- * @attention Negativ timestamp return zero
- *
- * @return The milliseconds
- */
- unsigned long getMilliseconds() const;
-
- /**
- * Divide timestamps by two.
- *
- * @return The resulting timestamp
- */
- Timestamp divideByTwo();
-
- /**
- * Gets the string-representation.
- *
- * @return The string representation
- */
- std::string getString() const;
-
- /**
- * Gets the string-representation in milliseconds.
- *
- * @return The string representation
- */
- std::string getStringMilliseconds() const;
-
- /**
- * Resets the timestamp.
- */
- void reset();
-
- /** The seconds */
- long sec;
-
- /** The nanoseconds */
- unsigned long nsec;
-
- InStream& operator << (InStream& in);
-
- OutStream& operator >> (OutStream& out) const;
-
-};
-} // namespace
-
-#endif // __Timestamp_h_
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-10496.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-10496.cpp deleted file mode 100644 index 3228cf2a..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-10496.cpp +++ /dev/null @@ -1,11 +0,0 @@ -friend class :: GameObject;
-void GameObject :: Foo();
-
-auto x = :: GlobalFunc();
-
-friend void ::testing:: PrintDebugInformationForFakesInUse();
-
-template<class TransferFunction>
-void ::DateTime :: Transfer(TransferFunction & transfer)
-{
-}
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-12046.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-12046.cpp deleted file mode 100644 index 9cc7b13f..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-12046.cpp +++ /dev/null @@ -1,2 +0,0 @@ -//The space shouldn't be removed. This is a STRUCT -struct ALIGN_TYPE(16) StructName;
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1288.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1288.cpp deleted file mode 100644 index 38ded76c..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1288.cpp +++ /dev/null @@ -1,10 +0,0 @@ -if (Application.platform == RuntimePlatform.LinuxEditor) -{ - return new ProcessStartInfo("smthg") - { - Arguments = string.Format ("-9 --ss -S aa \"{0}\"", file), - WorkingDirectory = Directory.GetCurrentDirectory(), - UseShellExecute = false, - CreateNoWindow = true - }; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1334.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1334.cpp deleted file mode 100644 index 278cd1a2..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1334.cpp +++ /dev/null @@ -1,7 +0,0 @@ -// This should not be screwing with the trailing backslash and indentation of contents!
-// unless it's on the first line where it's controlled by sp_before_nl_cont which we have set on add.
-// Devs should expect misalignment of the nl_cont tokens because we're not messing with the nl_cont from the define body.
-
-#define MY_DEFINE(param1, param2)\
- my_long_foo_function(param1);\
- bar(param2);
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1335.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1335.cpp deleted file mode 100644 index 2f3ad2a2..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1335.cpp +++ /dev/null @@ -1,9 +0,0 @@ -// Change in Configuration\UnityConfigure.h:
-
- #define FOO_MACRO 0 /////@TODO: COMMENT?????
- // ^^^ space removed after 0
-
-// Foo\Bar\Baz\Fizz\Test.cpp
-
- #define BAR_MACRO FOO_BAR_MACRO //FOO_BAR_BAZ_NONE
- // ^^^ space removed after _MACRO
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1337.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1337.cpp deleted file mode 100644 index 59635c19..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1337.cpp +++ /dev/null @@ -1,9 +0,0 @@ -// Runtime\Allocator\BucketAllocator.cpp
-
-void foo()
-{
- void* p1 = new(ptr) Block(bucketsSize);
- // becomes...
- void* p1 = new(ptr)Block(bucketsSize);
- // missing space after ')'
-}
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1339.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1339.cpp deleted file mode 100644 index 255db223..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1339.cpp +++ /dev/null @@ -1,2 +0,0 @@ -auto c = a < b >> 1;
-auto c = a < b;
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1340.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1340.cpp deleted file mode 100644 index 2f743294..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1340.cpp +++ /dev/null @@ -1,4 +0,0 @@ -namespace dudeNamespace { class ForwardFooClass; }
-
-namespace dudeNamespace
-{ class ForwardFooClass; }
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1344.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1344.cpp deleted file mode 100644 index c898df76..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1344.cpp +++ /dev/null @@ -1,20 +0,0 @@ -// Asm blocks have their own special indentation where lables must remain at indent 0 relative to __asm__ block.
-// They few ways of being opened and closed depending on the compiler.
-// For now, we can at least detect and ignore the contents, including alignment.
-
-// Workaround: can always fall back on disable/enable_processing_cmt.
-
-void foo()
-{
- int head, bar;
- __asm__ __volatile__
- (
- "movq %0,%%xmm0\n\t" /* asm template */
- "0:\n\t"
- "bar %0, [%4]\n\t" // in template
- "1:\n\t"
- : "=a", (bar)
- : "=&b", (&head), "+m", (bar)
- : "cc"
- );
-}
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1346.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1346.cpp deleted file mode 100644 index 0261a306..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1346.cpp +++ /dev/null @@ -1,24 +0,0 @@ -// Fix doxygen support to include member groups
-
-// See http://www.stack.nl/~dimitri/doxygen/manual/grouping.html#memgroup
-
-// Note that the spec says three slashes, but their example has only two slashes.
-
-// Once this is done, we can try turning on sp_cmt_cpp_start in Uncrustify.Common-CStyle.cfg.
-
-/// Bucket allocator is used for allocations up to 64 bytes of memory.
-/// It is represented by 4 blocks of a fixed-size "buckets" (for allocations of 16/32/48/64 bytes of memory).
-/// Allocation is lockless, blocks are only growable.
-class Class
-{
-public:
- ///@{ Doxygen group 1
- virtual void* Foo();
- virtual void* Bar();
- ///@}
-
- //@{ Doxygen group 2
- virtual void* Foo();
- virtual void* Bar();
- //@}
-}
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1347.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1347.cpp deleted file mode 100644 index ac2184f0..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1347.cpp +++ /dev/null @@ -1,10 +0,0 @@ -// Extern "C" blocks need an alignment option somehow. I can do a "set NAMESPACE extern" in the cfg but that will probably screw other stuff up.
-
-// See External\Audio\NativePluginDemo\NativeCode\TeleportLib.h for an example. Yeah it's in external (so have to force-format it) but it's a good case.
-
-// (Actually it's in https://bitbucket.org/Unity-Technologies/nativeaudioplugins, but just published here to external)
-
-extern "C"
-{
-typedef EXPORT_API int (*Foo)(int arg);
-};
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1350.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1350.cpp deleted file mode 100644 index 7353e915..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1350.cpp +++ /dev/null @@ -1,5 +0,0 @@ -// Can't set sp_inside_braces_struct=add otherwise Uncrustify starts applying it to initializers combined with old-C-style struct usage.
-
-struct in_addr addr = {0};
-// ... --> ...
-struct in_addr addr = { 0 };
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1356.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1356.cpp deleted file mode 100644 index 8a1aab54..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1356.cpp +++ /dev/null @@ -1,27 +0,0 @@ -// Hi,
-// When using "space only" and "indent continue", I notice a wrong indentation in C language (at least)
-// function call when the retrun value is assigned to a variable and the call is split in two or more line.
-// In that case the indent is twice the indent set in "indent_continue"
-// This only appears when "indent_with_tabs" is set to 0 "space only" and 1
-// "indent with tabs to brace level, align with spaces"
-// Version tested:
-// 0.59: good indentation
-// 0.60: wrong indentation
-// master (sha1 fc5228e): wrong indentation
-// Here are some details about thats issue:
-// orignal code
-// The long line are manually split and not indented to test uncrustify indent
-
-int main (int argc, char *argv[])
-{
- double a_very_long_variable = test (foobar1, foobar2, foobar3, foobar4,
- foobar5, foobar6);
-
- double a_other_very_long = asdfasdfasdfasdfasdf + asdfasfafasdfa +
- asdfasdfasdf - asdfasdf + 56598;
-
- testadsfa (dfasdf, fdssaf, dsfasdf, sadfa, sadfas, fsadfa,
- aaafsdfa, afsd, asfdas, asdfa, asfasdfa, afsda, asfdasfds, asdfasf);
-
- return 0;
-}
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1358.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1358.cpp deleted file mode 100644 index 770bf0c1..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1358.cpp +++ /dev/null @@ -1,15 +0,0 @@ -// MIDL_INTERFACE includes 'class' in its definition but is not tokenised as such
-// A pretty common pattern would be nice to have proper formatting.
-
-EXTERN_C const IID IID_IFileDialogEvents;
-
-MIDL_INTERFACE("973510db-7d7f-452b-8975-74a85828d354")
-IFileDialogEvents : public IUnknown
-{
-public:
- virtual HRESULT STDMETHODCALLTYPE OnStuff(
- /* [in] */ __RPC__in_opt IFileDialog *pfd,
- /* [in] */ __RPC__in_opt IShellItem *psi,
- /* [out] */ __RPC__out FDE_SHAREVIOLATION_RESPONSE *pGoodResponse,
- /* [out] */ __RPC__out FDE_OVERWRITE_RESPONSE *pBadResponse) = 0;
-};
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-16283.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-16283.cpp deleted file mode 100644 index 7f042642..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-16283.cpp +++ /dev/null @@ -1,5 +0,0 @@ -// It is deleting the space after the pointer marker -void foo() -{ - extern void BillboardRenderer_RenderMultiple(const RenderBatchedData& renderData, ShaderChannelMask channels); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-18439.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-18439.cpp deleted file mode 100644 index 0c40e831..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-18439.cpp +++ /dev/null @@ -1,12 +0,0 @@ -floatNx3 randomRotationMatrices[3]; -if (rotationRandomnessX > epsilon() || rotationRandomnessY > epsilon()) -{ -// Parameters are being double indented. - floatNx3 rotationEuler = floatNx3( - (GenerateRandom(randomSeed + intN(kParticleSystemExternalForcesRotationRandomnessXId)) * 2 - 1) * rotationRandomnessX, - (GenerateRandom(randomSeed + intN(kParticleSystemExternalForcesRotationRandomnessYId)) * 2 - 1) * rotationRandomnessY, - floatN(ZERO)); - eulerToMatrix(rotationEuler, randomRotationMatrices); - - toForce = mul(randomRotationMatrices, toForce); -}
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-18777.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-18777.cpp deleted file mode 100644 index 0f177fdc..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-18777.cpp +++ /dev/null @@ -1,9 +0,0 @@ -// I want to keeep the function call indented -Thingy - .Select() - .ToList(); - -// it works with a var -var x = Thingy - .Select() - .ToList(); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1980.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1980.cpp deleted file mode 100644 index 97940716..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1980.cpp +++ /dev/null @@ -1,8 +0,0 @@ -// First: scan more FAKE_FUNCTION diffs and see how common this problem is.
-
-// The & should be attached to RefType because it's in a function prototype. Most likely being detected as ARITH.
-
-// We need to figure out how to support this with some setting in our cpp cfg for uncrustify.
-
-FAKE_FUNCTION(Boo, RefType& (void));
-FAKE_FUNCTION(Foo, (MyAwesomeType* (void)));
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1981.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1981.cpp deleted file mode 100644 index a20f4c43..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1981.cpp +++ /dev/null @@ -1,16 +0,0 @@ -#if DOXYGEN
-class Class
-#else
-struct Struct
-#endif
-{
- UInt32 m_myAwesomeMember1 : kEnumValue
- UInt32 m_myAwesomeMember11 : kEnumValue
- UInt32 m_myAwesomeMember111 : 1;
- UInt32 m_myAwesomeMember1111 : 1;
- UInt32 m_myAwesomeMember11111 : 1;
- UInt32 m_myAwesomeMember111111 : 1;
- UInt32 m_myAwesomeMember1111111 : 1;
- UInt32 m_myAwesomeMember11111111 : kEnumValue
- UInt32 m_myAwesomeMember11111111 : kEnumValue
-};
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1983.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1983.cpp deleted file mode 100644 index e7d9de6d..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-1983.cpp +++ /dev/null @@ -1 +0,0 @@ -typedef HRESULT (WINAPI *Foo)(const void* pData, SIZE_T size, UINT flags, const char* szStr, D3D10BlobHack** ppBlob);
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-19894.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-19894.cpp deleted file mode 100644 index ef5fe7cf..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-19894.cpp +++ /dev/null @@ -1,16 +0,0 @@ -//It is applying double indentation -m_ApplicationView = AppC::ApplicationView::GetForCurrentView(); -m_ViewConsolidateEvtToken = m_ApplicationView->Consolidated += - ref new AppC::TypedEventHandler<AppC::ApplicationView^, AppC::ApplicationViewConsolidatedEventArgs^>(this, &FrameworkView::InternalOnViewConsolidated); - -m_WindowActivatedEvtToken = m_CoreWindow->Activated += - ref new AppC::TypedEventHandler<AppC::CoreWindow^, AppC::WindowActivatedEventArgs^>(this, &FrameworkView::InternalOnWindowActivated); - -m_SizeChangedEvtToken = m_CoreWindow->SizeChanged += - ref new AppC::TypedEventHandler<AppC::CoreWindow^, AppC::WindowSizeChangedEventArgs^>(this, &FrameworkView::InternalOnWindowSizeChanged); - -m_VisibilityChangedEvtToken = m_CoreWindow->VisibilityChanged += - ref new AppC::TypedEventHandler<AppC::CoreWindow^, AppC::VisibilityChangedEventArgs^>(this, &FrameworkView::InternalOnWindowVisibilityChanged); - -m_WindowClosedEvtToken = m_CoreWindow->Closed += - ref new AppC::TypedEventHandler<AppC::CoreWindow^, AppC::CoreWindowEventArgs^>(this, &FrameworkView::InternalOnWindowClosed);
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-2049.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-2049.cpp deleted file mode 100644 index 7c64f76a..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-2049.cpp +++ /dev/null @@ -1,8 +0,0 @@ -// Pointer mark should be formatted (WINAPI* SetXX) -typedef DWORD (WINAPI *SetDllDirectory) (LPCSTR); -// Pointer mark should be formatted (EXCEPTION_POINTERS* pExt) -static LONG WINAPI CustomUnhandledExceptionFilter(EXCEPTION_POINTERS * pExInfo) -{ - if (EXCEPTION_BREAKPOINT == pExInfo->ExceptionRecord->ExceptionCode) // Breakpoint. Don't treat this as a normal crash. - return EXCEPTION_CONTINUE_SEARCH; -}
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-21506.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-21506.cpp deleted file mode 100644 index a8c5f2df..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-21506.cpp +++ /dev/null @@ -1,13 +0,0 @@ -struct bar
-{
- void (Namespace::*method)(Class& param);
-};
-
-void Class::Foo(void (*callback)(const Class& entry))
-{
-}
-
-void foo()
-{
- int a = 1; // if you comment this out, the bug stops reproducing
-}
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-21509.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-21509.cpp deleted file mode 100644 index bde48ee7..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-21509.cpp +++ /dev/null @@ -1,15 +0,0 @@ -void (*foo)(int);
-static bar(void (*foo)(int))
-{
-}
-
-bool (*comp_func)(const TypeA*const a, const TypeB& value) = NULL;
-static foo(bool (*comp_func)(const TypeA*const a, const TypeB& value));
-static foo(bool (*comp_func)(const TypeA*const a, const TypeB& value) = NULL)
-{
-}
-
-void qsort(void *base, size_t nmemb, size_t size, int(*compar)(const TypeA* lhs, const TypeB& rhs));
-void qsort(void *base, size_t nmemb, size_t size, int(*compar)(const TypeA* lhs, const TypeB& rhs) = NULL)
-{
-}
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-21510.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-21510.cpp deleted file mode 100644 index ea406fbe..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-21510.cpp +++ /dev/null @@ -1 +0,0 @@ -typedef std::pair<Type* const, TypeB> Object;
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-21727.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-21727.cpp deleted file mode 100644 index 991d2631..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-21727.cpp +++ /dev/null @@ -1,18 +0,0 @@ -void foo()
-{
- int error = 0;
-#if defined(SUPPORT_FEATURE)
- error = feature_bar();
-#else // feature not supported
- // we call bar otherwise
- error = bar();
-#endif // SUPPORT_FEATURE
- // continue with function logic
- if (error != 0)
- {
-#if 0 // TODO: this is disabled
- // call final bar
- error_bar(error);
-#endif
- }
-}
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-21728.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-21728.cpp deleted file mode 100644 index 658fba68..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-21728.cpp +++ /dev/null @@ -1 +0,0 @@ -friend std::ostream& operator<<(std::ostream& os, const ScriptingObjectPtr& o);
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-21729.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-21729.cpp deleted file mode 100644 index 4b8d1d59..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-21729.cpp +++ /dev/null @@ -1,3 +0,0 @@ -extern "C" void __declspec(dllexport) GetAccountNameAndDomain(HWND /*hwndParent*/, int string_size, TCHAR * variables, stack_t** stacktop, extra_parameters* /*extra*/)
-{
-}
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-2650.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-2650.cpp deleted file mode 100644 index b9ced773..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-2650.cpp +++ /dev/null @@ -1,13 +0,0 @@ -MergeJSFiles(new string[] { - GetDecompressor(), - Paths.Combine(buildToolsDir, "UnityConfig"), - Paths.Combine(args.stagingAreaData, kOutputFileLoaderFileName), -}, unityLoader -); - - -throw new System.Exception( - "'Fast Rebuild' option requires prebuilt JavaScript version of Unity engine. The following files are missing: " - + (!File.Exists(UnityNativeJs) ? "\n" + UnityNativeJs : "") - + (!File.Exists(UnityNativeJs + ".mem") ? "\n" + UnityNativeJs + ".mem" : "") -); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-2680.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-2680.cpp deleted file mode 100644 index b6aa5bd7..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-2680.cpp +++ /dev/null @@ -1,3 +0,0 @@ -A(B(C( - D(a | - b | c)))); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-2683.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-2683.cpp deleted file mode 100644 index 5da60d3f..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-2683.cpp +++ /dev/null @@ -1,2 +0,0 @@ -// It shouldn't add a space after Unity::Type -static Object* Produce(const Unity::Type* type, InstanceID instanceID = InstanceID_None, MemLabelId = kMemBaseObject, ObjectCreationMode mode = kCreateObjectDefault);
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-29935.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-29935.cpp deleted file mode 100644 index a6cf3fc5..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-29935.cpp +++ /dev/null @@ -1,6 +0,0 @@ -void Foo1(BarType& x, void BarFunc()); - -void Bar() -{ - void BarFunc2(BarType& x); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-30088.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-30088.cpp deleted file mode 100644 index 1fd5c1fe..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-30088.cpp +++ /dev/null @@ -1,9 +0,0 @@ -void Foo(int value)
-{
- m_Foo[0].prop
- = m_Foo[1].prop
- = m_Foo[2].prop
- = m_Foo[3].prop
- = m_Foo[4].prop
- = m_Foo[5].prop = value;
-}
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-30628.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-30628.cpp deleted file mode 100644 index ffa60026..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-30628.cpp +++ /dev/null @@ -1,7 +0,0 @@ -// Regression 1 FAKE_METHOD expands to a function prototype. Could possibly use PROTO_WRAP like for FAKE_FUNCTION
-class Foo
-{
- FAKE_FUNCTION(Bar, GetBarInfo, const BarInfo &());
- FAKE_METHOD(Bar, GetBarInfo, const BarInfo &());
- FAKE_FUNCTION_WITH_LOCAL_NAME(FakeGetCommonScriptingClasses, GetCommonScriptingClasses, const CommonScriptingClasses &());
-}
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-32657.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-32657.cpp deleted file mode 100644 index 9151231a..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-32657.cpp +++ /dev/null @@ -1,10 +0,0 @@ -void UNITY_INTERFACE_API XREnvironment::DepthSetNumberOfPointsImpl(
- IUnityXRDepthDataAllocator* allocator,
- size_t numPoints)
-{
-}
-
-UnityXRRaycastHit* (UNITY_INTERFACE_API* Raycast_SetNumberOfHits)(
- IUnityXRRaycastAllocator* allocator,
- size_t numHits);
-
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-38381.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-38381.cpp deleted file mode 100644 index 701b55b2..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-38381.cpp +++ /dev/null @@ -1,5 +0,0 @@ -#if UNITY_DEFER_GRAPHICS_JOBS_SCHEDULE -void GfxDevice::ScheduleAsyncJob(AsyncCommandJobFunc* jobFunc, GfxDeviceAsyncCommand* cmd, const JobFence& depends, JobBatchDispatcher& dispatcher) -#else -JobFence& GfxDevice::ScheduleAsyncJob(AsyncCommandJobFunc* jobFunc, GfxDeviceAsyncCommand* cmd, const JobFence& depends, JobBatchDispatcher& dispatcher) -#endif // #if UNITY_DEFER_GRAPHICS_JOBS_SCHEDULE diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-64325.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-64325.cpp deleted file mode 100644 index c4005d7c..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-64325.cpp +++ /dev/null @@ -1,13 +0,0 @@ -class function_ref -{ -public: - template<typename CallableT> - function_ref(CallableT &&t) noexcept - : m_Ptr((void *)std::addressof(t)) - , m_ErasedFn([](void *ptr, Args... args) -> ReturnValue - { - // Type erasure lambda: cast ptr back to original type and dispatch the call - return (*reinterpret_cast<std::add_pointer_t<CallableT>>(ptr))(std::forward<Args>(args)...); - }) - {} -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-9650.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-9650.cpp deleted file mode 100644 index f6dba01b..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/UNI-9650.cpp +++ /dev/null @@ -1,7 +0,0 @@ -// make sure that we ignore sp_inside_angle=remove if it will cause a digraph to be created
-
-ops.pProgressCallback = reinterpret_cast< ::ProgressCallback* >( progressCallback);
-ops.pProgressCallback = reinterpret_cast< ::ProgressCallback*>(progressCallback);
-ops.pProgressCallback = reinterpret_cast<::ProgressCallback*>(progressCallback);
-ops.pProgressCallback = reinterpret_cast<ProgressCallback*>(progressCallback);
-ops.pProgressCallback = reinterpret_cast< ProgressCallback*>(progressCallback);
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/al.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/al.cpp deleted file mode 100644 index 3c232dec..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/al.cpp +++ /dev/null @@ -1,28 +0,0 @@ -/* ctest4 */ -fm_status fm2000EventHandlingInitialize(fm_int sw); -fm_status fm2000MacTableOverflowStart(fm_int sw); -fm_bool fm2000ProcessMATableEntry( fm_mac_table_work_list *pWork, - fm_int sw, - fm_int index, - fm_thread * event_handler, - fm_uint32 * numUpdates, - fm_event **event); -void foo() -{ - Logger log = new Logger(); - Logger log= new Logger( ); - - log.foo.bar = 5; - log.narf.sweat = "cat"; -for (i = 0; i<5; i++) bar(i); -} -int this_works(int x); -int bug(int); // BUG: left-aligned -typedef int fooman; - enum FLAGS - { - FLAGS_decimal = 1, // decimal - FLAGS_unsigned = 2, // u or U suffix - FLAGS_long = 4, // l or L suffix - }; - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align-330.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align-330.cpp deleted file mode 100644 index 0ba91720..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align-330.cpp +++ /dev/null @@ -1,6 +0,0 @@ -\ -#define CTOR(i, _) : \ - T(X()), \ - y() \ -{ } - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align-assign-mixed.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align-assign-mixed.cpp deleted file mode 100644 index 2e55d59d..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align-assign-mixed.cpp +++ /dev/null @@ -1,11 +0,0 @@ -class X16 -{ -X16() = delete; -public: -void z(int x = 0); -virtual void f(int x, int y) = 0; -int hhi = 9; -void g(int x = 0); -int i = 9; -void x(int ggs = 0); -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align-star-amp-pos.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align-star-amp-pos.cpp deleted file mode 100644 index 29a7a23a..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align-star-amp-pos.cpp +++ /dev/null @@ -1,47 +0,0 @@ - -/** First, the typedefs */ -typedef int MY_INT; -typedef int * MY_INTP; -typedef int & MY_INTR; -typedef CFoo& foo_ref_t; -typedef int(*foo_t)(void *bar); -typedef const char *(*somefunc_t)(void *barstool); - -/* Now, the types */ -struct foo1 { - unsigned int d_ino; - const char *d_reclen; - unsigned short d_namlen; - char d_name[1]; - CFoo&fref; -}; - -struct foo { int a; char *b }; - -static int idx; -static const char **tmp; - CFoo&fref; - -static char buf[64]; -static unsigned long how_long; -// comment -static int **tmp; -static char buf[64]; - - -void bar(int someval, - void *puser, - const char *filename, - struct willy *the_list, - int list_len) -{ - int idx; - const char **tmp; - char buf[64]; - CFoo&fref; - - unsigned long how_long; - - return(-1); -} - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_across_braces.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_across_braces.cpp deleted file mode 100644 index f47f0c80..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_across_braces.cpp +++ /dev/null @@ -1,7 +0,0 @@ -enum foo // comment -{ - long_enum_value, // these comments should be aligned - another_value, // with each other, but not - shorter, // with the first line -}; // this comment should start a new group -void bar(); // this one should align with the previous line diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_assign_func_proto.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_assign_func_proto.cpp deleted file mode 100644 index 0c816099..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_assign_func_proto.cpp +++ /dev/null @@ -1,7 +0,0 @@ -const int *ptr const = 0;
- virtual void f1()= 0;
- virtual void f2()= 0;
- virtual void f3() const = 0;
- virtual void f4() const = 0;
- virtual void f5() = 0;
- virtual void f6()= 0;
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_asterisk_after_type_cast.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_asterisk_after_type_cast.cpp deleted file mode 100644 index 4b325b1e..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_asterisk_after_type_cast.cpp +++ /dev/null @@ -1,30 +0,0 @@ -#define MEM_ASSERT1(x) if (!(x)) * (volatile int *)0 = 1 -#define MEM_ASSERT2(x) if (!(x))*(volatile int*)0 = 1 -#define MEM_ASSERT3(x) if (!(x)) * (volatile int *)0 = 1; -#define MEM_ASSERT4(x) if (!(x))*(volatile int*)0 = 1; -#define MEM_ASSERT5(x) if (!(x)) { * (volatile int *)0 = 1; } -#define MEM_ASSERT6(x) if (!(x)) { *(volatile int*)0 = 1; } - -#define FOO1(x) while (!(x)) { * (volatile int*)0 = 1; } -#define FOO2(x) while (!(x)) * (volatile int*)0 = 1; -#define FOO3(x) { * (volatile int*)0 = 1; } -#define FOO4(x) * (volatile int*)0 = 1; -#define FOO5(x) for(;;) (!(x)) { * (volatile int*)0 = 1; } -#define FOO6(x) for(;;) (!(x)) * (volatile int*)0 = 1; -#define FOO7(x) do { * (volatile int*)0 = 1; } while (false); - -void foo1(int x) { - if (!(x)) * (volatile int *)0 = 1; -} - -void foo2(int x) { - if (!(x))*(volatile int*)0 = 1; -} - -void foo3(int x) { - if (!(x)) { * (volatile int *)0 = 1; } -} - -void foo4(int x) { - if (!(x)) { *(volatile int*)0 = 1; } -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_class-constr.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_class-constr.cpp deleted file mode 100644 index 2be3c8e8..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_class-constr.cpp +++ /dev/null @@ -1,6 +0,0 @@ -class foo : public my_Class -{ - void bar_c(int tttt, int uu, int abc, int defxx) : tttt(4444) -, uu(22) , abc(333) , defxx(55555) - {} -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_class.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_class.cpp deleted file mode 100644 index d47e77bb..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_class.cpp +++ /dev/null @@ -1,14 +0,0 @@ -//---------------------------------------------------------------------------
-// Statics |
-//---------------------------------------------------------------------------
-void CTdrFile::SetDistanceMode( TDistMode dm ) { CTdrFile::ms_DistMode = dm; }
-TDistMode CTdrFile::GetDistanceMode( void ) { return CTdrFile::ms_DistMode; }
-String CTdrFile::GetDistanceModeUnits( void ) { return ( CTdrFile::GetDistanceMode() == dmKM ) ? "km" : "Miles"; }
-void CTdrFile::SetBSTCompensation( bool bUseBST ){ ms_bCompBST = bUseBST; }
-void CTdrFile::SetFactoryMode( bool bFactory ) { ms_bFactory = bFactory; }
-bool CTdrFile::GetFactoryMode( void ) { return ms_bFactory; }
-
-unsigned int CAgentCharacter::iReferenceCount = 0;
-IAgentEx* CAgentCharacter::pAgentEx = NULL;
-CAgentNotifySink* CAgentCharacter::pSink = NULL;
-
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_constr.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_constr.cpp deleted file mode 100644 index 1a22f6d9..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_constr.cpp +++ /dev/null @@ -1,16 +0,0 @@ -struct TelegramIndex -{ -TelegramIndex(const char* pN, unsigned long nI) : -pTelName(pN), -nTelIndex(n) -{ -} - -~TelegramIndex() -{ -} - -const char* const pTelName; -unsigned long nTelIndex; -}; - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_continuation_left_shift.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_continuation_left_shift.cpp deleted file mode 100644 index c0c066b8..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_continuation_left_shift.cpp +++ /dev/null @@ -1,25 +0,0 @@ -std::string foo(struct tm* local) { - std::stringstream timestamp; - timestamp << - (local->tm_year + 1900) << "." << - (local->tm_mon + 1) << "." << - local->tm_mday << "-" << - local->tm_hour << "." << - local->tm_min << "." << - local->tm_sec; - return timestamp.str(); -} - -std::string foo2(struct tm* local) { - std::stringstream timestamp; - int year = local->tm_year + 1900; - int mon = local->tm_mon + 1; - timestamp << - year << "." << - mon << "." << - local->tm_mday << "-" << - local->tm_hour << "." << - local->tm_min << "." << - local->tm_sec; - return timestamp.str(); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_default_after_override.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_default_after_override.cpp deleted file mode 100644 index de21686c..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_default_after_override.cpp +++ /dev/null @@ -1,28 +0,0 @@ -class B -{ -public: -B() = default; -virtual ~B() = default; -}; - -class D1 : public B -{ -public: -D1() = default; -~D1() = default; -D1(const D1&) = delete; -D1(D1&&) = delete; -D1& operator=(const D1&) = delete; -D1& operator=(const D1&&) = delete; -}; - -class D2 : public B -{ -public: -D2() = default; -~D2() override = default; -D2(const D2&) = delete; -D2(D2&&) = delete; -D2& operator=(const D2&) = delete; -D2& operator=(D2&&) = delete; -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_fcall.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_fcall.cpp deleted file mode 100644 index c27ed9d1..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_fcall.cpp +++ /dev/null @@ -1,18 +0,0 @@ -void foo() -{ -abc(1,2,3); -abc(10,20,30); -abc(100,200,300); -cab(3,2,1,0); -brat("foo",2000,3000); -brat("question",2,-42); -brat("a",-22, 1); -while (1) -{ -brat("foo",2000,3000); -brat("question",2,-42); -brat("a",-22, 1); -} -brat("foo",2000,3000); -brat("a",-22, 1); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_func_params.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_func_params.cpp deleted file mode 100644 index a90155fd..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_func_params.cpp +++ /dev/null @@ -1,111 +0,0 @@ -class SomeClass -{ - public: - // Short parameters - TYPE_EXPORT method1(int a, - float b); - - TYPE_EXPORT method2(int& d, - float e); - - TYPE_EXPORT method3(int* f, - float g); - - // Parameters with '&' and '*' - TYPE_EXPORT method4(int a); - TYPE_EXPORT method5(int & a); - TYPE_EXPORT method6(int * a); - - TYPE_EXPORT method7(float a); - TYPE_EXPORT method8(float & a); - TYPE_EXPORT method9(float * a); - - // Single short and long parameters - void method10(int a); - void method11(float & a); - void method12(SomeLongNamespace::SomeLongType long_parameter_name); - void method13(double * a); - void method14(SomeLongType long_parameter_name); - - // Long parameters - void method20(int * int_param, - SomeLongNamespace::SomeLongType long_parameter_name, - float & float_param); - - // Possible bug: different aligning in method21 and method22 - // align_func_params_span = 1, align_func_params_thresh = 8 - void method21(SomeLoooooooooooooongType long_param_1, - const string& string_param_1, - const TimePoint& time_param, - double double_param_1, - double double_param_2, - const string& string_param_2, - SomeLoooooooooooooongType long_param_2 ); - void method22(SomeLoooooooooooooongType long_param_1, - const string& string_param_1, - double double_param_1, - double double_param_2, - const TimePoint& time_param, - const string& string_param_2, - SomeLoooooooooooooongType long_param_2 ); - - void method23(int int_param, - int * int_ptr_param, - float float_param, - float & float_ref_param, - SomeLongNamespace::SomeLongType long_parameter_name, - int * other_int_param, - SomeLooooongType long_parameter_name, - SomeLoooooooooongType looong_parameter_name, - SomeLongNamespace::OtherLongNamespace::SomeLongType very_long_parameter_name, - int * int_ptr_param, - float float_param, - float & float_ref_param, - double & double_param, - SomeLongNamespace::SomeLongType long_parameter_name, - int * other_int_param); - - // Don't align several parameters in one line - void method30(int* f, char foo, - float g); - - // Short parameters in method definition - void method40(int a, - float b) - { - int c; - - if ( true ) callProc; - // do stuff. - } - - // Long parameters in method definition - void method50(int int_param, - SomeLongNamespace::OtherLongNamespace::SomeLongType long_parameter_name, - float float_param, - double double_param, - const string & string_param) - { - doSomething(); - } - - void method51( - int int_param, - SomeLongNamespace::OtherLongNamespace::SomeLongType long_parameter_name, - float float_param, - double double_param, - const string & string_param) - { - doSomething(); - } - void increasing_length( - int int_param, - float float_param, - double double_param, - ah_long_t & string_param, - very_long_type t_param, - even_longer_type l_param) - { - doSomething(); - } -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_func_proto_thresh.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_func_proto_thresh.cpp deleted file mode 100644 index df6b4dca..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_func_proto_thresh.cpp +++ /dev/null @@ -1,15 +0,0 @@ -class AlignFuncProtoTest { - public: - void test1(); - void test2(); - SomeLongType findSomeLongType(); - void* test3(); - void test4(){ a=1;} - double test5(); - void test6(); - SomeLongNamespace::OtherLongNamespace::SomeLongType findSomeLongType(); - void test7(); - void test8(); - void test9(); - SomeLongNamespace::SomeLongType long_var; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_func_proto_thresh2.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_func_proto_thresh2.cpp deleted file mode 100644 index b0960a11..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_func_proto_thresh2.cpp +++ /dev/null @@ -1,19 +0,0 @@ -class AlignFuncProtoTest { - public: - virtual void test1(std::wstring & name, std::pair<Space1::Space2::SomeType, Space1::Space2::otherType> param1) = 0; - virtual SomeLongType findSomeLongType()= 0; - virtual Some::Type test2() = 0; - virtual SomeNameSpace::TypeA test3()= 0; - virtual SomeNameSpace::SubNameSpace1::TypeA test4()= 0; - virtual SomeNameSpace::SubNameSpace1::SubNameSpace2::TypeB test5()= 0; - virtual SomeNameSpace::SubNameSpace1::SubNameSpace2::SubNameSpace3::TypeC test6()= 0; - virtual SomeNameSpace::SubNameSpace1::SubNameSpace2::SubNameSpace3::SubNameSpace4::TypeD test7()= 0; - double test5(); - void test6(); - SomeLongNamespace::OtherLongNamespace::SomeLongType findSomeLongType(); - void test7(); - void test8(); - void test9(); - SomeLongNamespace::SomeLongType long_var; - SomeNameSpace::SubNameSpace1::SubNameSpace2::SubNameSpace3::SubNameSpace4::SubNameSpace5::TypeE test7(); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_left_shift.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_left_shift.cpp deleted file mode 100644 index 3cf7a744..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_left_shift.cpp +++ /dev/null @@ -1,41 +0,0 @@ -#include <iostream> -#define MACRO(x) x -int main() -{ - int X[1]; - MACRO(std::cout << X - << X[0]); - std::cout << X - << X; - std::cout2 << X - << X; - std::cout << X - << X[0]; - std::cout << -X << -Y; - std::cout -<< X -<< Y; - std::cout -<< -X -<< -Y; -} - -#define A_LONG_MACRO_NAME(x) x - -void f() { - std::cout << "Hello, " - << "World!" - << std::endl; - A_LONG_MACRO_NAME(std::cout << "Hello, " - << "World!" - << std::endl); - A_LONG_MACRO_NAME( - std::cout << "Hello, " - << "World!" - << std::endl); -} - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_left_shift2.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_left_shift2.cpp deleted file mode 100644 index c90ae71f..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_left_shift2.cpp +++ /dev/null @@ -1,32 +0,0 @@ -void g() -{ - RLOGD(m_log) - << "str1" - << var; - - if (something) - cout << "blah"; - -} - -void f() -{ - cout << something( - arg); - cout - << "something"; - cout << - "something"; - - RLOGD(m_log) - << "WriteReqSize()"; - - RLOGD(m_log) << - base::sprintfT( - "something %u ", - m_pendingAccepts); - - RLOGDD(m_log) << sprintfT( - "something id=%u", - newSocket->GetId()); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_right_comment.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_right_comment.cpp deleted file mode 100644 index 43a2a70f..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_right_comment.cpp +++ /dev/null @@ -1,29 +0,0 @@ -namespace A -{ -namespace B -{ -namespace C -{ - - -struct D -{ - int a; // a. - int b; - int c; -}; // struct D - - -} // namespace C - - -struct E {}; - - -} // namespace B - - -struct F {}; - - -} // namespace C diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_var_def_thresh.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_var_def_thresh.cpp deleted file mode 100644 index 3942f227..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_var_def_thresh.cpp +++ /dev/null @@ -1,64 +0,0 @@ -void testShortTypes() -{ -// No stars -float a; -double b; - -// All stars -float& a; -double& b; - -float * a; -double * b; - -float &a; -double &b; - -// One star before -double& a; -float b; - -double & a; -float b; - -double &a; -float b; - -// One star after -float b; -double& a; - -float b; -double & a; - -float b; -double &a; -} - -void testLongTypes() -{ -int int_var; -int * int_ptr_var; -int *int_ptr_var; -float float_var; -float &float_ref_var; -float & float_ref_var; -double & double_var; -long_type little_long_var; - SomeLongNamespace::SomeLongType long_var; - int * other_int_var; - SomeLooooongType long_var; - SomeLoooooooooongType looong_var; - int int_var; - SomeLongNamespace::OtherLongNamespace::SomeLongType very_long_var; -int * int_ptr_var; -float float_var; -float & float_ref_var; -double & double_var; - SomeLongNamespace::SomeLongType long_var; -float float_var; - int * other_int_var; - int other_int_var; - int *other_int_var; - int& other_int_var; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/alt_tokens.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/alt_tokens.cpp deleted file mode 100644 index fcaf1392..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/alt_tokens.cpp +++ /dev/null @@ -1,7 +0,0 @@ -// how to use digraps: -// https://en.wikipedia.org/wiki/Digraphs_and_trigraphs - -int main(int argc, char *argv[]) <% // { -int array<:10:>; // int array[10]; -%> // } - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/anonymous_enum.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/anonymous_enum.cpp deleted file mode 100644 index 0cf8426d..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/anonymous_enum.cpp +++ /dev/null @@ -1,37 +0,0 @@ -enum { - E11=0, - E12=1, - E13=2 -}; - -enum Enum1 { - E21=0, - E22=1, - E23=2 -}; - -enum Enum2:int { - E31=0, - E32=1, - E33=2 -}; - -enum Enum3 -:int { - E41=0, - E42=1, - E43=2 -}; - -enum:int { - E51=0, - E52=1, - E53=2 -}; - -enum -:int { - E61=0, - E62=1, - E63=2 -};
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/arith_vs_byref.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/arith_vs_byref.cpp deleted file mode 100644 index f459fdcc..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/arith_vs_byref.cpp +++ /dev/null @@ -1,10 +0,0 @@ -A a = {this->r & cos(b)};
-
-B b1 = {0x0000'1111 & this->r};
-B b2 = {this->r & 0x0000'1111};
-B b3 = {0x0000'1111 & value};
-B b4 = {value & 0x0000'1111};
-
-auto p = std::make_pair(r & cos(a), r & sin(a));
-
-auto p2 = std::make_pair(r & 0x0000'1111, 0x0000'1111 & r);
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/asm_block_pp.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/asm_block_pp.cpp deleted file mode 100644 index e6816d9a..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/asm_block_pp.cpp +++ /dev/null @@ -1,20 +0,0 @@ - -void add128( uint64_t & rlo, uint64_t & rhi, uint64_t addlo ) { -#if defined(HAVE_X86_64_ASM) - __asm__ ("addq %2, %0\n" - "adcq $0, %1\n" -#if defined(__clang__) - // clang cannot work properly with "g" and silently - // produces hardly-workging code, if "g" is specified; - : "+r" (rlo), "+r" (rhi) - : "m" (addlo) -#else - : "+g" (rlo), "+g" (rhi) - : "g" (addlo) -#endif - ); -#else - rlo += addlo; - rhi += (rlo < addlo); -#endif -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/attribute_specifier_seqs.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/attribute_specifier_seqs.cpp deleted file mode 100644 index 744b3404..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/attribute_specifier_seqs.cpp +++ /dev/null @@ -1,112 +0,0 @@ -void asd(void) -{ - a < up_lim() ? do_hi() : do_low; - a[ a<b>c] = d; -} - -[[nodiscard]] inline static CFErrorRef _Nullable CreateErrorIfError(CFStringRef const inDomain, CFIndex const inCode, CFDictionaryRef const inInformation) { -[[maybe_unused]] auto const [iterator, inserted]{ super_type::insert(ioFileReference) }; -if (inCode == 0) { -return nullptr; -} -return ::CFErrorCreate(kCFAllocatorDefault, inDomain, inCode, inInformation); -} - -[[gnu::always_inline]] [[gnu::hot]] [[gnu::const]] [[nodiscard]] -inline int f(); -[[gnu::always_inline, gnu::const, gnu::hot, nodiscard]] -int f(); -[[using gnu : const, always_inline, hot]] [[nodiscard]] -int f[[gnu::always_inline]](); - -int f(int i) [[expects: i > 0]] [[ensures audit x: x < 1]]; - -void f() { -int i [[cats::meow([[]])]]; -int x [[unused]] = f(); -} - -int f(int i) [[deprecated]] { -switch(i) { -case 1: [[fallthrough]]; -[[likely]] case 2: return 1; -} -return 2; -} - -[[ -unused, deprecated("keeping for reference only") -]] -void f() -{ -} - -[[noreturn]] void f() [[deprecated("because")]] { -throw "error"; -} - -void print2(int * [[carries_dependency]] val) -{ -std::cout<<*p<<std::endl; -} - -class X { -public: -int v() const { return x; } -int g() [[expects: v() > 0]]; -private: -int k() [[expects: x > 0]]; -int x; -}; - -class [[foo, bar("baz")]] /**/ Y :private Foo, Bar { -public: -int v(int &x) { return x; } -}; - -class -[[foo]] -[[bar("baz")]] -Z:Foo, public Bar { -public: -int v(int * x) { return *x; } -}; - -int g(int* p) [[ensures: p != nullptr]] -{ -*p = 42; -} - -bool meow(const int&) { return true; } -void i(int& x) [[ensures: meow(x)]] -{ -++x; -} - -enum Enum { -a, b }; -enum class [[foo]] Enum { -a, b }; -enum struct [[foo]] /**/ [[bar("baz")]] Enum { -a, b }; -enum [[foo]] -Enum { -a, b }; -enum class [[foo]] // -[[bar("baz")]] Enum { -a, b }; -enum struct // -[[bar("baz")]] Enum { -a, b }; -enum -[[foo]] [[bar("baz")]] /**/ Enum { -a, b }; -enum class /**/ [[foo]] [[bar("baz")]] -Enum { -a, b }; -enum // -struct -[[foo]] -[[bar("baz")]] -Enum { -a, b }; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/av.h b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/av.h deleted file mode 100644 index 7a90197c..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/av.h +++ /dev/null @@ -1,49 +0,0 @@ -/* -2) There seems to be a problem handling .h-files compared to .cpp-files. -The following problem only occurs in header-files, in source-files the -output is as desired. -*/ - -static inline void foo() -{ -//BEFORE: -if (cond) callFunc(); -// DESIRED: -if (cond) { - callFunc(); -} -// AFTER: -if (cond) {callFunc();} - - -/* -3) The spacing around pointer stars is not always maintained as desired. -*/ -//BEFORE: - Buffer<T>* buffer; -//AFTER: - Buffer<T>*buffer; - - -/* -4) Inside of casts the types are not formatted as outside. -*/ -//BEFORE: -T* t = dynamic_cast<T*>(obj); -//AFTER: -T* t = dynamic_cast<T *>(obj); - -/* -5) Inside some template-stuff the spacing goes weird. Multiple spaces -are inserted, although the configuration (should) say otherwise. -*/ -//BEFORE: -for (std::map<Key, Value*>::iterator it = map.begin(); it != map.end(); it++) { - bar(it); -} -//AFTER: -for (std::map < Key, Value * > ::iterator it = map.begin(); it != map.end(); it++) { - bar(it); -} - } - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bit-colon.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bit-colon.cpp deleted file mode 100644 index b593255b..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bit-colon.cpp +++ /dev/null @@ -1,21 +0,0 @@ -class C -{ -public: - size_t f1 : 1; - size_t f1:1; - size_t f2 : sizeof(size_t) - 1; - -Q_SIGNALS: - void somesignal(); -}; - -struct S -{ -private: - size_t f1 : 1; - size_t f1:1; - size_t f2 : sizeof(size_t) - 1; - -Q_SIGNALS: - void somesignal(); -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bom.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bom.cpp deleted file mode 100644 index 7ee7e7e6..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bom.cpp +++ /dev/null @@ -1,3 +0,0 @@ -// the file is UTF-8 Unicode (with BOM) -// Euro character -€; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bool.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bool.cpp deleted file mode 100644 index 30d4cb29..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bool.cpp +++ /dev/null @@ -1,11 +0,0 @@ -bool foo(char c) -{ - if (c == 'a') - { - return true; - } - else - { - return false; - } -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/brace_brace_init_lst.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/brace_brace_init_lst.cpp deleted file mode 100644 index 2a5254f0..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/brace_brace_init_lst.cpp +++ /dev/null @@ -1,22 +0,0 @@ -int main() -{ - int a0[][] = { { 1 } }; - unknown_type b0 = { { 2 } }; - auto c0 = unknown_type { { 3 } }; - auto d0 = func( { { 3 } } ); - auto e0 = func( unknown_type { { 3 } } ); - - int a1[][] = { {1} }; - unknown_type b1 = { {2} }; - auto c1 = unknown_type{ {3} }; - auto d1 = func({ {3} }); - auto e1 = func(unknown_type{ {3} }); - - int a2[][] = { {1} }; - unknown_type b2 = { {2} }; - auto c2 = unknown_type{ {3} }; - auto d2 = func({ {3} }); - auto e2 = func(unknown_type{ {3} }); - - return 1; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/brace_init_stdint_macros.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/brace_init_stdint_macros.cpp deleted file mode 100644 index 59eb8897..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/brace_init_stdint_macros.cpp +++ /dev/null @@ -1,7 +0,0 @@ -#include <stdint.h> - -uint64_t values[12] = { - UINT64_C(1486918591), UINT64_C(28100), ~UINT64_C(4), UINT64_C(0x2700f184), UINT64_C(0x69b88dcc4d7e98eb), UINT64_C(0x0ab8e2a231b49732), - UINT64_C(0x8226beae36e7317e), UINT64_C(0x5739289992c21658), UINT64_C(0x3acce043), ~UINT64_C(8), UINT64_C(4022), UINT64_C(63365009), -}; - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/braced_init_list.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/braced_init_list.cpp deleted file mode 100644 index e245f34c..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/braced_init_list.cpp +++ /dev/null @@ -1,260 +0,0 @@ -#include <vector> -#include <algorithm> - -using some_type = int; -namespace Ns { -using some_type = int; -} - -class BracedInitListBase { -public: -BracedInitListBase() - : a{int{1}}, - b(int(some_type(1))), - c(int{some_type(1)}), - d{int(some_type(1))}, - e{some_type{some_type{a}}} -{ -} - -virtual int getA() const { - return a; -} -private: -int a{}; -int b{1}; -int c = {1}; -int d = int{1}; -some_type e{1}; -some_type f = {1}; -some_type g = some_type{1}; -std::vector<some_type> h{some_type{4}, 5}; -::std::vector<some_type> i = ::std::vector<some_type>{4, some_type{5}}; -some_type j = ::std::vector<some_type>{4, some_type{5}}[1]; -some_type k[2]{1, 2}; -some_type l[2] = {1, 2}; - -union SomeUnion { -int a; -some_type b{}; -}; -}; - -class BracedInitListDerived : public BracedInitListBase { -public: -int getA() const override { - return BracedInitListBase::getA(); -} -}; - -some_type inc(some_type a) -{ - return some_type{++a}; -} - -some_type sum(some_type a, some_type b = some_type{1}) -{ - return a + inc(some_type{b - some_type{1}}); -} - -void braced_init_list_int() -{ - { - int a{}; - int b = {}; - int c = int{}; - int d = int{int{}}; - int{}; - int{int{}}; - } - { - int a{1}; - int b = {1}; - int c = int{1}; - int d = int{int{1}}; - int{1}; - int{int{1}}; - } -} - -void braced_init_list_some_type() -{ - { - some_type a{}; - some_type b = {}; - some_type c = some_type{}; - some_type d = some_type{some_type{}}; - some_type{}; - some_type{some_type{}}; - } - { - some_type a{1}; - some_type b = {1}; - some_type c = some_type{1}; - some_type d = some_type{some_type{1}}; - some_type{1}; - some_type{some_type{1}}; - } - { - ::some_type a{1}; - ::some_type b = {1}; - ::some_type c = ::some_type{1}; - ::some_type d = ::some_type{::some_type{1}}; - ::some_type{1}; - ::some_type{::some_type{1}}; - } - { - Ns::some_type a{1}; - Ns::some_type b = {1}; - Ns::some_type c = Ns::some_type{1}; - Ns::some_type d = Ns::some_type{Ns::some_type{1}}; - Ns::some_type{1}; - Ns::some_type{Ns::some_type{1}}; - } - { - ::Ns::some_type a{1}; - ::Ns::some_type b = {1}; - ::Ns::some_type c = ::Ns::some_type{1}; - ::Ns::some_type d = ::Ns::some_type{::Ns::some_type{1}}; - ::Ns::some_type{1}; - ::Ns::some_type{::Ns::some_type{1}}; - } -} - -void braced_init_list_some_type_auto() -{ - { - auto b = some_type{}; - auto c = some_type{some_type{}}; - } - { - auto a = {1}; - auto b = some_type{1}; - auto c = some_type{some_type{1}}; - } - { - auto b = ::some_type{1}; - auto c = ::some_type{::some_type{1}}; - } - { - auto b = Ns::some_type{1}; - auto c = Ns::some_type{Ns::some_type{1}}; - } - { - auto b = ::Ns::some_type{1}; - auto c = ::Ns::some_type{::Ns::some_type{1}}; - } -} - -void braced_init_list_function_call() -{ - { - some_type a{sum(some_type{}, some_type{})}; - some_type b = sum(some_type{}, some_type{}); - some_type c = some_type{sum(some_type{}, some_type{})}; - some_type{sum(some_type{}, some_type{})}; - some_type{some_type{sum(some_type{}, some_type{})}}; - } - { - some_type a{sum(some_type{1}, some_type{1})}; - some_type b = sum(some_type{1}, some_type{1}); - some_type c = some_type{sum(some_type{1}, some_type{1})}; - some_type{sum(some_type{a}, some_type{b})}; - some_type{some_type{sum(some_type{a}, some_type{b})}}; - } - { - ::some_type a{sum(::some_type{1}, ::some_type{1})}; - ::some_type b = sum(::some_type{1}, ::some_type{1}); - ::some_type c = ::some_type{sum(::some_type{1}, ::some_type{1})}; - ::some_type{sum(::some_type{a}, ::some_type{b})}; - ::some_type{::some_type{sum(::some_type{a}, ::some_type{b})}}; - } - { - Ns::some_type a{sum(Ns::some_type{1}, Ns::some_type{1})}; - Ns::some_type b = sum(Ns::some_type{1}, Ns::some_type{1}); - Ns::some_type c = Ns::some_type{sum(Ns::some_type{1}, Ns::some_type{1})}; - Ns::some_type{sum(Ns::some_type{a}, Ns::some_type{b})}; - Ns::some_type{Ns::some_type{sum(Ns::some_type{a}, Ns::some_type{b})}}; - } - { - ::Ns::some_type a{sum(::Ns::some_type{1}, ::Ns::some_type{1})}; - ::Ns::some_type b = sum(::Ns::some_type{1}, ::Ns::some_type{1}); - ::Ns::some_type c = ::Ns::some_type{sum(::Ns::some_type{1}, ::Ns::some_type{1})}; - ::Ns::some_type{sum(::Ns::some_type{a}, ::Ns::some_type{b})}; - ::Ns::some_type{::Ns::some_type{sum(::Ns::some_type{a}, ::Ns::some_type{b})}}; - } -} - -void braced_init_list_function_call_newline() -{ - { - some_type a{ - sum(some_type{}, - some_type{} - ) - }; - some_type b = sum( - some_type{}, some_type{}); - some_type c = some_type{ - sum( - some_type{}, some_type{})}; - some_type - {sum - (some_type{}, - some_type{} - ) - }; - some_type - {some_type{sum - (some_type{}, some_type{})}}; - } -} - -void braced_init_list_array() -{ - { - some_type a[]{}; - some_type b[] = {}; - some_type c[] = {{}, {}}; - } - { - some_type a[]{1, 2}; - some_type b[] = {1, 2}; - some_type c[] = {some_type{1}, some_type{2}}; - } -} - -void braced_init_list_template() -{ - { - std::vector<some_type> a{}; - std::vector<some_type> b = {}; - std::vector<some_type> c = {{}, {}}; - std::vector<some_type> d = std::vector<some_type>{}; - std::vector<some_type> e = std::vector<some_type>{{}, {}}; - std::vector<some_type> f = std::vector<some_type>{some_type{}, some_type{}}; - std::vector<some_type>{}; - std::vector<some_type>{{}, {}}; - std::vector<some_type>{some_type{}, some_type{}}; - } - { - std::vector<some_type> a{1, 2}; - std::vector<some_type> b = {1, 2}; - std::vector<some_type> c = std::vector<some_type>{1, 2}; - std::vector<some_type> d = std::vector<some_type>{some_type{1}, some_type{2}}; - std::vector<some_type>{1, 2}; - std::vector<some_type>{some_type{1}, some_type{2}}; - } -} - -void braced_init_list_lambda() -{ - std::vector<some_type> a{1, 2}; - some_type b{2}; - - auto c = []{return true;}; - auto d = [](){return true;}; - - std::find_if(a.begin(), a.end(), [&b](const some_type &v){return v == b;}); - std::find_if(a.begin(), a.end(), [](const some_type &v){some_type b{2}; return v == b;}); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/braced_init_template_decltype.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/braced_init_template_decltype.cpp deleted file mode 100644 index bfd5ef86..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/braced_init_template_decltype.cpp +++ /dev/null @@ -1,8 +0,0 @@ -#include <algorithm> -#include <type_traits> - -template<typename Arg, typename ... Args, typename std::enable_if <!std::is_same<Arg, decltype (std::make_index_sequence<5> { })>::value, int>::type = 0> -void foo(Arg &&arg, Args && ... args) -{ - -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/braces_align.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/braces_align.cpp deleted file mode 100644 index ca99edc6..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/braces_align.cpp +++ /dev/null @@ -1,13 +0,0 @@ -char *array_assign[2][4]=
-{
- {
- // foo
- {"foo"},
- {"foo@1"},{"foo@2"},{"foo@3"}
- },
- {
- // bar
- {"bar"},
- {"bar@1"},{"bar@2"},{"bar@3"}
- }
-};
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/braces_empty.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/braces_empty.cpp deleted file mode 100644 index 583c7fa1..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/braces_empty.cpp +++ /dev/null @@ -1,9 +0,0 @@ -class Parser::ParserPrivate { }; - -template <typename T> class to { }; - -my $all = { }; - -enum FocusEffect { }; - -struct error { }; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1001.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1001.cpp deleted file mode 100644 index b0ce9a06..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1001.cpp +++ /dev/null @@ -1,4 +0,0 @@ -template< > -struct Bar< false > : Foo -{ -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1002.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1002.cpp deleted file mode 100644 index 713018e4..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1002.cpp +++ /dev/null @@ -1,8 +0,0 @@ -template< class B1 = void, class B2 = void > -struct conjunction : bool_constant<B1::value1 && B2::value2> -{ -}; -template< class B1 = void, class B2 = void > -struct conjunction : bool_constant<B1::value1&&B2::value2> -{ -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1003.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1003.cpp deleted file mode 100644 index 7495b93d..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1003.cpp +++ /dev/null @@ -1,33 +0,0 @@ -class Foo -{ -public: - Foo( - int x_, - int y_ - ) : x(x_), y(y_) - { - } -private: - int x; - int y; -}; - -class Bar -{ -public: - // Splits 3,5 onto newlines - Bar() : Bar(3, 5) - { - } - - // No split here - Bar( - int x, - int y - ) : foo(x, y) - { - } - - Foo foo; -}; - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1004.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1004.cpp deleted file mode 100644 index 3287be1c..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1004.cpp +++ /dev/null @@ -1,14 +0,0 @@ -int main() -{ - int b = 3; - int* p = &b; - - // Should stay as b * *p - int a = b * *p; - - // Correctly formats as a * b; - int c = b*a; - - // Correctly formats as d = *p; - int d = * p; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1005.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1005.cpp deleted file mode 100644 index 01a457d0..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1005.cpp +++ /dev/null @@ -1 +0,0 @@ -friend void ::test::swap< >(future< T >&, future< T >&); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1020.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1020.cpp deleted file mode 100644 index ec80e915..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1020.cpp +++ /dev/null @@ -1,4 +0,0 @@ -void HouseNumberData(Translation const & trans = Translation { }, Orientation const & orient = Orientation { }, CategoryIds const & cats = CategoryIds(), std::string const & txt = std::string { }, bool active = false); - -void HouseNumberData(Translation const & trans______________, Orientation const & orient______________________, CategoryIds const & cats_____________________, std::string const & txt___________________, bool active_________); - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1027.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1027.cpp deleted file mode 100644 index 5ccafd2b..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1027.cpp +++ /dev/null @@ -1,5 +0,0 @@ -int * fn1(); -mytype * fn2(); -myttype<float> * fn3(); -myttype<float> * myclass::fn4(); -myttype * myclass::fn5(); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1032.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1032.cpp deleted file mode 100644 index 80078efe..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1032.cpp +++ /dev/null @@ -1 +0,0 @@ -int variable1 = items_array[index<int>()]; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1068.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1068.cpp deleted file mode 100644 index 74fbc8e7..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1068.cpp +++ /dev/null @@ -1,55 +0,0 @@ -// No extra line added -void test1() -{ - if ( i == 10 ) - i++; -} - -// No extra line added -void test2() -{ - if ( i == 10 ) - { - i++; - } -} - -// No extra line added -void test3() -{ - if ( i == 10 ) - { - if ( j == 10 ) - { - i++; - } - } -} - -// No extra line added -void test4() -{ - if ( i == 10 ) - { - if ( j == 10 ) - i++; - } -} - -// Extra line added (after Uncrustify) -void test5() -{ - if ( i == 10 ) - if ( j == 10 ) - { - i++; - } -} - -// Extra line added (after Uncrustify) -void test6() -{ - if ( i == 10 ) - if ( j == 10 ) - i++; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1108.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1108.cpp deleted file mode 100644 index 573a9810..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1108.cpp +++ /dev/null @@ -1,8 +0,0 @@ -int foo() - { - const std::map<std::string, int> bar = - { - { "abcXYZ", -13 }, - }; - return 5; - } diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1112.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1112.cpp deleted file mode 100644 index e6537641..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1112.cpp +++ /dev/null @@ -1,2 +0,0 @@ -::std::vector<int> & foo(); -std::vector<int> & bar(); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1127.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1127.cpp deleted file mode 100644 index 9ee98743..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1127.cpp +++ /dev/null @@ -1,20 +0,0 @@ -#include <iostream> - -template<size_t T> -class MyFoo -{ -public: - MyFoo() - { - std::cout << T << std::endl; - } -}; - -int main() -{ - const size_t mySize = INT8_MAX* 2; - MyFoo<mySize * 2> foo1; - MyFoo<mySize/2> foo2; - MyFoo<2*mySize> foo1; - MyFoo<2/mySize> foo2; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1134.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1134.cpp deleted file mode 100644 index 369b70f1..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1134.cpp +++ /dev/null @@ -1,2 +0,0 @@ -#define ABC 123 // Start trailing comment.. - // ..end with aligned comment. diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1139.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1139.cpp deleted file mode 100644 index 82210d96..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1139.cpp +++ /dev/null @@ -1,42 +0,0 @@ -void a() -{ - if((tmp == nullptr) || - ((tmp->GetType() != CT_NUMBER) && - (tmp->GetType() != CT_SIZEOF) && - !(tmp->GetFlags() & (PCF_IN_STRUCT | PCF_IN_CLASS))) || - (tmp->GetType() == CT_NEWLINE) - ) - { - next->SetType(CT_LABEL_COLON); - } -else if ((tmp == nullptr) || - ((tmp->GetType() != CT_NUMBER) && - (tmp->GetType() != CT_SIZEOF) && - !(tmp->GetFlags() & (PCF_IN_STRUCT | PCF_IN_CLASS))) || - (tmp->GetType() == CT_NEWLINE) - ) - { - next->SetType(CT_LABEL_COLON); - } - - - if ((tmp == nullptr) || - ((tmp->GetType() != CT_NUMBER) && - (tmp->GetType() != CT_SIZEOF) && - !(tmp->GetFlags() & (PCF_IN_STRUCT | PCF_IN_CLASS))) || - (tmp->GetType() == CT_NEWLINE)) - { - next->SetType(CT_LABEL_COLON); - } - - if ((tmp == nullptr) || - ((tmp->GetType() != CT_NUMBER) && - (tmp->GetType() != CT_SIZEOF) && - !(tmp->GetFlags() & (PCF_IN_STRUCT | PCF_IN_CLASS))) || - (tmp->GetType() == CT_NEWLINE) - -) - { - next->SetType(CT_LABEL_COLON); - } -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1158.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1158.cpp deleted file mode 100644 index e92da160..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1158.cpp +++ /dev/null @@ -1,4 +0,0 @@ -void Class1::Func(void) -{ - while (Next()) ; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1160.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1160.cpp deleted file mode 100644 index 8dc7a9d1..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1160.cpp +++ /dev/null @@ -1,7 +0,0 @@ -template<typename T1> -class Class1 -{ -public: - status.time_count = duration_cast<::milliseconds> - (steady_clock::now().time_since_epoch()).count(); -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1161.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1161.cpp deleted file mode 100644 index 535c3be7..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1161.cpp +++ /dev/null @@ -1,54 +0,0 @@ -// Use case from issue #1161 -class test -{ - // comment 1 (gets methods) - public: - // get 1 - int get1(); - // get 2 - int get2(); - - - - - // comment 2 (sets methods) - public: - // set 1 - int set1(); - // set2 - int set2(); - -}; - -// Use cases from issue #2704 -class Foo -{ -public: - /// @name Constructors - /// @{ - - Foo(int value) : value_(value) - {} - - /// @} - -private: - int value_; -}; - -class Bar -{ -public: - /*! - * @name Constructors - * @{ - */ - - Bar(int value) : value_(value) - {} - - /*! @} */ - -private: - int value_; -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1169.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1169.cpp deleted file mode 100644 index aa56008a..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1169.cpp +++ /dev/null @@ -1,24 +0,0 @@ -class MyClass -{ - public: - virtual void f1ooooooooooooooo(const int bar); - virtual void f2oooooooooooooooo(const int bar); - virtual void f3ooooooooooooooooo(const int bar); - virtual void f4oooooooooooooooooo(const int bar); - virtual void f5ooooooooooooooooooo(const int bar); -}; - -virtual void f1oooooooooooooooooo(const int bar); -virtual void f2ooooooooooooooooooo(const int bar); -virtual void f3oooooooooooooooooooo(const int bar); -virtual void f4ooooooooooooooooooooo(const int bar); -virtual void f5oooooooooooooooooooooo(const int bar); - -void foo() -{ - std::string s1 = "f1oooooooooooooooooooooooo"; - std::string s2 = "f2ooooooooooooooooooooooooo"; - std::string s3 = "f3oooooooooooooooooooooooooo"; - std::string s4 = "f4ooooooooooooooooooooooooooo"; - std::string s5 = "f5oooooooooooooooooooooooooooo"; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1170.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1170.cpp deleted file mode 100644 index 35dd772f..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1170.cpp +++ /dev/null @@ -1,6 +0,0 @@ -template<class CLASS_PARAMETER_0, class CLASS_PARAMETER_1, class CLASS_PARAMETER_2, class CLASS_PARAMETER_3, class CLASS_PARAMETER_4, class CLASS_PARAMETER_5> -class MyTemplateClass -{ -public: - MyTemplateClass<my::super::cool::_and::fancy::type, my::super::cool::_and::fancy::type, my::super::cool::_and::fancy::type, my::super::cool::_and::fancy::type, my::super::cool::_and::fancy::type, my::super::cool::_and::fancy::type> foo(); -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1235.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1235.cpp deleted file mode 100644 index b9ff78a1..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1235.cpp +++ /dev/null @@ -1 +0,0 @@ -namespace dudeNamespace { class ForwardFooClass; } diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1236.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1236.cpp deleted file mode 100644 index 8acaaed2..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1236.cpp +++ /dev/null @@ -1,14 +0,0 @@ -void foo() -{ - int head, bar; - __asm__ __volatile__ - ( - "movq %0,%%xmm0\n\t" /* asm template */ - "0:\n\t" - "bar\t%0, [%4]\n\t" // in template - "1:\n\t" - : "=a", (bar) - : "=&b", (&head), "+m", (bar) - : "cc" - ); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1249.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1249.cpp deleted file mode 100644 index 975dc82c..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1249.cpp +++ /dev/null @@ -1,11 +0,0 @@ -friend class :: GameObject; -void GameObject :: Foo(); - -auto x = :: GlobalFunc(); - -friend void ::testing:: PrintDebugInformationForFakesInUse(); - -template<class TransferFunction> -void ::DateTime :: Transfer(TransferFunction & transfer) -{ -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1288.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1288.cpp deleted file mode 100644 index 94444cf9..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1288.cpp +++ /dev/null @@ -1 +0,0 @@ -friend std::ostream& operator<<(std::ostream& os, const ScriptingObjectPtr& o); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1289.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1289.cpp deleted file mode 100644 index 42663477..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1289.cpp +++ /dev/null @@ -1,3 +0,0 @@ -extern "C" void __declspec(dllexport) GetAccountNameAndDomain(HWND /*hwndParent*/, int string_size, TCHAR * variables, stack_t** stacktop, extra_parameters* /*extra*/) -{ -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1296.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1296.cpp deleted file mode 100644 index e2cd65fb..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1296.cpp +++ /dev/null @@ -1,7 +0,0 @@ -int main() -{ - auto lambda2222222222222222222 = [&]() - { - code(); - }; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1315.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1315.cpp deleted file mode 100644 index 080c9233..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1315.cpp +++ /dev/null @@ -1,17 +0,0 @@ -dookie::wookie << "asd" - << "bag" - << "sag"; - -typedef enum -{ - A = 0, - B = 1 << 0, - C = 1 << 1 -}; - -enum -{ - A = 0, - B = 1 << 0, - C = 1 << 1 -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1321.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1321.cpp deleted file mode 100644 index c381f91c..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1321.cpp +++ /dev/null @@ -1,6 +0,0 @@ -#include <utility> - -template <typename Fun, typename ... Args> -inline decltype(auto) Invoke(Fun&& f, Args&&... args) - noexcept(noexcept(std::forward<Fun>(f)(std::forward<Args>(args) ...))) -{ return std::forward<Fun>(f)(std::forward<Args>(args) ...); } diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1324.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1324.cpp deleted file mode 100644 index 5df154f3..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1324.cpp +++ /dev/null @@ -1,10 +0,0 @@ -{ - for (i = 0; i < 10; i++) - { - b = i + 1; - } - for (;;) - { - b = b + 1; - } -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1338.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1338.cpp deleted file mode 100644 index 04b4cd8a..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1338.cpp +++ /dev/null @@ -1,6 +0,0 @@ -/* *INDENT-OFF* */ -printf("Hello World!\n"); - - -//test -/* *INDENT-ON* */ diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1340.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1340.cpp deleted file mode 100644 index 680d6d51..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1340.cpp +++ /dev/null @@ -1,20 +0,0 @@ -double t = 111; -double t1 = 222; -double t123 = 333; - - -auto f = [](double x) -> double - { - double t = 1111; - double t1 = 1222; - double t123 = 1333; - }; - - -std::transform(v1.begin(), v1.end(), v2.begin(), - [](double x) -> double - { - double t = 2111; - double t1 = 2222; - double t123 = 2333; - }; ); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1346.h b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1346.h deleted file mode 100644 index 21fe1c44..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1346.h +++ /dev/null @@ -1,10 +0,0 @@ -typename std::enable_if<!std::is_void<T>::value, QVector<T> >::type dummy(const std::function<T*(const S&)>& pFunc, const QVector<S>& pItems) -{ - return QVector<T>(); -} - - -typename std::enable_if<!std::is_void<T>::value, QVector<T> >::type filter(const std::function<bool(const T&)>& pFunc, const QVector<T>& pItems) -{ - return QVector<T>(); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1349.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1349.cpp deleted file mode 100644 index aa1938e8..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1349.cpp +++ /dev/null @@ -1,6 +0,0 @@ -uint8_t a[][8]={{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}}; -uint8_t b[][8]={{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}}; -uint8_t c[][8]={{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}}; -uint8_t d[][8]={{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}}; -uint8_t e[][8]={{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}}; -uint8_t f[][8]={{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1395.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1395.cpp deleted file mode 100644 index 00694ce9..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1395.cpp +++ /dev/null @@ -1,5 +0,0 @@ -Type tmp = call_function(getObj().x, - getObj().y, - getObj().z, - getObj().w); -getObj().result = tmp; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1402.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1402.cpp deleted file mode 100644 index 9b001a44..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1402.cpp +++ /dev/null @@ -1,12 +0,0 @@ -namespace Constants -{ -double PI = 3.14; -} -int factor = 41; -double result = Constants::PI * factor; - -return Constants::PI * factor; - -void func(int value) { - return SomeClass(value, Constants::PI * value); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1403.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1403.cpp deleted file mode 100644 index 71f67f75..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1403.cpp +++ /dev/null @@ -1,6 +0,0 @@ -int main() -{ -float x; -float y; -float result(1 + x*y); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1432.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1432.cpp deleted file mode 100644 index 575a21c8..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1432.cpp +++ /dev/null @@ -1,2 +0,0 @@ -void set(); -vector<int> get(); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1439.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1439.cpp deleted file mode 100644 index d560522b..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1439.cpp +++ /dev/null @@ -1,2 +0,0 @@ -struct A; -struct B; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1452.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1452.cpp deleted file mode 100644 index d7fcf753..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1452.cpp +++ /dev/null @@ -1,6 +0,0 @@ -struct foobar { - char *foobarz() { return "foobar"; } - char *foo_bar() { return "foo_bar"; } - - int foo; -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1462.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1462.cpp deleted file mode 100644 index 5170b9a9..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1462.cpp +++ /dev/null @@ -1,26 +0,0 @@ -#include <type_traits> - -template < - typename... Args, - typename E = typename std::enable_if<(sizeof...(Args) >= 1), bool>::type -> -void fun1(Args&& ...args) -{ -} - -template < - typename... Args, - typename E = typename std::enable_if<(sizeof...(Args) > 1), bool>::type -> -void fun2(Args&& ...args) -{ -} - -template < - typename... Args, - typename E = typename std::enable_if<(sizeof...(Args) < 3), bool>::type -> -void fun3(Args&& ...args) -{ -} - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1607.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1607.cpp deleted file mode 100644 index 9e4e47d3..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1607.cpp +++ /dev/null @@ -1,2 +0,0 @@ -decltype(i * d) prod = i * d; -decltype(i + d) sum; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1649.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1649.cpp deleted file mode 100644 index 4ab5eea8..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1649.cpp +++ /dev/null @@ -1,3 +0,0 @@ -Foo() -noexcept () -{} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1689.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1689.cpp deleted file mode 100644 index 795bb572..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1689.cpp +++ /dev/null @@ -1,3 +0,0 @@ -using value_type = int; -using reference = value_type &; -using const_reference = const value_type &; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1691.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1691.cpp deleted file mode 100644 index 2d5d1204..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1691.cpp +++ /dev/null @@ -1,14 +0,0 @@ -#include <string> - -std::string foo() -{ - return std::string{"abc"}; -} -int main() -{ - const std::string&& name1 = foo(); - std::string&& name2 = foo(); - - const auto&& name3 = foo(); - auto&& name4 = foo(); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1717.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1717.cpp deleted file mode 100644 index a1adcf5f..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1717.cpp +++ /dev/null @@ -1,10 +0,0 @@ -class X14 -{ -public: -X14(); -~X14() = default; -X14(const X14& rhs) = default; -X14& operator=(const X14& rhs) = default; -X14(X14&& rhs) = delete; -X14& operator=(X14&& rhs) = delete; -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1758-f.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1758-f.cpp deleted file mode 100644 index b324fbda..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1758-f.cpp +++ /dev/null @@ -1,10 +0,0 @@ -int main() -{ - -for(int f=0; f < 1; f++) -{ - auto a = int{1}; -} - -return 0; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1758.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1758.cpp deleted file mode 100644 index b0f35107..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1758.cpp +++ /dev/null @@ -1,12 +0,0 @@ -for(int f=0; f<(Element::nf)*2; f++) -{ - if (f%2==1) p = p-1; - { - this->pInterpolation[i]=p; - this->cInterpolation[i]=0.; - this->dofInterpolation[i]=e+f; - this->coefInterpolation[i]=1.; - i++; - p++; - } -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1854.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1854.cpp deleted file mode 100644 index 29cc2774..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1854.cpp +++ /dev/null @@ -1 +0,0 @@ -while (*p++ = ' ') ; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1862.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1862.cpp deleted file mode 100644 index 78958bb1..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_1862.cpp +++ /dev/null @@ -1,11 +0,0 @@ -#if _MSC_VER < 1300 -#define __func__ "???" -#else /* comment 1 */ -#define __func__ __FUNCTION__ -#endif /* comment 2 */ - -#if _MSC_VER < 1300 -#define __func__ "???" -#else // comment 1 -#define __func__ __FUNCTION__ -#endif // comment 2 diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_2285.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_2285.cpp deleted file mode 100644 index 14a85090..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_2285.cpp +++ /dev/null @@ -1,11 +0,0 @@ -class __attribute__ ((visibility ("default"))) Test -{ -public: -Test() : member1(), member2() -{ -} - -private: -int member1; -int member2; -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_2322.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_2322.cpp deleted file mode 100644 index f9768c40..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_2322.cpp +++ /dev/null @@ -1,12 +0,0 @@ -void main() -{ - if (foo()) { bar(); } - else if (baz({ rick, morty })) { anime(); } - else if (a) while (true) { amime2(); } - else if (b) do { amime3(); } while(false); - else if (c) for(;;) { amime5(); } - else if (d) while(true) {} - else if (e) do {} while(false); - else if (f) for(;;) {} - else { amime6(); } -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_2371.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_2371.cpp deleted file mode 100644 index 26444ad3..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_2371.cpp +++ /dev/null @@ -1,101 +0,0 @@ -class CMyClass -{ - CMyClass( int a = 0, int b = 0 ); -}; - -class CMyClass2 -{ - CMyClass2( int a = 0, int b = 0 ); - CMyClass2( int a = 0 ); -}; - -class CMyClass3 -{ - CMyClass3( int a, int b = 0 ); - CMyClass3( int a = 0 ); -}; - -class CMyClass4 -{ - CMyClass4( int a = 0, int b = 0 ); - CMyClass4( short aa = 0, char * p = 0 ); -}; - -class CMyClass5 -{ - CMyClass5() = default; - CMyClass5( int a = 0, int b = 0 ); - CMyClass5( short aa = 0, char * p = 0 ); -}; - -class CMyClass6 -{ - CMyClass6( const CMyClass6& ) = default; - CMyClass6( int a = 0, int b = 0 ); - CMyClass6( short aa = 0, char * p = 0 ); -}; - -class CMyClass7 -{ - virtual void foo( const void* p = nullptr ) = 0; - CMyClass7( int a = 0, int b = 0 ); - CMyClass7( short aa = 0, char * p = 0 ); -}; - -class CMyClass8 -{ - CMyClass8( int a = 0, int b = 0 ); - CMyClass8( short aa = 0, char * p = 0 ); - virtual void foo( const void* p = nullptr ) = 0; -}; - -class CMyClass9 -{ - CMyClass9( int a = 0, int b = 0 ); - CMyClass9( short aa = 0, char * p = 0 ); - virtual void foo( const void* = nullptr ) = 0; -}; - -class CMyClassA -{ - CMyClassA( int a = 0, int b = 0 ); - CMyClassA( short aa = 0, char * p = 0 ); - virtual void foo( const void* /* p */ = nullptr ) = 0; -}; - -class CMyClassB -{ - CMyClassB( int a = 0, int b = 0 ); - CMyClassB( short aa = 0, char * p = 0 ); - virtual void foo( const void* /* p */ = NULL ) = 0; -}; - -#define UNUSED(x) - -class CMyClassC -{ - CMyClassC( int a = 0, int b = 0 ); - CMyClassC( short aa = 0, char * p = 0 ); - virtual void foo( const void* UNUSED(p) = NULL ) = 0; -}; - -class CMyClassD -{ - CMyClassD( int a = 0, int b = 0 ); - CMyClassD( short aa = 0, char * p = 0 ); - virtual void foo( const std::string s = "" ) = 0; -}; - -class CMyClassE -{ - CMyClassE( int a = 0, int b = 0 ); - CMyClassE( short aa = 0, char * p = 0 ); - virtual void foo( const std::string s = std::string() ) = 0; -}; - -class CMyClassF -{ - CMyClassF( int a = 0, int b = 0 ); - CMyClassF( short aa = 0, char * p = 0 ); - virtual void foo( const CString& s = _T( "" ) ) = 0; -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_2402.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_2402.cpp deleted file mode 100644 index 92731c19..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_2402.cpp +++ /dev/null @@ -1,8 +0,0 @@ -void -h1(const int a) -{ - switch (a) - { - case 1: {callFunction(a); break;} - } -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_2433_1.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_2433_1.cpp deleted file mode 100644 index d19718f5..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_2433_1.cpp +++ /dev/null @@ -1,8 +0,0 @@ -namespace A { -namespace S { -class C -{ -}; -} // namespace S -}; // namespace A - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_2433_2.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_2433_2.cpp deleted file mode 100644 index 9da12944..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_2433_2.cpp +++ /dev/null @@ -1,22 +0,0 @@ -void f(); -namespace A { -void f2(); -namespace S { -void f3(); -class C -{ -}; -void f4(); -} // namespace S -void f5(); -} // namespace A -void f6(); -namespace E -{ -void f7(); -class D -{ -};; -void f9(); -}; -void f10(); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_33056.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_33056.cpp deleted file mode 100644 index 1339ede1..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_33056.cpp +++ /dev/null @@ -1,7 +0,0 @@ -inline T* * someFunc(foo** p, bar&& q) -{ -} - -inline T && someFunc(foo * *p, bar && q) -{ -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_472.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_472.cpp deleted file mode 100644 index 753d9519..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_472.cpp +++ /dev/null @@ -1,3 +0,0 @@ -// comment - void -func( dbgTrace, (void) ); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_481.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_481.cpp deleted file mode 100644 index 03c4a828..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_481.cpp +++ /dev/null @@ -1,2 +0,0 @@ -//comment -void argvInter( int argc, char* argv[], Config * config ); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_484.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_484.cpp deleted file mode 100644 index 4c582e86..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_484.cpp +++ /dev/null @@ -1,6 +0,0 @@ - TestId::TestId( char* name ) : - n_( ( char* )name ) - { - n_( (char*)name ); - } - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_485.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_485.cpp deleted file mode 100644 index 4865da64..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_485.cpp +++ /dev/null @@ -1,20 +0,0 @@ -void Tst::test( Msg* message_p ) - { - switch (message_p) - { - case A: - { - const table* entry2 = findMsg( message_p ); - table* entry3 = findMsg( message_p ); - } - break; - - case B: - const table* entry2 = findMsg( message_p ); - table* entry3 = findMsg( message_p ); - break; - - default: - break; - } - } diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_488.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_488.cpp deleted file mode 100644 index 382beced..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_488.cpp +++ /dev/null @@ -1,12 +0,0 @@ -void baz() -{ - foobar= bar[a + b + (c - + d)]; - - foobar = bar(a + b + (c + - + d)); - - foo = bar[a] + b + qux(c + - + d); -} - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_495.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_495.cpp deleted file mode 100644 index f356c302..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_495.cpp +++ /dev/null @@ -1,9 +0,0 @@ -void f() -{ -toto -foo1(int); -toto -foo2(bar); -int -foo3; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_612.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_612.cpp deleted file mode 100644 index 38253f15..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_612.cpp +++ /dev/null @@ -1,23 +0,0 @@ -void foo(void) -{ -int a = 0, b = 0; -char chvar = 0, var = 0; - -a = 0; -b = 0; -chvar = 0; -var = 0; -} - -void bar(void) -{ -int a = 0; -int b = 0; -char chvar = 0; -char var = 0; - -a = 0; -b = 0; -chvar = 0; -var = 0; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_631.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_631.cpp deleted file mode 100644 index e110d383..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_631.cpp +++ /dev/null @@ -1,4 +0,0 @@ -static inline auto myFunc(MyType const& myValue) -->std::string - -static inline std::string myFunc(MyType const& myValue) diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_633.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_633.cpp deleted file mode 100644 index 5b672b47..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_633.cpp +++ /dev/null @@ -1,29 +0,0 @@ -typedef void (*func)(); -typedef void (__stdcall *func)(); - -class CDataObject : public IDataObject -{ -public: - // IUnknown members - HRESULT __stdcall QueryInterface(REFIID iid, void ** ppvObject); - ULONG __stdcall AddRef(void); - ULONG __stdcall Release(void); - - // IDataObject members - HRESULT __stdcall GetData(FORMATETC *pFormatEtc, STGMEDIUM *pmedium); - HRESULT __stdcall GetDataHere(FORMATETC *pFormatEtc, STGMEDIUM *pmedium); - HRESULT __stdcall QueryGetData(FORMATETC *pFormatEtc); - HRESULT __stdcall GetCanonicalFormatEtc(FORMATETC *pFormatEct, FORMATETC *pFormatEtcOut); - HRESULT __stdcall SetData(FORMATETC *pFormatEtc, STGMEDIUM *pMedium, BOOL fRelease); - HRESULT __stdcall EnumFormatEtc(DWORD dwDirection, IEnumFORMATETC **ppEnumFormatEtc); - HRESULT __stdcall DAdvise(FORMATETC *pFormatEtc, DWORD advf, IAdviseSink *, DWORD *); - HRESULT __stdcall DUnadvise(DWORD dwConnection); - HRESULT __stdcall EnumDAdvise(IEnumSTATDATA **ppEnumAdvise); - - // exercise others - HRESULT __cdecl GetData(FORMATETC *pFormatEtc, STGMEDIUM *pmedium); - HRESULT __clrcall GetData(FORMATETC *pFormatEtc, STGMEDIUM *pmedium); - HRESULT __fastcall GetData(FORMATETC *pFormatEtc, STGMEDIUM *pmedium); - HRESULT __thiscall GetData(FORMATETC *pFormatEtc, STGMEDIUM *pmedium); - HRESULT __vectorcall GetData(FORMATETC *pFormatEtc, STGMEDIUM *pmedium); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_634.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_634.cpp deleted file mode 100644 index febbf7b3..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_634.cpp +++ /dev/null @@ -1,2 +0,0 @@ -__attribute__((visibility ("default"))) NSString* i; -extern "C" NSString* i; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_643.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_643.cpp deleted file mode 100644 index 55e3e309..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_643.cpp +++ /dev/null @@ -1,6 +0,0 @@ -class test_Dummy - : public QObject -{ - Q_OBJECT - test_Dummy* settings = nullptr; -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_651.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_651.cpp deleted file mode 100644 index b36e182a..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_651.cpp +++ /dev/null @@ -1,16 +0,0 @@ -int a () -{ - double a_very_long_variable = test (foobar1, - foobar5); - - double a_other_very_long = asdfasdfasdfasdfasdf + asdfasfafasdfa + - asdfasdfasdf - asdfasdf + 56598; - - a_other_very_long = asdfasdfasdfasdfasdf + asdfasfafasdfa + - asdfasdfasdf - asdfasdf + 56598; - - testadsfa (dfasdf, - aaafsdfa); - - return 0; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_653.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_653.cpp deleted file mode 100644 index 1bf853d6..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_653.cpp +++ /dev/null @@ -1,4 +0,0 @@ -/* - * - **Some comment - */ diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_654.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_654.cpp deleted file mode 100644 index 8baaeb1c..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_654.cpp +++ /dev/null @@ -1,7 +0,0 @@ -A( b, c, d); -connect(&mapper, SIGNAL(mapped(Q1 &)), this, SLOT(onSomeEvent(const Q2 &))); -connect(&mapper, - SIGNAL(mapped(Q1 &)), - this, - SLOT(onSomeEvent(const Q2 &))); -A( b, c, d); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_657.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_657.cpp deleted file mode 100644 index 230b96b3..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_657.cpp +++ /dev/null @@ -1 +0,0 @@ -class NewClass: public OldClass/*somecomment*/, public SomeClass; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_662.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_662.cpp deleted file mode 100644 index f8b0f8a8..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_662.cpp +++ /dev/null @@ -1,13 +0,0 @@ -///foo -///<foo -//!foo -//!<foo - -//@{ -//@} - -///@{ -///@} - -//!@{ -//!@} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_663.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_663.cpp deleted file mode 100644 index 869320c0..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_663.cpp +++ /dev/null @@ -1,11 +0,0 @@ -#define SOME_MACRO TemplateClass<T> -int i; -#if defined(_MSC_VER) - #if _MSC_VER < 1300 - #define __func__ "unknown function" - #else - #define __func__ __FUNCTION__ - #endif /* _MSC_VER < 1300 */ -#endif /* defined(_MSC_VER) */ - -#define bug_demo (1 > 2) ? (1 : 2) diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_664.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_664.cpp deleted file mode 100644 index 148201b0..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_664.cpp +++ /dev/null @@ -1,6 +0,0 @@ -bool dllInit = - []() -//34567890 -{ -}(); - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_666.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_666.cpp deleted file mode 100644 index 00adec83..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_666.cpp +++ /dev/null @@ -1,12 +0,0 @@ -bool test() -{ - if ( true ) - { - i = 10; - } - else - if ( true ) - { - i = 10; - } -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_670.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_670.cpp deleted file mode 100644 index e9229a8e..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_670.cpp +++ /dev/null @@ -1,5 +0,0 @@ -//3456789=123456789=123456789=123456789=123456789=123456789=12 -std::map<int, std::string> FOO::foo(int key, std::string value) -{ - return std::map<int, std::string>(key, value); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_670.h b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_670.h deleted file mode 100644 index ea503b10..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_670.h +++ /dev/null @@ -1,2 +0,0 @@ -//3456789=123456789=123456789=123456789=123456789=123456789=12 -std::map<int, std::string> FOO::foo(int key, std::string value); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_671.h b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_671.h deleted file mode 100644 index 8ff7bfca..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_671.h +++ /dev/null @@ -1,8 +0,0 @@ -#define FOO_MAX 10 - -bool foo[FOO_MAX]; - -void -foo_bar( int a, - int* b, - bool foo[FOO_MAX] ); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_858.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_858.cpp deleted file mode 100644 index 512d2e45..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_858.cpp +++ /dev/null @@ -1,16 +0,0 @@ -enum { - item1=123, - item2 // comment 2 -} - -enum -{ - item3, - item4, // comment 4 -} -enum { x, y }; -enum { x, y=0 }; -enum { x, y=0 /*comment*/ }; -enum { x, y,}; -enum { x, y=0,}; -enum { x, y=0,/*comment*/ }; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_902.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_902.cpp deleted file mode 100644 index eb51f587..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_902.cpp +++ /dev/null @@ -1,65 +0,0 @@ -// unc_add_option("sp_cond_colon", UO_sp_cond_colon, AT_IARF, -// "Add or remove space around the ':' in 'b ? t : f'"); -// unc_add_option("sp_cond_question", UO_sp_cond_question, AT_IARF, -// "Add or remove space around the '?' in 'b ? t : f'"); - - -void detect_options(void) -{ - detect_space_options(); -} - -int i = 0; - -//a -void a(){ return 0; } - -//0 -/*b*/ -void b(){ return 0; } - -/*0*/ -//c -void c(){ return 0; } - - -//d -//d -//d -void d(){ return 0; } - -//0 - -//h -//h -void h(){ return 0; } - -/*0*/ -/*e*/ -void e(){ return 0; } - -void f(){ return 0; } - -int i = 0; -void g(){ return 0; } - -void i(){ return 0; } -void j(){ return 0; } -void k(){ return 0; } - -//0 - -void l(){ return 0; } - -/* - * 0 - */ - -void m(){ return 0; } - -/* - * n - * n - * n - */ -void n(){ return 0; } diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_1000.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_1000.cpp deleted file mode 100644 index 06da6b3e..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_1000.cpp +++ /dev/null @@ -1,7 +0,0 @@ -int main() -{ - // Newline inserted between '}' and ')' - v.push_back({ 2, 3.0 }); - v.push_back({ 2, 3.0 } - ); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_197.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_197.cpp deleted file mode 100644 index e86698fd..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_197.cpp +++ /dev/null @@ -1 +0,0 @@ -struct A {int a;}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_322.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_322.cpp deleted file mode 100644 index bc7e687f..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_322.cpp +++ /dev/null @@ -1,4 +0,0 @@ -class STDMETHOD -{ -STDMETHOD(GetValues)(BSTR bsName, REFDATA** pData); -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_323.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_323.cpp deleted file mode 100644 index ea141156..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_323.cpp +++ /dev/null @@ -1,4 +0,0 @@ -class ATL_NO_VTABLE CProxy : - public ATL::CComCoClass<CProxy, &CLSID_Proxy> -{ -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_359.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_359.cpp deleted file mode 100644 index 294e3afb..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_359.cpp +++ /dev/null @@ -1,14 +0,0 @@ -int main() -{ - int foo = 42; - switch (foo) { - case 1: - std::cout << "1" << std::endl; - break; - case 2: - std::cout << "2" << std::endl; - break; - default: - std::cout << "Neither 1 nor 2." << std::endl; - } -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_405.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_405.cpp deleted file mode 100644 index eda9b0dd..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_405.cpp +++ /dev/null @@ -1,12 +0,0 @@ -namespace shark { - template<class Closure> - struct indexed_iterator { - typedef typename boost::mpl::if_< - boost::is_const< - Closure - >, - typename Closure::const_reference, - typename Closure::reference - >::type reference; - }; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_409.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_409.cpp deleted file mode 100644 index b3b51488..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_409.cpp +++ /dev/null @@ -1,11 +0,0 @@ -if(X == Y) X = Z; -if(Y == Z) - Y = X; - -for (i=0; i<5; i++) foo(i); -for (i=0; i<5; i++) - foo(i); - -while (i<5) foo(i++); -while (i<5) - foo(i++); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_411.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_411.cpp deleted file mode 100644 index 647570f2..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_411.cpp +++ /dev/null @@ -1,10 +0,0 @@ -class settings final -{ -public: -settings(); -~settings( ); -settings(const settings&); -settings & operator=(const settings&); -void set_something(const std::string& p_settings_name); -void set_another_setting(const std::string& p_settings_name); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_478.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_478.cpp deleted file mode 100644 index 5a16eccc..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_478.cpp +++ /dev/null @@ -1,24 +0,0 @@ -{ -QString fileName = QFileDialog::getOpenFileName(this, -tr("Choose Configuration File"), ui->leStrategyFile->Text(), -tr("Configuration Files (*.cfg);; All Files (*.*)"), 0); - -pSettings = new QSettings(QCoreApplication::applicationDirPath() + "/" + -QCoreApplication::applicationName() + ".ini", -QSettings::IniFormat); -} -int a () -{ - double a_very_long_variable = test (foobar1, - foobar5); - - double a_other_very_long = asdfasdfasdfasdfasdf + asdfasfafasdfa + - asdfasdfasdf - asdfasdf + 56598; - - a_other_very_long = asdfasdfasdfasdfasdf + asdfasfafasdfa + - asdfasdfasdf - asdfasdf + 56598; - - testadsfa (dfasdf, - aaafsdfa); - return 0; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_481.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_481.cpp deleted file mode 100644 index 2a4e6b8f..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_481.cpp +++ /dev/null @@ -1,3 +0,0 @@ -{ - connect( timer, SIGNAL( timeout( ) ), this, SLOT( timeoutImage( ) ) ); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_503.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_503.cpp deleted file mode 100644 index 3c5951a8..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_503.cpp +++ /dev/null @@ -1,8 +0,0 @@ -0B8h -__asm -{ - mov al, 0B8h - mov al, 2 - mov dx, 0xD007 - out dx, al -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_512.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_512.cpp deleted file mode 100644 index 3b4de434..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_512.cpp +++ /dev/null @@ -1,4 +0,0 @@ -template<typename TType> -class TTypeSpecialization1<TType> -{ -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_525.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_525.cpp deleted file mode 100644 index d0773475..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_525.cpp +++ /dev/null @@ -1,13 +0,0 @@ -EXEC SQL BEGIN DECLARE SECTION; - static char *tbuf; -EXEC SQL END DECLARE SECTION; - -void myfunc1() -{ - exec sql execute immediate :tbuf; -} - -void myfunc2() -{ - EXEC SQL EXECUTE IMMEDIATE :tbuf; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_552.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_552.cpp deleted file mode 100644 index 5a0704de..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_552.cpp +++ /dev/null @@ -1,13 +0,0 @@ -char *array_assign[2][4]= -{ - { - // foo - {"foo"}, - {"foo@1"},{"foo@2"},{"foo@3"} - }, - { - // bar - {"bar"}, - {"bar@1"},{"bar@2"},{"bar@3"} - } -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_568.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_568.cpp deleted file mode 100644 index 68729907..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_568.cpp +++ /dev/null @@ -1,23 +0,0 @@ -enum { // Keep this line as it is. It's a regression test for checking pc->GetPrev()->GetPrev()-> on CT_BRACE_OPEN. - kEnumValue = 5, -}; - -struct foo -{ - int bar : kEnumValue; - int pad : 3; -}; - -class cls -{ - int bar : kEnumValue; - int pad : 3; - - void func() - { - goto end; - bar = 1; - end: - pad = 2; - } -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_575.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_575.cpp deleted file mode 100644 index 3ef21f1f..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_575.cpp +++ /dev/null @@ -1,8 +0,0 @@ -void Foo::doo() -{ - m_stackCache[m_currentStackNr]->operator [](0) = new QStandardItem(QString::number(m_currentStackNr)); - m_stackCache[m_currentStackNr]->operator [](1) = new QStandardItem(tr("OK")); - m_stackCache[m_currentStackNr]->operator [](2) = new QStandardItem("0"); - m_stackCache[m_currentStackNr]->operator [](3) = new QStandardItem("0"); - m_stackCache[m_currentStackNr]->operator [](4) = new QStandardItem(); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_596.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_596.cpp deleted file mode 100644 index 88f77e34..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_596.cpp +++ /dev/null @@ -1,10 +0,0 @@ -#include "child.h" -int main(int argc, char*argv[]) { - (void)argc; - (void)argv; - Child child; - for (auto &attribute : * child.GetAttributes()) { - std::cout << attribute << std::endl; - } - return 0; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_646.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_646.cpp deleted file mode 100644 index f89b6416..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_646.cpp +++ /dev/null @@ -1 +0,0 @@ -friend class ::MultiLabelMeshPipeline; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_663.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_663.cpp deleted file mode 100644 index 2a473bc7..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_663.cpp +++ /dev/null @@ -1,19 +0,0 @@ -void test() -{ - switch ( n ) - { - case 1: - std::cout << "1"; - break; - - case 2: - { - std::cout << "2"; - } - break; - - case 3: - { std::cout << "3"; } - break; - } -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_666.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_666.cpp deleted file mode 100644 index 00adec83..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_666.cpp +++ /dev/null @@ -1,12 +0,0 @@ -bool test() -{ - if ( true ) - { - i = 10; - } - else - if ( true ) - { - i = 10; - } -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_682.h b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_682.h deleted file mode 100644 index 8f1fc31f..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_682.h +++ /dev/null @@ -1,4 +0,0 @@ -void foo()
-{
- return [=](T* t) { };
-}
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_687.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_687.cpp deleted file mode 100644 index 0f9e8155..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_687.cpp +++ /dev/null @@ -1,3 +0,0 @@ -struct S { static if (false) void bar() { }; } - -struct S { static if (false) { void bar() { }; } } diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_752.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_752.cpp deleted file mode 100644 index b0b77452..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_752.cpp +++ /dev/null @@ -1,14 +0,0 @@ -int a() -{ - for(QStringList::const_iterator codesIt = _codes.constBegin(); codesIt != _codes.constEnd(); ++codesIt) { - if( // Current codes enough to compare: - ( ( *codesIt ).size() <= strId ) || - // Character on this slot was not readable: - ( ( *codesIt ).at( strId ) == m_wildcard ) || - // This character is matching: - ( code.at( strId ) == ( *codesIt ).at( strId ) ) ) { - // Ignore this slot: - continue; - } - } -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_753.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_753.cpp deleted file mode 100644 index 07cc31fe..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_753.cpp +++ /dev/null @@ -1,9 +0,0 @@ -void Test::init() -{ - connect( m_ppcCom, - SIGNAL( sigReceivedBundle(QString) ), - SLOT( doProcessBundle(QString) ) ); - connect( m_ppcCom, - SIGNAL( sigReceivedBundle ), - SLOT( doProcessBundle ) ); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_793.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_793.cpp deleted file mode 100644 index 6777bfa5..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_793.cpp +++ /dev/null @@ -1,4 +0,0 @@ -static void h() -{ - typedef int IntGroup; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_825.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_825.cpp deleted file mode 100644 index d3f89db7..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_825.cpp +++ /dev/null @@ -1,5 +0,0 @@ -void a() -{ - int i = 0; - int h = 0h; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_889.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_889.cpp deleted file mode 100644 index 270f0695..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_889.cpp +++ /dev/null @@ -1,8 +0,0 @@ -a::b c() -{ -mapped_file_source abc((int) CW1A(sTemp)); -mapped_file_source abc((int) ::CW2A(sTemp)); -mapped_file_source abc((int) A::CW3A(sTemp)); -} - -boost::iostreams::mapped_file_source pdf((LPSTR) ATL::CW2A(sTemp)); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_928.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_928.cpp deleted file mode 100644 index d2878656..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_928.cpp +++ /dev/null @@ -1,12 +0,0 @@ -namespace Test1 { namespace Test { - -CodeConstructor::CodeConstructor() -{ -} - -CodeConstructor::getSomething() -{ - return 0; -} - -}} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_938.h b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_938.h deleted file mode 100644 index b13997a6..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_938.h +++ /dev/null @@ -1,2 +0,0 @@ - -void function(void); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_999.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_999.cpp deleted file mode 100644 index 2a5d64a4..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_999.cpp +++ /dev/null @@ -1,2 +0,0 @@ -template< class T, unsigned N = 0 > -constexpr unsigned long extent_v = extent< T, N >::value; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_width.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_width.cpp deleted file mode 100644 index 08f7888e..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_width.cpp +++ /dev/null @@ -1,4 +0,0 @@ -{ - // test if no split is possible - aaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbcccccccccccccccccccddddddddddddd; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/byref-2.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/byref-2.cpp deleted file mode 100644 index 0ef61cde..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/byref-2.cpp +++ /dev/null @@ -1,8 +0,0 @@ -int & aa(int & x,int & b); -// sp_before_byref_func, sp_after_byref_func, sp_before_byref, sp_after_byref, sp_before_byref, sp_after_byref -int aa(int & x,int &) -// sp_before_byref, sp_after_byref, sp_before_unnamed_byref -{ - b = aa(x,b); - c = aa(& y,&d); // sp_addr -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/byref-3.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/byref-3.cpp deleted file mode 100644 index 28da2d74..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/byref-3.cpp +++ /dev/null @@ -1,11 +0,0 @@ -void test(void) { - auto const ic = 1; - auto iv = 1; - auto const & ric = ic; - auto & riv = iv; - const auto & ric2 = ic; - if (auto const & r(ric); r > 0) { - } - if (auto & r(riv); r > 0) { - } -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/byref-4.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/byref-4.cpp deleted file mode 100644 index 0fe49c7b..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/byref-4.cpp +++ /dev/null @@ -1,5 +0,0 @@ -int&(*fn)(int, struct sockaddr&); -int& (*fn)(int, struct sockaddr&); -int &(*fn)(int, struct sockaddr&); -int & (*fn)(int, struct sockaddr&); -int & (*fn)(int, struct sockaddr&); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/byref.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/byref.cpp deleted file mode 100644 index 85669bc6..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/byref.cpp +++ /dev/null @@ -1,46 +0,0 @@ -bool foo(int & idx) -{ - if (idx < m_count) - { - idx++; - return m_bool[idx-1]; - } - return false; -} - -class Foo { -public: - Foo(); - Foo(const Foo& f); -}; - -class NS::Foo { -public: -Foo(Bar & b); -}; - -template< class T > class ListManager -{ -protected: - T head; - -public: - ListManager() - { - head.next = head.prev = &head; - } - - ListManager(const ListManager& ref) - { - head.next = head.prev = &head; - } -} - -const Foo & Foo::operator ==(Foo& me){ - ::sockaddr* ptr = (::sockaddr*)&host; - return me; -} - -MyType& MyClass::myMethode() { - const MyType& t = getSomewhere(); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/call_brace_init_lst.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/call_brace_init_lst.cpp deleted file mode 100644 index 11f92ee3..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/call_brace_init_lst.cpp +++ /dev/null @@ -1,26 +0,0 @@ -void bar() -{ - foo(42, {1, 2, 3, 4}); - foo(42, - {1, 2, 3, 4}); - - foo(42, vector{1, 2, 3, 4}); - foo(42, - vector{1, 2, 3, 4}); - foo(42, vector - {1, 2, 3, 4}); - - foo(42, vector<int>{1, 2, 3, 4}); - foo(42, - vector<int>{1, 2, 3, 4}); - foo(42, vector<int> - {1, 2, 3, 4}); - foo(42, vector - <int>{1, 2, 3, 4}); - - foo(42, decltype(something){1, 2, 3, 4}); - foo(42, - decltype(something){1, 2, 3, 4}); - foo(42, decltype(something) - {1, 2, 3, 4}); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/case-brace-remove.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/case-brace-remove.cpp deleted file mode 100644 index 421ff658..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/case-brace-remove.cpp +++ /dev/null @@ -1,22 +0,0 @@ -int SomeClass::method() -{ - switch (1) { - case 0: - { - double v; - break; - } - - case 1: - { - double v; - v = this->mat.operator()(0, 0); - break; - } - - case 2: - { - foo(); - } - } -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/cast.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/cast.cpp deleted file mode 100644 index 7b29b06f..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/cast.cpp +++ /dev/null @@ -1,6 +0,0 @@ -{ - a = ( int)5.6; - b = int (5.6 ); - c = (type<int>)t; - d = (type<int, int>)t; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/casts.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/casts.cpp deleted file mode 100644 index 0bcab0d9..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/casts.cpp +++ /dev/null @@ -1,6 +0,0 @@ -void f() -{ - uint32 x = (uint8)b; - uint32 x = (uint16)f(a, b); - uint32 x = (uint32)std::distance(a, b); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/class-addr.h b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/class-addr.h deleted file mode 100644 index ea539afa..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/class-addr.h +++ /dev/null @@ -1,11 +0,0 @@ -class C -{ -public: -A* B; -C& D; -const C& D; -static C& D; -public C& D; -E=c& D; -}; - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/class-implementation.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/class-implementation.cpp deleted file mode 100644 index 05eb69cf..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/class-implementation.cpp +++ /dev/null @@ -1,25 +0,0 @@ -template<class T> -class TestTemp -{ -public: - TestTemp(); - void SetValue( T obj_i ); - T Getalue(); -private: - T m_Obj; -}; - -template <class T> -TestTemp<T>::TestTemp() -{ -} -template <class T> -void TestTemp<T>::SetValue( T obj_i ) -{ -} - -template <class T> -T TestTemp<T>::Getalue() -{ - return m_Obj; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/class-init.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/class-init.cpp deleted file mode 100644 index af06e31a..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/class-init.cpp +++ /dev/null @@ -1,62 +0,0 @@ - -class Foo : public Bar -{ - -}; - -#define CTOR(i, _) : T(X()), \ - y() \ -{ } - -class Foo2 : -public Bar -{ - -}; - -class GLOX_API ClientBase : public Class, public OtherClass, - public ThridClass, public ForthClass - { -public: - ClientBase(const ClientBase & f){ - // do something - } - }; - -ClientBase :: ClientBase (const std::string& ns, - const std::string& ns1, - const std::string& ns2) -{ - -} - -Foo::Foo(int bar) : someVar(bar), othervar(0) -{ -} - -Foo::Foo(int bar) : someVar(bar), - othervar(0) -{ -} - -Foo::Foo(int bar) -: someVar(bar), othervar(0) -{ -} - -Foo::Foo(int bar) : -someVar(bar), othervar(0) -{ -} - -Foo::Foo(int bar) : -someVar(bar), - othervar(0) -{ -} - -Foo::Foo(int bar) -: someVar(bar), - othervar(0) -{ -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/class.h b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/class.h deleted file mode 100644 index 0048604d..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/class.h +++ /dev/null @@ -1,52 +0,0 @@ -#ifndef _FOO_BAR_H_INCLUDED_ -#define _FOO_BAR_H_INCLUDED_ - -class CFooBarDlg : public CDialog -{ -// Construction -public: - CFooBarDlg(CFooBar *pDataMan, - CWnd* pParent = NULL ); - virtual ~CFooBarDlg(); - - void Initialize( BYTE nDelay=100 ); - - UINT GetCount() { return (m_nCount); } - - void SetCount(int count=1) - { - if ((count > 0) && (count < MAX_COUNT)) - { - m_nCount = count; - } - }; - - // Dialog Data - //{{AFX_DATA(CATCSMgrDlg) - enum { IDD = IDD_ATCS_MGR_DLG }; - //}}AFX_DATA - -protected: - int m_nCount; - -// Overrides - // ClassWizard generated virtual function overrides - //{{AFX_VIRTUAL(CATCSMgrDlg) -protected: - virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support - //}}AFX_VIRTUAL - -// Implementation - - // Generated message map functions - //{{AFX_MSG(CATCSMgrDlg) - virtual BOOL OnInitDialog(); - afx_msg void OnTimer(UINT nIDEvent); - afx_msg void OnBtnSendFooBar(); - afx_msg void OnSelchangeFooBarCombo(); - //}}AFX_MSG - DECLARE_MESSAGE_MAP() -}; - -#endif /* _FOO_BAR_H_INCLUDED_ */ - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/cmt-cpp-cont.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/cmt-cpp-cont.cpp deleted file mode 100644 index 8885e36b..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/cmt-cpp-cont.cpp +++ /dev/null @@ -1,17 +0,0 @@ -#include "foo.h" - -// -// plshade z xmin xmax ymin ymax \ -// sh_min sh_max sh_cmap sh_color sh_width \ -// min_col min_wid max_col max_wid \ -rect [[pltr x y] | NULL ] [wrap] -//-------------------------------------------------------------------------- - -void foo() -{ - // plshade z xmin xmax ymin ymax \ - // sh_min sh_max sh_cmap sh_color sh_width \ - // min_col min_wid max_col max_wid \ - rect [[pltr x y] | NULL ] [wrap] - //-------------------------------------------------------------------------- -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/cmt-reflow.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/cmt-reflow.cpp deleted file mode 100644 index adb5a6ab..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/cmt-reflow.cpp +++ /dev/null @@ -1,43 +0,0 @@ - -typedef enum stuff -{ -Value1 = 0x00000400 , // Just a comment for the value -Value2 = 0x00000800 , // A much longer comment that needs to be truncated to fit within a set character width. In this case, its 80 characters so two truncates are required. -} JustAnEnum; - -// this is another comment that is meant to exceed the code width so that it can be wrapped -// and combined to see how that works. - -/* this is another comment that is meant to exceed the code width so that it can be wrapped - * and combined to see how that works. */ - -/* Line A */ - -/* Line 1 */ -/* line 2 */ -/* line 3 */ -/* line 4 */ - -int cnt; /* This is a counter variable with a long comment. this should cause the comment to be wrapped. */ - -/** - * Multi-line comment - */ -void foo(void) -{ -/** - * Multi-line comment - */ - int idx; - /** - * Multi-line comment - */ -} - -/* Start Change #95 */ -/*INITIALIZE Variable(contExtnElgInd); /# Change #61 #/ */ -/*/# Start Change #35 #/ */ - -/** - * OneBigWordThatCannotBeSplitYetExceedsTheCommentWidthSettingSoThatWrappingShouldBeAttempted. - */ diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/cmt_backslash_eol.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/cmt_backslash_eol.cpp deleted file mode 100644 index e56aec25..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/cmt_backslash_eol.cpp +++ /dev/null @@ -1,4 +0,0 @@ -foo(); -// test \ -blah(); -bar(); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/cmt_convert_tab_to_spaces.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/cmt_convert_tab_to_spaces.cpp deleted file mode 100644 index 32ff32d3..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/cmt_convert_tab_to_spaces.cpp +++ /dev/null @@ -1,5 +0,0 @@ -void f() { - /* Comment with <TAB> here - * and here again - */ -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/cmt_indent.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/cmt_indent.cpp deleted file mode 100644 index 542a0fd2..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/cmt_indent.cpp +++ /dev/null @@ -1,32 +0,0 @@ -namespace { - - /* If we're in the middle of the original line, copy the string - only up to the cursor position into buf, so tab completion - will result in buf's containing only the tab-completed - path/filename. */ - - class Test { - - Test() {} - ~Test() {} - - /** Call this method to - run the test - - \param n test number - \returns the test result - */ - bool Run(int n); - - /** Call this method to - stop the test - - \param n test number - \returns the test result - */ - bool Run(int n); - - }; - -} - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/cmt_indent_pp.h b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/cmt_indent_pp.h deleted file mode 100644 index 25253f09..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/cmt_indent_pp.h +++ /dev/null @@ -1,8 +0,0 @@ -class MyClass : public BaseClass -{ - //@{ BaseClass interface -#if VERY_LONG_AND_COMPLICATED_DEFINE - void foo(); -#endif // VERY_LONG_AND_COMPLICATED_DEFINE - //@} -};
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/cmt_insert.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/cmt_insert.cpp deleted file mode 100644 index a5ae87d5..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/cmt_insert.cpp +++ /dev/null @@ -1,45 +0,0 @@ -#include <string> - -class CFoo -{ -CFoo(int arg); -CFoo(char arg) { -} -~CFoo(); -int foo1(int arg); -int foo2(); -int foo3(char ch, int xx) -{ -} -}; - -CFoo::CFoo(int arg) { -} - -CFoo::~CFoo() { -} - -int CFoo::foo1(int arg, int arg2) -{ -} - -int CFoo::foo2() -{ -} - -int CFoo::operator +() -{ -} - -map<string, int> func() -{ - // some codes -} - -int some_func(void) -{ -} - -class some_class_declaration; - -int some_func_declaration(); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/cmt_right.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/cmt_right.cpp deleted file mode 100644 index 121ea044..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/cmt_right.cpp +++ /dev/null @@ -1,26 +0,0 @@ -class X -{ - struct Zone - { - // int a; - // int b; - int c; - int d; - double e; - inline Zone(int _c) : c(_c) - { } // constructor for zone search - - inline Zone( - //int _a, - //int _b, - int _c, - int _d, double _e) : - //a(_a), - //b(_b), - c(_c), - d(_d), - e(_e) - { } - }; -}; - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/cmt_trailing_single_line_c_to_cpp.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/cmt_trailing_single_line_c_to_cpp.cpp deleted file mode 100644 index 1f3cff49..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/cmt_trailing_single_line_c_to_cpp.cpp +++ /dev/null @@ -1,34 +0,0 @@ -int main(int argc, char **argv){ - - // C-style comments on same line with actual code - // ---------------------------------------------- - - int a = 5; /* Trailing, single-line C-style comment */ - - int b = /* Single-line C-style comment in the middle */ 5; - - /* Single-line C-style comment at beginning of line */ int c = 5; - - int d = 5; /* Trailing - Multi-line - C-style - comment */ - -# define A_MACRO \ - do { \ - if (true) { \ - int e = 5; /* Trailing single-line C-style comment inside macro*/ \ - } \ - } while (0) - - - // C-style comments with no actual code on the same line - // ----------------------------------------------------- - - /* Single-line C-style comment. */ - - /* Multi-line - * C-style - * comment. - * */ -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/comma.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/comma.cpp deleted file mode 100644 index e101145a..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/comma.cpp +++ /dev/null @@ -1,2 +0,0 @@ -a( , 1); -typedef SLIST_HEAD( , foo) foo_list_t; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/comment-align-multiline.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/comment-align-multiline.cpp deleted file mode 100644 index 73dab5ec..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/comment-align-multiline.cpp +++ /dev/null @@ -1,13 +0,0 @@ -#include <stdio.h> - -void function() -{ - printf( "Hello World\n" ); - /* - output_comment_multi_simple to test replacement of \r\n to \n keep the - following \r:
- //test - /// Another comment -//end test -*/ -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/comment-align.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/comment-align.cpp deleted file mode 100644 index 403bf773..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/comment-align.cpp +++ /dev/null @@ -1,34 +0,0 @@ -template <class T> -inline void -x3(T & a, T & b, T & c) -{ - T temp; - if (b < a) - { - if (c < a) - { // b , c < a - if (b < c) - { // b < c < a - temp = a; - a = b; - b = c; - c = temp; - } - else - { // c <=b < a - std::swap(c, a); - } - } - else - { // b < a <=c - // second line of comment - std::swap(a, b); - } - } - 0; - 0; - 0; - if (1) // always - do_something(); -} - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/const_throw.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/const_throw.cpp deleted file mode 100644 index f0d1773d..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/const_throw.cpp +++ /dev/null @@ -1,13 +0,0 @@ -void GetFoo(void) -const - { return (m_Foo); } - -int GetFoo(void) - throw (std::bad_alloc) - { return (m_Foo); } - -class foo{ - void bar(void) - const; -}; - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/constr_colon.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/constr_colon.cpp deleted file mode 100644 index 6c0706e5..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/constr_colon.cpp +++ /dev/null @@ -1,9 +0,0 @@ -class foo -{ - void bar_c(int t, int u) - : t(222) - , u(88) - { - // code - } -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/constructor.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/constructor.cpp deleted file mode 100644 index 46abf36a..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/constructor.cpp +++ /dev/null @@ -1,31 +0,0 @@ - -IMPLEMENT_DYNAMIC(CPropertiesDlg, CDialog) -CPropertiesDlg::CPropertiesDlg( CPtcMsgSimControlModule *pcmPtcMsg, - CWnd* pParent /*=NULL*/): - CDialog( CPropertiesDlg::IDD, pParent ), - m_pspRouter( pcmPtcMsg ), - m_pspScm( pcmPtcMsg ) -{ - m_pcmPtcMsg = pcmPtcMsg; -} - -CPropertiesDlg::~CPropertiesDlg() -{ -} - -void CPropertiesDlg::DoDataExchange(CDataExchange* pDX) -{ - CDialog::DoDataExchange(pDX); -} - -CFooBar::CFooBar(CWnd* pParent /*=NULL*/) - : CDialog(CFooBar::IDD, pParent), - m_parent(pParent) -{ - //{{AFX_DATA_INIT(CRouterBrowser) - //}}AFX_DATA_INIT - - m_nFoo = 0; - m_nBar = 0; -} - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/conversion_operator.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/conversion_operator.cpp deleted file mode 100644 index 27b52dac..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/conversion_operator.cpp +++ /dev/null @@ -1,5 +0,0 @@ -template< class T > -operator T*() const -{ - return 0; -}
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/cout.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/cout.cpp deleted file mode 100644 index c3c9366d..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/cout.cpp +++ /dev/null @@ -1,17 +0,0 @@ -void foo() -{ - cout.setf(ios::showpoint); - cout.setf(ios::floatfield,ios::fixed); - - what.the.hell.cout << "hello" - << "world!" - << "This" - << "is a" - << "test!"; - - *aaaaaa = (bbbbb(cccccPtr->ddd) & YYYYYYYYYYYYYYYYYYYYYYYY) | - ((bbbbb(cccccPtr->nnnnnnnn) << ZZZZZZZZZZZZZZZZZZZZZZZZZZZ) - & WWWWWWWWWWWWWWWWWWWWWWWWWW) | ((bbbbb(cccccPtr->hhhhhhhhhhhhhh) - << FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) - & EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/cpp17.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/cpp17.cpp deleted file mode 100644 index ba463284..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/cpp17.cpp +++ /dev/null @@ -1,8 +0,0 @@ -bool CompareGenomeByFeatureResults::clickOnLink(std::string const& inLink) { - auto const[sequence, type, firstPosition, lastPosition] = parseLink(inLink); - if (sequence.empty()) { - return true; - } - return showFeature(statistics.nameDocumentA, type, firstPosition, lastPosition); -} - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/cpp_move.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/cpp_move.cpp deleted file mode 100644 index cec9beb8..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/cpp_move.cpp +++ /dev/null @@ -1,2 +0,0 @@ - -void Test(X&& val1, Y* val2); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/ctor-var.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/ctor-var.cpp deleted file mode 100644 index 2551d8bd..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/ctor-var.cpp +++ /dev/null @@ -1,4 +0,0 @@ -int foo() -{ - TextBody textbody(GetBody().GetText()); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/custom-open-2.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/custom-open-2.cpp deleted file mode 100644 index 422cb1bf..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/custom-open-2.cpp +++ /dev/null @@ -1,46 +0,0 @@ - - -BEGIN_MESSAGE_MAP(CUSB2_camera_developementDlg, CDialog) -ON_COMMAND(IDC_ESCAPE, On_Escape) -ON_COMMAND(IDC_8_BIT, On_8_Bit) -ON_COMMAND(IDC_14_BIT, On_14_Bit) -ON_COMMAND(IDC_ACQUIRE, On_Acquire) -ON_COMMAND(IDC_SAVE_COLUMN_AVERAGES, On_Save_Column_Averages) -ON_COMMAND(IDC_SAVE_ROW_AVERAGES, On_Save_Row_Averages) -ON_WM_PAINT() -ON_WM_QUERYDRAGICON() -ON_WM_CTLCOLOR() -END_MESSAGE_MAP() - -namespace one -{ - namespace two - { - int Func(int a, - int b) - { - return a + b; - } - } -} - -using namespace one::two; - -void Func2(int c, - int d) -{ -} - -int main() -{ - int a; - - switch (a) - { - case 0: - Func2(1, Func(1, 2)); - Func2(1, one::two::Func(1, 2)); - break; - } -} - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/custom-open.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/custom-open.cpp deleted file mode 100644 index 1544fd74..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/custom-open.cpp +++ /dev/null @@ -1,26 +0,0 @@ - -void className::set(const objectName& obj) -{ - statement1(); -MACRO_BEGIN_STUFF(param) -DOSTUFF(params) -MACRO_ELSE_STUFF() -DOMORESTUFF(moreparams) -junk = 1; -MACRO2_BEGIN_STUFF -junk += 3; -MACRO2_ELSE_STUFF -junk += 4; -MACRO2_END_STUFF -DOLASTSTUFF(lastparams) -MACRO_END_STUFF() - statement2(); -} - - -MACRO2_BEGIN_STUFF - // comment -MACRO2_ELSE_STUFF - /* Comment */ -MACRO2_END_STUFF - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/define-indentation.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/define-indentation.cpp deleted file mode 100644 index 69e924ee..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/define-indentation.cpp +++ /dev/null @@ -1,2 +0,0 @@ - #define EXTRACTX360ACHIEVEMENT X360Achievement_INTERNAL& mapping = ExtractMonoObjectData<X360Achievement_INTERNAL>(self); /*huh?*/ \
- const XACHIEVEMENT_DETAILS* achievement = xenon::Achievements::GetDetails(mapping.m_index);
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/delete.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/delete.cpp deleted file mode 100644 index fff916e3..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/delete.cpp +++ /dev/null @@ -1,10 +0,0 @@ - -void x(int **d) { -delete *d; -} - -void x(int& d) { -delete &d; -} - - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/deref.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/deref.cpp deleted file mode 100644 index abfb70c7..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/deref.cpp +++ /dev/null @@ -1,15 +0,0 @@ - -myNewValue = something[arrayNumber] *someOtherValue; -myNewValue = multidimentional[arrayNumber][anotherNumber] *someOtherValue; -myNewValue = noArrayVariableWorksFine * someOtherValue; - - -int func(int * thingy, -volatile int *arrayThingy[NUMBER]); - -int func(int * thingy, -volatile int *arrayThingy[NUMBER][anotherNumber]); - -int func(int * thingy, -volatile int *noArrayThingyWorksFine); - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/digraph.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/digraph.cpp deleted file mode 100644 index 57cfddf5..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/digraph.cpp +++ /dev/null @@ -1,5 +0,0 @@ -x = reinterpret_cast< ::Symbol*>();
-
-int b() {
- char f <: 32 :> = <% 0 %>;
-}
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/disable_macro.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/disable_macro.cpp deleted file mode 100644 index cb9fc307..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/disable_macro.cpp +++ /dev/null @@ -1,24 +0,0 @@ -#include <stdio.h> - -// this macro should NOT be modified ... -#define CHK(...) \ - do \ - { \ - a+=1; \ - a=b=0; \ - c<<1; \ - } while (0+0) - - -// ... whereas this should be indented and formatted -int main() -{ - int a,b,c=0; - if (a<c) - { - c+=1; - } - a=b=0; - c<<1; - CHK; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/dont-detab-strings.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/dont-detab-strings.cpp deleted file mode 100644 index fd622c3c..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/dont-detab-strings.cpp +++ /dev/null @@ -1,6 +0,0 @@ -void f() {
- auto x = " test\t ... ???";
-// *INDENT-OFF*
- auto x = " test\t ... ???";
-// *INDENT-ON*
-}
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/dont-process-defines.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/dont-process-defines.cpp deleted file mode 100644 index a0a58f85..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/dont-process-defines.cpp +++ /dev/null @@ -1,6 +0,0 @@ -#define inline_2 __forceinline
-#define inline(i) inline_##i
-#define foo(x) inline(2) x()
-#define PLD(reg,offset) pld [reg, offset] \
- pld [reg, offset] \
- pld [reg, offset]
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/eat_blanks_after_codewidth.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/eat_blanks_after_codewidth.cpp deleted file mode 100644 index 8753aee2..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/eat_blanks_after_codewidth.cpp +++ /dev/null @@ -1,7 +0,0 @@ -class A
-{
- void func1(){
- // comment
- }
- void func2(){auto result = 1 + 2 + 3 + 4;}
-};
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/eigen.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/eigen.cpp deleted file mode 100644 index 4e228311..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/eigen.cpp +++ /dev/null @@ -1,7 +0,0 @@ -void foo() -{ - transform << 0, 1, 0, 0, - 1, 0, 0, 0, - 0, 0, 1, 0, - 0, 0, 0, 1; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/enum.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/enum.cpp deleted file mode 100644 index fd85660b..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/enum.cpp +++ /dev/null @@ -1,207 +0,0 @@ - enum - class - angle_state_e - : - unsigned -int { - NONE=0, OPEN=1, //'<' found -CLOSE = 2 , //'>' found -}; - -// align.cpp -enum class comment_align_e : unsigned int -{ - REGULAR, - BRACE, - ENDIF, -}; - -// chunk.h -enum class E_Scope : unsigned int -{ - ALL, /**< search in all kind of chunks */ - PREPROC, /**< search only in preprocessor chunks */ -}; - -// chunk.cpp -enum class E_Direction : unsigned int -{ - FORWARD, - BACKWARD -}; - -// combine.cpp -{ - enum class angle_state_e : unsigned int - { - NONE = 0, - OPEN = 1, // '<' found - CLOSE = 2, // '>' found - }; -} - -// indent.cpp -enum class align_mode_e : unsigned int -{ - SHIFT, /* shift relative to the current column */ - KEEP_ABS, /* try to keep the original absolute column */ - KEEP_REL, /* try to keep the original gap */ -}; - -// align_stack.h -{ - enum StarStyle - { - SS_IGNORE, // don't look for prev stars - SS_INCLUDE, // include prev * before add - SS_DANGLE // include prev * after add - }; -} - -// log_levels.h -enum log_sev_t -{ - LSYS = 0, - LERR = 1, - LWARN = 2, - LNOTE = 3, - LINFO = 4, - LDATA = 5, - - LFILELIST = 8, /* Files in the file list file */ - LLINEENDS = 9, /* Show which line endings are used */ - LCASTS = 10, /* align casts */ - LALBR = 11, /* align braces */ - LALTD = 12, /* Align Typedef */ - LALPP = 13, /* align #define */ - LALPROTO = 14, /* align prototype */ - LALNLC = 15, /* align backslash-newline */ - LALTC = 16, /* align trailing comments */ - LALADD = 17, /* align add */ - LALASS = 18, /* align assign */ - LFVD = 19, /* fix_var_def */ - LFVD2 = 20, /* fix_var_def-2 */ - LINDENT = 21, /* indent_text */ - LINDENT2 = 22, /* indent_text tab level */ - LINDPSE = 23, /* indent_text stack */ - LINDPC = 24, /* indent play-by-play */ - LNEWLINE = 25, /* newlines */ - LPF = 26, /* Parse Frame */ - LSTMT = 27, /* Marking statements/expressions */ - LTOK = 28, /* Tokenize */ - LALRC = 29, /* align right comment */ - LCMTIND = 30, /* Comment Indent */ - LINDLINE = 31, /* indent line */ - LSIB = 32, /* Scan IB */ - LRETURN = 33, /* add/remove parens for return */ - LBRDEL = 34, /* brace removal */ - LFCN = 35, /* function detection */ - LFCNP = 36, /* function parameters */ - LPCU = 37, /* parse cleanup */ - LDYNKW = 38, /* dynamic keywords */ - LOUTIND = 39, /* output indent */ - LBCSAFTER = 40, /* Brace cleanup stack - after each token */ - LBCSPOP = 41, /* Brace cleanup stack - log pops */ - LBCSPUSH = 42, /* Brace cleanup stack - log push */ - LBCSSWAP = 43, /* Brace cleanup stack - log swaps */ - LFTOR = 44, /* Class Ctor or Dtor */ - LAS = 45, /* align_stack */ - LPPIS = 46, /* Preprocessor Indent and Space */ - LTYPEDEF = 47, /* Typedef and function types */ - LVARDEF = 48, /* Variable def marking */ - LDEFVAL = 49, /* define values */ - LPVSEMI = 50, /* Pawn: virtual semicolons */ - LPFUNC = 51, /* Pawn: function recognition */ - LSPLIT = 52, /* Line splitting */ - LFTYPE = 53, /* Function type detection */ - LTEMPL = 54, /* Template detection */ - LPARADD = 55, /* adding parens in if/while */ - LPARADD2 = 56, /* adding parens in if/while - details */ - LBLANKD = 57, /* blank line details */ - LTEMPFUNC = 58, /* Template function detection */ - LSCANSEMI = 59, /* scan semi colon removal */ - LDELSEMI = 60, /* Removing semicolons */ - LFPARAM = 61, /* Testing for a full parameter */ - LNL1LINE = 62, /* NL check for 1 liners */ - LPFCHK = 63, /* Parse Frame check fcn call */ - LAVDB = 64, /* align var def braces */ - LSORT = 65, /* Sorting */ - LSPACE = 66, /* Space */ - LALIGN = 67, /* align */ - LALAGAIN = 68, /* align again */ - LOPERATOR = 69, /* operator */ - LASFCP = 70, /* Align Same Function Call Params */ - LINDLINED = 71, /* indent line details */ - LBCTRL = 72, /* beautifier control */ - LRMRETURN = 73, /* remove 'return;' */ - LPPIF = 74, /* #if/#else/#endif pair processing */ - LMCB = 75, /* mod_case_brace */ - LBRCH = 76, /* if brace chain */ - LFCNR = 77, /* function return type */ - LOCCLASS = 78, /* OC Class stuff */ - LOCMSG = 79, /* OC Message stuff */ - LBLANK = 80, /* Blank Lines */ - LOBJCWORD = 81, /* Convert keyword to CT_WORD in certain circumstances */ - LCHANGE = 82, /* something changed */ - LCONTTEXT = 83, /* comment cont_text set */ - LANNOT = 84, /* Java annotation */ - LOCBLK = 85, /* OC Block stuff */ - LFLPAREN = 86, /* Flag paren */ - LOCMSGD = 87, /* OC Message declaration */ - LINDENTAG = 88, /* indent again */ - LNFD = 89, /* newline-function-def */ - LJDBI = 90, /* Java Double Brace Init */ - LSETPAR = 91, /* Chunk::SetParentType() */ - LSETTYP = 92, /* Chunk::SetType() */ - LSETFLG = 93, /* set_chunk_flags() */ - LNLFUNCT = 94, /* newlines before function */ - LCHUNK = 95, /* Add or del chunk */ - LGUY98 = 98, /* for guy-test */ - LGUY = 99, /* for guy-test */ -}; - -// options.h -enum argtype_e -{ - AT_BOOL, /**< true / false */ - AT_IARF, /**< Ignore / Add / Remove / Force */ - AT_NUM, /**< Number */ - AT_LINE, /**< Line Endings */ - AT_POS, /**< start/end or Trail/Lead */ - AT_STRING, /**< string value */ - AT_UNUM, /**< unsigned Number */ -}; - -enum argval_t -{ - AV_IGNORE = 0, - AV_ADD = 1, - AV_REMOVE = 2, - AV_FORCE = 3, /**< remove + add */ - AV_NOT_DEFINED = 4 /* to be used with QT, SIGNAL SLOT macros */ -}; - -enum lineends_e -{ - LE_LF, /* "\n" */ - LE_CRLF, /* "\r\n" */ - LE_CR, /* "\r" */ - - LE_AUTO, /* keep last */ -}; - -enum tokenpos_e -{ - TP_IGNORE = 0, /* don't change it */ - TP_BREAK = 1, /* add a newline before or after the if not present */ - TP_FORCE = 2, /* force a newline on one side and not the other */ - TP_LEAD = 4, /* at the start of a line or leading if wrapped line */ - TP_LEAD_BREAK = (TP_LEAD | TP_BREAK), - TP_LEAD_FORCE = (TP_LEAD | TP_FORCE), - TP_TRAIL = 8, /* at the end of a line or trailing if wrapped line */ - TP_TRAIL_BREAK = (TP_TRAIL | TP_BREAK), - TP_TRAIL_FORCE = (TP_TRAIL | TP_FORCE), - TP_JOIN = 16, /* remove newlines on both sides */ -}; - - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/enum_class.h b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/enum_class.h deleted file mode 100644 index 2ba9933f..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/enum_class.h +++ /dev/null @@ -1,21 +0,0 @@ -enum class A -{ -a, -b -} - -enum struct D -{ -a, -b -} - -class B { -private: - int x; -} -enum C -{ -a, -b -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/enum_comma.h b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/enum_comma.h deleted file mode 100644 index 42ce2c53..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/enum_comma.h +++ /dev/null @@ -1,8 +0,0 @@ - -void function(int a, int b, int c); - -enum Test { - A, B - , C, - D, E -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/enum_comment_wrap.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/enum_comment_wrap.cpp deleted file mode 100644 index 736e6718..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/enum_comment_wrap.cpp +++ /dev/null @@ -1,7 +0,0 @@ -enum class Eee -{ - Foo, - AnotherFoo, // comment - Bar, - DifferentBar -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/enum_shr.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/enum_shr.cpp deleted file mode 100644 index 8bde6273..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/enum_shr.cpp +++ /dev/null @@ -1,7 +0,0 @@ -enum MyEnum { - kOne = 0, - kTwo = 1 << 0, - kThree = 1 << 1, - kFour = 1 << 2 -}; - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/exception.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/exception.cpp deleted file mode 100644 index 7f29676e..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/exception.cpp +++ /dev/null @@ -1,33 +0,0 @@ - #include <iostream> - - -void foo() -{ - char *buf; - try { - buf = new unsigned char[1024]; - if( buf == 0 ) - throw "Out of memory"; - } - catch( char * str ) { - cout << "Exception: " << str << '\n'; - } -} - -void bar() -{ - char *buf; - - try - { - buf = new unsigned char[1024]; - if( buf == 0 ) - throw "Out of memory"; - } - catch( char * str ) - { - cout << "Exception: " << str << '\n'; - } -} - - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/extern_c.h b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/extern_c.h deleted file mode 100644 index e4943e50..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/extern_c.h +++ /dev/null @@ -1,33 +0,0 @@ -#ifndef cRecordMarking_HEADER -#define cRecordMarking_HEADER - -#include "DIS/cPduSnapshot.h" - -typedef void* disConnectionH; - -#ifdef __cplusplus -extern "C" -#endif -{ - - disConnectionH createDisConnection(); - - void setAddressAndPort_DisConnect(disConnectionH record, const char *addr); - - /* Open network connection */ - int open_DisConnect(disConnectionH record); - - /* Close network connection */ - void close_DisConnect(disConnectionH record); - - /* Send one pdu */ - int sendPdu_DisConnect(disConnectionH record, pduSnapshotH pdu); - - /* Receive one pdu */ - int recvPdu_DisConnect(disConnectionH record, pduSnapshotH pdu); - - void FreeDisConnection(disConnectionH connection); - -} -#endif - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/extern_func.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/extern_func.cpp deleted file mode 100644 index 24e90a37..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/extern_func.cpp +++ /dev/null @@ -1,7 +0,0 @@ -void foo(); -// hello -extern "C" -BAR_EXPORT -void bar() -{ -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/first_len_minimum.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/first_len_minimum.cpp deleted file mode 100644 index 0a729f01..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/first_len_minimum.cpp +++ /dev/null @@ -1,4 +0,0 @@ -/* - a - b - */ diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/fix_for_relational_operators.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/fix_for_relational_operators.cpp deleted file mode 100644 index 0014b110..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/fix_for_relational_operators.cpp +++ /dev/null @@ -1,8 +0,0 @@ -void foo() -{ -while (a < b && c > d) -i++; - -for ( ;a < b && c > d; ) -i++; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/for_auto.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/for_auto.cpp deleted file mode 100644 index c62548f8..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/for_auto.cpp +++ /dev/null @@ -1,16 +0,0 @@ -void foo() -{ - for (auto const& item : list) - bar(item); - for (const auto& item : list) - bar(item); - for (auto& item : list) - bar(item); - - auto* var = bar(); - auto& var = bar(); - auto var = bar(); - auto const* var = bar(); - auto const& var = bar(); - auto const var = bar(); -}
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/for_long.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/for_long.cpp deleted file mode 100644 index 7685f614..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/for_long.cpp +++ /dev/null @@ -1,8 +0,0 @@ -void foo() -{ -for(std::map<std::string, std::string>::iterator it=m_stat_http_conn_total.m_stat_response_codes.begin(); it!=m_stat_http_conn_total.m_stat_response_codes.end(); ++i) -{ -bar(it); -} -} - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/for_loop_head.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/for_loop_head.cpp deleted file mode 100644 index cbfacf62..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/for_loop_head.cpp +++ /dev/null @@ -1,10 +0,0 @@ -for(int i = 1, - j = 2, - k = 3, - ; (i != 1 - && j != 2 - && k != 2) - ; i++, j++, k++ ) -{ -} - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/foreach.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/foreach.cpp deleted file mode 100644 index cfbe7963..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/foreach.cpp +++ /dev/null @@ -1,4 +0,0 @@ -void foo()
-{
- for_each(it.begin(), it.end(), func);
-}
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/friends.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/friends.cpp deleted file mode 100644 index 1b073b45..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/friends.cpp +++ /dev/null @@ -1,6 +0,0 @@ -class foo -{ -friend void bar(); -friend void none(); -template <typename T> friend vector<T> vec(); -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/func-param-wrap-oc.mm b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/func-param-wrap-oc.mm deleted file mode 100644 index 16f98ce9..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/func-param-wrap-oc.mm +++ /dev/null @@ -1,5 +0,0 @@ - if(progress <= 0)
- {
- [[NSBezierPath bezierPathWithOvalInRect:NSMakeRect(NSMinX(pieRect)+stroke,NSMinY(pieRect)+stroke,
- NSWidth(pieRect)-2*stroke,NSHeight(pieRect)-2*stroke)] fill];
- }
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/func_call.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/func_call.cpp deleted file mode 100644 index 6467560f..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/func_call.cpp +++ /dev/null @@ -1,14 +0,0 @@ -void f() -{ - auto x = func1( - arg, - arg); -} - -void f() -{ - return func2( - arg, - arg); -} - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/func_call_chain.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/func_call_chain.cpp deleted file mode 100644 index 7e2f3931..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/func_call_chain.cpp +++ /dev/null @@ -1,7 +0,0 @@ -void f() -{ - m_complete.back().m_replicas.clear(); - - m_complete.back().m_replicas.push_back(serverId); - m_pending.front().m_replicas.erase(r); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/func_class.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/func_class.cpp deleted file mode 100644 index 64a11509..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/func_class.cpp +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Reverse the bytes in 32-bit chunks. - */ -void MD5::reverse_u32(UINT8 *buf, int n_u32) -{ - UINT8 tmp; -} - -MD5::MD5() -{ - m_buf[0] = 0x01020304; -} - -class AlignStack -{ -public: - bool m_skip_first; - AlignStack() - { - } - ~ AlignStack() - { - } - void End() - { - } -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/func_class.h b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/func_class.h deleted file mode 100644 index 168b0b3d..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/func_class.h +++ /dev/null @@ -1,16 +0,0 @@ -void MD5::reverse_u32(UINT8 *buf, int n_u32); - -MD5::MD5(); - -class AlignStack -{ -public: - bool m_skip_first; - - AlignStack(); - - - ~ AlignStack(); - - void End(); -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/func_param.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/func_param.cpp deleted file mode 100644 index 24b187c1..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/func_param.cpp +++ /dev/null @@ -1,18 +0,0 @@ -typedef short (* hello1) (char coolParam, - ushort *, - unsigned int anotherone); - -short (* hello2)(char coolParam, - ulong *, - uchar, - unsigned int anotherone); - -short hello3 (char coolParam, - ushort *, - unsigned int anotherone); - -void x (custom_t * e, void (*funcptr) ); -void x (custom_t * e, void (*funcptr)[] ); -void x (custom_t * e, void (*funcptr)(int, int) ); -void x (custom_t * e, void (*funcptr)(int, int)[] ); - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/func_param_indent_leading_comma.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/func_param_indent_leading_comma.cpp deleted file mode 100644 index 8c62d49b..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/func_param_indent_leading_comma.cpp +++ /dev/null @@ -1,7 +0,0 @@ -uint32_t foo ( uint8_t param1 - , some_datatype param2 - , datatype param3 - , another_datatype *param4 - , uint16_t param5 - , uint32_t *param6 - );
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/function-def.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/function-def.cpp deleted file mode 100644 index 7f5e05c4..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/function-def.cpp +++ /dev/null @@ -1,74 +0,0 @@ -int &Function() -{ -static int x; -return (x); -} - -void foo1(int param1, int param2, char *param2); - -void foo2(int param1, - int param2, - char *param2); - -void foo3(int param1, - int param2, // comment - char *param2 - ); - -struct whoopee *foo4(int param1, int param2, char *param2 /* comment */); - -const struct snickers * -foo5(int param1, int param2, char *param2); - - -void foo(int param1, int param2, char *param2) -{ - printf("boo!\n"); -} - -int classname::method(); - -int classname::method() -{ - foo(); -} - -int -classname::method2(); - -int -classname::method2() -{ - foo2(); -} - -const int& className::method1(void) const -{ - // stuff -} - -const longtypename& className::method2(void) const -{ - // stuff -} - -int &foo(); - -int &foo() -{ - list_for_each(a,b) { - bar(a); - } - return nuts; -} - -void Foo::bar() {} - -Foo::Foo() {} - -Foo::~Foo() {} - -void func(void) -{ -Directory dir("arg"); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/functype_param.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/functype_param.cpp deleted file mode 100644 index 5d2ff4fe..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/functype_param.cpp +++ /dev/null @@ -1,2 +0,0 @@ -void foo(int * (*f)(int)); -void foo(int & (*f)(int)); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/gcc_case_ellipsis.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/gcc_case_ellipsis.cpp deleted file mode 100644 index 1b0b4088..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/gcc_case_ellipsis.cpp +++ /dev/null @@ -1,15 +0,0 @@ -void f(int i) -{ - switch(i) - { - case 1 ... 2: - { - break; - } - case 3 ... 5: - break; - - default: - break - } -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/gh555.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/gh555.cpp deleted file mode 100644 index feb059d3..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/gh555.cpp +++ /dev/null @@ -1,8 +0,0 @@ -class \u005FClass // underscore character -{ -}; - -int main() -{ - string IdentifierContainingTwoUCNCharacters\u1234\U00001234 = "\u005FClass"; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/goto.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/goto.cpp deleted file mode 100644 index 0f50d182..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/goto.cpp +++ /dev/null @@ -1,11 +0,0 @@ -#define x struct z
-#define max(a, b) ((a) > (b) ? (a) : (b))
-
-void f()
-{
- goto p;
-p:
- goto q;
-q:
- goto p;
-}
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i1082.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i1082.cpp deleted file mode 100644 index 06680c0e..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i1082.cpp +++ /dev/null @@ -1,4 +0,0 @@ -// there should be no break ups caused by suffix or separator -auto n2 = 1'000; -auto m1 = 0b0010'1010LL; -auto m2 = 0xfa'afUll;
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i1165.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i1165.cpp deleted file mode 100644 index c3123b59..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i1165.cpp +++ /dev/null @@ -1,14 +0,0 @@ -#include <functional> - -int main() -{ - typedef std::function<void ()> C; - C callback = - [] () - { - C f([]() - { - int i; - }); - }; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i1181.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i1181.cpp deleted file mode 100644 index 1a959d34..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i1181.cpp +++ /dev/null @@ -1,6 +0,0 @@ -int main() -{ - if(true) {return 1;} - else if(true) {return 1;} - else {return 1;} -}
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i1207.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i1207.cpp deleted file mode 100644 index 0c8e1c92..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i1207.cpp +++ /dev/null @@ -1,10 +0,0 @@ -#include <vector> -std::vector<int> f() -{; -return std::vector<int>{1}; -}; - -int main() -{; - return f()[0];;;;; -};
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i1218.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i1218.cpp deleted file mode 100644 index d4d05106..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i1218.cpp +++ /dev/null @@ -1,8 +0,0 @@ -// Do not add a new line because of the vbrace close that is above col 25 -// after return 1; -int main() -{ - if(1) - return 1; - return 0; -}
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i1464.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i1464.cpp deleted file mode 100644 index 179ecd5e..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i1464.cpp +++ /dev/null @@ -1,3 +0,0 @@ -auto p = std::make_pair(r * cos(a), r * sin(a)); - -auto p2 = std::make_pari(r * 0x0000'1111, 0x0000'1111 * r); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i1466.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i1466.cpp deleted file mode 100644 index fe704d2a..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i1466.cpp +++ /dev/null @@ -1,6 +0,0 @@ -A a = {this->r * cos(b)};
-
-B b1 = {0x0000'1111 * this->r};
-B b3 = {this->r * 0x0000'1111};
-B b2 = {0x0000'1111 * value};
-B b4 = {value * 0x0000'1111};
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i1509.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i1509.cpp deleted file mode 100644 index d3e79ff6..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i1509.cpp +++ /dev/null @@ -1,5 +0,0 @@ -void f() -{ - int i = A::B::C::bar(); - int ii = A::B::C::bar(); -}
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i1509_bug_1112_correction.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i1509_bug_1112_correction.cpp deleted file mode 100644 index 1470d613..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i1509_bug_1112_correction.cpp +++ /dev/null @@ -1,26 +0,0 @@ -void f() -{ -int i = A::B::C::bar(); -int ii = A::B::C::bar(); -} - -int A::foo() -{ -return 1; -} -int A::B::foo() -{ -return A::foo(); -} -int A::B::C::foo() -{ -return A::B::foo(); -} -int A::B::C::D::foo() -{ -return A::B::C::foo(); -} -int A::B::C::D::E::foo() -{ -return A::B::C::D::foo(); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i1516.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i1516.cpp deleted file mode 100644 index e1fe3f77..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i1516.cpp +++ /dev/null @@ -1,15 +0,0 @@ -void myClass::foo() { - int bar; - std::string str; - DbConfig::configuredDatabase()->apply(db); - std::string str2; - - std::string str2; - f(); - DbConfig::configuredDatabase()->apply(db); - int bar; - std::string str; - - std::string str2; - f(); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i1536.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i1536.cpp deleted file mode 100644 index 2c33ec58..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i1536.cpp +++ /dev/null @@ -1,7 +0,0 @@ -void FuncA(void) -{ -} - -void FuncB(void) -{ -}
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i1565.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i1565.cpp deleted file mode 100644 index 5cb66589..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i1565.cpp +++ /dev/null @@ -1,9 +0,0 @@ -namespace ns1 { -namespace ns2 { - - #define SOME_MACRO() \ - if(true) { \ - } - -} -}
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i1617.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i1617.cpp deleted file mode 100644 index 1901e3db..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i1617.cpp +++ /dev/null @@ -1,5 +0,0 @@ -namespace -{ -void f(){ -}; -}
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i1768.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i1768.cpp deleted file mode 100644 index 7fa82285..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i1768.cpp +++ /dev/null @@ -1,6 +0,0 @@ -void f(int a, int b); - -void g() -{ - f(1, 2); -}
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i2033.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i2033.cpp deleted file mode 100644 index fd27cf6d..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i2033.cpp +++ /dev/null @@ -1,7 +0,0 @@ -/* *INDENT-OFF* */ -enum E_SUNSENSOR { - EXAMPLE1, - EXAMPLE2, - SN005 -}; -/* *INDENT-ON* */ diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i2116.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i2116.cpp deleted file mode 100644 index 8011f572..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i2116.cpp +++ /dev/null @@ -1,2 +0,0 @@ -void f() -{} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i683.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i683.cpp deleted file mode 100644 index 4d95c7ce..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/i683.cpp +++ /dev/null @@ -1,42 +0,0 @@ -#define concat0(a0,a1) a0 ??=??=a1 // trigraph ## -#define concat1(a0,a1) a0 %:%:a1 // digraph ## - - -#define STRINGIFY0(s) ??= s // trigraph # -#define STRINGIFY1(s) %: s // digraph # - -#define msg0(x) printf("%c: %d\n", ??=@ x, x) // trigraph #@ -#define msg1(x) printf("%c: %d\n", %:@ x, x) // digraph #@ - -// trigraph { -void x() ??< - - // trigraph [] - char a ??(??) = "a"; - // diigraph [] - char b <::> = "b"; - - bool f, g, h; - f = g = h = true; - - // trigraph || - f = g ??!??! h; - // trigraph |= - f ??!= g; - // trigraph | - f = g ??! h; - // trigraph ^= - f ??'= g; - // trigraph ^ - f = g ??' h; - - // trigraph [, ] - int m ??(5??); - // digraph [, ] - int n <:5:>; - -// trigraph } -return; ??> - -// digraph {, } -int y() <% return 1; %>
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/if-constexpr.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/if-constexpr.cpp deleted file mode 100644 index 76f37f92..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/if-constexpr.cpp +++ /dev/null @@ -1,7 +0,0 @@ -int foo() -{ - if constexpr (a == 0) { - return 1; - } - return 0; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/if_chain_braces.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/if_chain_braces.cpp deleted file mode 100644 index 693efc63..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/if_chain_braces.cpp +++ /dev/null @@ -1,47 +0,0 @@ - -int foo() { - if ( a ) - return 1; - else if ( b ) - return 2; - - if ( a ) - return 3; - else if ( b ) - return 4; - else { - a = 5; - return 5; - } - - if ( a ) - return 6; - else - return 7; - - if ( a ) - return 8; - - if ( b ) { - return 9; - } - - if ( b ) { - { b = 5; } - return 10; - } - - if ( a ) - return 11; - else { - return 12; - } - - if ( a ) { - return 13; - } else if ( b ) { - return 14; - } else { - return 15; - } -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/if_constexpr.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/if_constexpr.cpp deleted file mode 100644 index 032f74ec..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/if_constexpr.cpp +++ /dev/null @@ -1,8 +0,0 @@ -static constexpr int test{ - if constexpr (condition_1) - return 1; - else if constexpr (condition_2) - return 2; - else - return 3; -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/ifcomment.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/ifcomment.cpp deleted file mode 100644 index 52f508f6..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/ifcomment.cpp +++ /dev/null @@ -1,7 +0,0 @@ -if (true) // indent_relative_single_line_comments = false
- return;
-if ( foo ) { // true
- bar(1); // action 1
-} else { // false
- bar(2); // action 2
-}
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent-c.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent-c.cpp deleted file mode 100644 index 369548e0..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent-c.cpp +++ /dev/null @@ -1,1084 +0,0 @@ -/** - * @file indent.cpp - * Does all the indenting stuff. - * - * $Id: indent.cpp 548 2006-10-21 02:31:55Z bengardner $ - */ -#include "uncrustify_types.h" -#include "chunk.h" -#include "prototypes.h" -#include <cstdio> -#include <cstdlib> -#include <cstring> -#include <cerrno> -#include <cctype> - - -/** - * General indenting approach: - * Indenting levels are put into a stack. - * - * The stack entries contain: - * - opening type - * - brace column - * - continuation column - * - * Items that start a new stack item: - * - preprocessor (new parse frame) - * - Brace Open (Virtual brace also) - * - Paren, Square, Angle open - * - Assignments - * - C++ '<<' operator (ie, cout << "blah") - * - case - * - class colon - * - return - * - types - * - any other continued statement - * - * Note that the column of items marked 'PCF_WAS_ALIGNED' is not changed. - * - * For an open brace: - * - indent increases by indent_columns - * - if part of if/else/do/while/switch/etc, an extra indent may be applied - * - if in a paren, then cont-col is set to column + 1, ie "({ some code })" - * - * Open paren/square/angle: - * cont-col is set to the column of the item after the open paren, unless - * followed by a newline, then it is set to (brace-col + indent_columns). - * Examples: - * a_really_long_funcion_name( - * param1, param2); - * a_really_long_funcion_name(param1, - * param2); - * - * Assignments: - * Assignments are continued aligned with the first item after the assignment, - * unless the assign is followed by a newline. - * Examples: - * some.variable = asdf + asdf + - * asdf; - * some.variable = - * asdf + asdf + asdf; - * - * C++ << operator: - * Handled the same as assignment. - * Examples: - * cout << "this is test number: " - * << test_number; - * - * case: - * Started with case or default. - * Terminated with close brace at level or another case or default. - * Special indenting according to various rules. - * - indent of case label - * - indent of case body - * - how to handle optional braces - * Examples: - * { - * case x: { - * a++; - * break; - * } - * case y: - * b--; - * break; - * default: - * c++; - * break; - * } - * - * Class colon: - * Indent continuation by indent_columns: - * class my_class : - * baseclass1, - * baseclass2 - * { - * - * Return: same as assignemts - * If the return statement is not fully paren'd, then the indent continues at - * the column of the item after the return. If it is paren'd, then the paren - * rules apply. - * return somevalue + - * othervalue; - * - * Type: pretty much the same as assignments - * Examples: - * int foo, - * bar, - * baz; - * - * Any other continued item: - * There shouldn't be anything not covered by the above cases, but any other - * continued item is indented by indent_columns: - * Example: - * somereallycrazylongname.with[lotsoflongstuff]. - * thatreallyannoysme.whenIhavetomaintain[thecode] = 3; - */ - -static void indent_comment(Chunk *pc, int col); - - -void indent_to_column(Chunk *pc, int column) -{ - if (column < pc->GetColumn()) - { - column = pc->GetColumn(); - } - reindent_line(pc, column); -} - -/** - * Changes the initial indent for a line to the given column - * - * @param pc The chunk at the start of the line - * @param column The desired column - */ -void reindent_line(Chunk *pc, int column) -{ - int col_delta; - int min_col; - - LOG_FMT(LINDLINE, "%s: %d] col %d on %.*s [%s] => %d\n", - __func__, pc->GetOrigLine(), pc->GetColumn(), pc->len, pc->GetStr(), - get_token_name(pc->GetType()), column); - - if (column == pc->GetColumn()) - { - return; - } - col_delta = column - pc->GetColumn(); - pc->SetColumn(column); - min_col = pc->GetColumn(); - - do - { - min_col += pc->len; - pc = pc->GetNext(); - if (pc != NULL) - { - if (pc->IsComment()) - { - pc->SetColumn(pc->GetOrigCol()); - if (pc->GetColumn() < min_col) - { - pc->SetColumn(min_col + 1); - } - LOG_FMT(LINDLINE, "%s: set comment on line %d to col %d (orig %d)\n", - __func__, pc->GetOrigLine(), pc->GetColumn(), pc->GetOrigCol()); - } - else - { - pc->SetColumn(pc->GetColumn() + col_delta); - if (pc->GetColumn() < min_col) - { - pc->SetColumn(min_col); - } - } - } - } while ((pc != NULL) && (pc->GetNlCount() == 0)); -} - - -/** - * Starts a new entry - * - * @param frm The parse frame - * @param pc The chunk causing the push - */ -static void indent_pse_push(struct parse_frame& frm, Chunk *pc) -{ - static int ref = 0; - - /* check the stack depth */ - if (frm.m_parenStack_tos < (int)ARRAY_SIZE(frm.m_parenStack)) - { - /* Bump up the index and initialize it */ - frm.pse_tos++; - memset(&frm.m_parenStack[frm.m_parenStack_tos], 0, sizeof(frm.m_parenStack[frm.m_parenStack_tos])); - - LOG_FMT(LINDPSE, "%4d] OPEN [%d,%s] level=%d\n", - pc->GetOrigLine(), frm.pse_tos, get_token_name(pc->GetType()), pc->GetLevel()); - - frm.m_parenStack[frm.m_parenStack_tos].type = pc->GetType(); - frm.m_parenStack[frm.m_parenStack_tos].level = pc->GetLevel(); - frm.m_parenStack[frm.m_parenStack_tos].open_line = pc->GetOrigLine(); - frm.m_parenStack[frm.m_parenStack_tos].ref = ++ref; - frm.m_parenStack[frm.m_parenStack_tos].in_preproc = (pc->GetFlags() & PCF_IN_PREPROC) != 0; - } -} - - -/** - * Removes the top entry - * - * @param frm The parse frame - * @param pc The chunk causing the push - */ -static void indent_pse_pop(struct parse_frame& frm, Chunk *pc) -{ - /* Bump up the index and initialize it */ - if (frm.pse_tos > 0) - { - if (pc != NULL) - { - LOG_FMT(LINDPSE, "%4d] CLOSE [%d,%s] on %s, started on line %d, level=%d/%d\n", - pc->GetOrigLine(), frm.pse_tos, - get_token_name(frm.m_parenStack[frm.m_parenStack_tos].type), - get_token_name(pc->GetType()), - frm.m_parenStack[frm.m_parenStack_tos].open_line, - frm.m_parenStack[frm.m_parenStack_tos].level, - pc->GetLevel()); - } - else - { - LOG_FMT(LINDPSE, " EOF] CLOSE [%d,%s], started on line %d\n", - frm.m_parenStack_tos, get_token_name(frm.m_parenStack[frm.m_parenStack_tos].type), - frm.m_parenStack[frm.m_parenStack_tos].open_line); - } - frm.pse_tos--; - } -} - - -static int token_indent(E_Token type) -{ - switch (type) - { - case CT_IF: - case CT_DO: - return(3); - - case CT_FOR: - case CT_ELSE: // wacky, but that's what is wanted - return(4); - - case CT_WHILE: - return(6); - - case CT_SWITCH: - return(7); - - case CT_ELSEIF: - return(8); - - default: - return(0); //cpd.settings[UO_indent_braces].n; - } -} - - -/** - * Change the top-level indentation only by changing the column member in - * the chunk structures. - * The level indicator must already be set. - */ -void indent_text(void) -{ - Chunk *pc; - Chunk *next; - Chunk *prev = NULL; - bool did_newline = true; - int idx; - int vardefcol = 0; - int indent_size = cpd.settings[UO_indent_columns].n; - int tmp; - struct parse_frame frm; - bool in_preproc = false, was_preproc = false; - int indent_column; - int cout_col = 0; // for aligning << stuff - int cout_level = 0; // for aligning << stuff - int parent_token_indent = 0; - - memset(&frm, 0, sizeof(frm)); - - /* dummy top-level entry */ - frm.m_parenStack[0].indent = 1; - frm.m_parenStack[0].indent_tmp = 1; - frm.m_parenStack[0].type = CT_EOF; - - pc = Chunk::GetHead(); - while (pc != NULL) - { - /* Handle proprocessor transitions */ - was_preproc = in_preproc; - in_preproc = (pc->GetFlags() & PCF_IN_PREPROC) != 0; - - if (cpd.settings[UO_indent_brace_parent].b) - { - parent_token_indent = token_indent(pc->GetParentType()); - } - - /* Clean up after a #define */ - if (!in_preproc) - { - while ((frm.m_parenStack_tos > 0) && frm.m_parenStack[frm.m_parenStack_tos].in_preproc) - { - indent_pse_pop(frm, pc); - } - } - else - { - pf_check(&frm, pc); - - if (!was_preproc) - { - /* Transition into a preproc by creating a dummy indent */ - frm.level++; - indent_pse_push(frm, pc); - - frm.m_parenStack[frm.m_parenStack_tos].indent = 1 + indent_size; - frm.m_parenStack[frm.m_parenStack_tos].indent_tmp = frm.m_parenStack[frm.m_parenStack_tos].indent; - } - } - - if ((cout_col > 0) && - (pc->IsSemicolon() || - (pc->GetLevel() < cout_level))) - { - cout_col = 0; - cout_level = 0; - } - - /** - * Handle non-brace closures - */ - - int old_pse_tos; - do - { - old_pse_tos = frm.pse_tos; - - /* End anything that drops a level - * REVISIT: not sure about the preproc check - */ - if (!pc->IsNewline() && - !pc->IsComment() && - ((pc->GetFlags() & PCF_IN_PREPROC) == 0) && - (frm.m_parenStack[frm.m_parenStack_tos].level > pc->GetLevel())) - { - indent_pse_pop(frm, pc); - } - - if (frm.m_parenStack[frm.m_parenStack_tos].level == pc->GetLevel()) - { - /* process virtual braces closes (no text output) */ - if ((pc->GetType() == CT_VBRACE_CLOSE) && - (frm.m_parenStack[frm.m_parenStack_tos].type == CT_VBRACE_OPEN)) - { - indent_pse_pop(frm, pc); - frm.level--; - pc = pc->GetNext(); - } - - /* End any assign operations with a semicolon on the same level */ - if ((frm.m_parenStack[frm.m_parenStack_tos].type == CT_ASSIGN) && - (pc->IsSemicolon() || - (pc->GetType() == CT_COMMA) || - (pc->GetType() == CT_BRACE_OPEN))) - { - indent_pse_pop(frm, pc); - } - - /* End any CPP class colon crap */ - if ((frm.m_parenStack[frm.m_parenStack_tos].type == CT_CLASS_COLON) && - ((pc->GetType() == CT_BRACE_OPEN) || - pc->IsSemicolon())) - { - indent_pse_pop(frm, pc); - } - - /* a case is ended with another case or a close brace */ - if ((frm.m_parenStack[frm.m_parenStack_tos].type == CT_CASE) && - ((pc->GetType() == CT_BRACE_CLOSE) || - (pc->GetType() == CT_CASE))) - { - indent_pse_pop(frm, pc); - } - - /* a return is ended with a semicolon */ - if ((frm.m_parenStack[frm.m_parenStack_tos].type == CT_RETURN) && - pc->IsSemicolon()) - { - indent_pse_pop(frm, pc); - } - - /* Close out parens and squares */ - if ((frm.m_parenStack[frm.m_parenStack_tos].type == (pc->GetType() - 1)) && - ((pc->GetType() == CT_PAREN_CLOSE) || - (pc->GetType() == CT_SPAREN_CLOSE) || - (pc->GetType() == CT_FPAREN_CLOSE) || - (pc->GetType() == CT_SQUARE_CLOSE) || - (pc->GetType() == CT_ANGLE_CLOSE))) - { - indent_pse_pop(frm, pc); - frm.SetParenCount(frm.GetParenCount() - 1); - } - } - } while (old_pse_tos > frm.pse_tos); - - /* Grab a copy of the current indent */ - indent_column = frm.m_parenStack[frm.m_parenStack_tos].indent_tmp; - - if (!pc->IsNewline() && !pc->IsComment()) - { - LOG_FMT(LINDPC, " -=[ %.*s ]=- top=%d %s %d/%d\n", - pc->len, pc->GetStr(), - frm.pse_tos, - get_token_name(frm.m_parenStack[frm.m_parenStack_tos].type), - frm.m_parenStack[frm.m_parenStack_tos].indent_tmp, - frm.m_parenStack[frm.m_parenStack_tos].indent); - } - - /** - * Handle stuff that can affect the current indent: - * - brace close - * - vbrace open - * - brace open - * - case (immediate) - * - labels (immediate) - * - class colons (immediate) - * - * And some stuff that can't - * - open paren - * - open square - * - assignment - * - return - */ - - if (pc->GetType() == CT_BRACE_CLOSE) - { - if (frm.m_parenStack[frm.m_parenStack_tos].type == CT_BRACE_OPEN) - { - indent_pse_pop(frm, pc); - frm.level--; - - /* Update the indent_column if needed */ - if (!cpd.settings[UO_indent_braces].b && - (parent_token_indent == 0)) - { - indent_column = frm.m_parenStack[frm.m_parenStack_tos].indent_tmp; - } - - if ((pc->GetParentType() == CT_IF) || - (pc->GetParentType() == CT_ELSE) || - (pc->GetParentType() == CT_ELSEIF) || - (pc->GetParentType() == CT_DO) || - (pc->GetParentType() == CT_WHILE) || - (pc->GetParentType() == CT_SWITCH) || - (pc->GetParentType() == CT_FOR)) - { - indent_column += cpd.settings[UO_indent_brace].n; - } - } - } - else if (pc->GetType() == CT_VBRACE_OPEN) - { - frm.level++; - indent_pse_push(frm, pc); - - frm.m_parenStack[frm.m_parenStack_tos].indent = frm.m_parenStack[frm.m_parenStack_tos - 1].indent + indent_size; - frm.m_parenStack[frm.m_parenStack_tos].indent_tmp = frm.m_parenStack[frm.m_parenStack_tos].indent; - - /* Always indent on virtual braces */ - indent_column = frm.m_parenStack[frm.m_parenStack_tos].indent_tmp; - } - else if (pc->GetType() == CT_BRACE_OPEN) - { - frm.level++; - indent_pse_push(frm, pc); - - if (frm.GetParenCount() != 0) - { - /* We are inside ({ ... }) -- indent one tab from the paren */ - frm.m_parenStack[frm.m_parenStack_tos].indent = frm.m_parenStack[frm.m_parenStack_tos - 1].indent_tmp + indent_size; - } - else - { - /* Use the prev indent level + indent_size. */ - frm.m_parenStack[frm.m_parenStack_tos].indent = frm.m_parenStack[frm.m_parenStack_tos - 1].indent + indent_size; - - /* If this brace is part of a statement, bump it out by indent_brace */ - if ((pc->GetParentType() == CT_IF) || - (pc->GetParentType() == CT_ELSE) || - (pc->GetParentType() == CT_ELSEIF) || - (pc->GetParentType() == CT_DO) || - (pc->GetParentType() == CT_WHILE) || - (pc->GetParentType() == CT_SWITCH) || - (pc->GetParentType() == CT_FOR)) - { - if (parent_token_indent != 0) - { - frm.m_parenStack[frm.m_parenStack_tos].indent += parent_token_indent - indent_size; - } - else - { - frm.m_parenStack[frm.m_parenStack_tos].indent += cpd.settings[UO_indent_brace].n; - indent_column += cpd.settings[UO_indent_brace].n; - } - } - else if (pc->GetParentType() == CT_CASE) - { - /* The indent_case_brace setting affects the parent CT_CASE */ - frm.m_parenStack[frm.m_parenStack_tos].indent_tmp += cpd.settings[UO_indent_case_brace].n; - frm.m_parenStack[frm.m_parenStack_tos].indent += cpd.settings[UO_indent_case_brace].n; - } - else if ((pc->GetParentType() == CT_CLASS) && !cpd.settings[UO_indent_class].b) - { - frm.m_parenStack[frm.m_parenStack_tos].indent -= indent_size; - } - else if ((pc->GetParentType() == CT_NAMESPACE) && !cpd.settings[UO_indent_namespace].b) - { - frm.m_parenStack[frm.m_parenStack_tos].indent -= indent_size; - } - } - - if ((pc->GetFlags() & PCF_DONT_INDENT) != 0) - { - frm.m_parenStack[frm.m_parenStack_tos].indent = pc->GetColumn(); - indent_column = pc->GetColumn(); - } - else - { - /** - * If there isn't a newline between the open brace and the next - * item, just indent to wherever the next token is. - * This covers this sort of stuff: - * { a++; - * b--; }; - */ - next = pc->GetNextNcNnl(); - if (!pc->IsNewlineBetween(next)) - { - frm.m_parenStack[frm.m_parenStack_tos].indent = next->GetColumn(); - } - frm.m_parenStack[frm.m_parenStack_tos].indent_tmp = frm.m_parenStack[frm.m_parenStack_tos].indent; - frm.m_parenStack[frm.m_parenStack_tos].open_line = pc->GetOrigLine(); - - /* Update the indent_column if needed */ - if (cpd.settings[UO_indent_braces].n || - (parent_token_indent != 0)) - { - indent_column = frm.m_parenStack[frm.m_parenStack_tos].indent_tmp; - } - } - } - else if (pc->GetType() == CT_CASE) - { - /* Start a case - indent UO_indent_switch_case from the switch level */ - tmp = frm.m_parenStack[frm.m_parenStack_tos].indent + cpd.settings[UO_indent_switch_case].n; - - indent_pse_push(frm, pc); - - frm.m_parenStack[frm.m_parenStack_tos].indent = tmp; - frm.m_parenStack[frm.m_parenStack_tos].indent_tmp = tmp - indent_size; - - /* Always set on case statements */ - indent_column = frm.m_parenStack[frm.m_parenStack_tos].indent_tmp; - } - else if (pc->GetType() == CT_LABEL) - { - /* Labels get sent to the left or backed up */ - if (cpd.settings[UO_indent_label].n > 0) - { - indent_column = cpd.settings[UO_indent_label].n; - } - else - { - indent_column = frm.m_parenStack[frm.m_parenStack_tos].indent + - cpd.settings[UO_indent_label].n; - } - } - else if (pc->GetType() == CT_CLASS_COLON) - { - /* just indent one level */ - indent_pse_push(frm, pc); - frm.m_parenStack[frm.m_parenStack_tos].indent = frm.m_parenStack[frm.m_parenStack_tos - 1].indent_tmp + indent_size; - frm.m_parenStack[frm.m_parenStack_tos].indent_tmp = frm.m_parenStack[frm.m_parenStack_tos].indent; - - indent_column = frm.m_parenStack[frm.m_parenStack_tos].indent_tmp; - - if (cpd.settings[UO_indent_class_colon].b) - { - prev = pc->GetPrev(); - if (prev->IsNewline()) - { - frm.m_parenStack[frm.m_parenStack_tos].indent += 2; - /* don't change indent of current line */ - } - } - } - else if ((pc->GetType() == CT_PAREN_OPEN) || - (pc->GetType() == CT_SPAREN_OPEN) || - (pc->GetType() == CT_FPAREN_OPEN) || - (pc->GetType() == CT_SQUARE_OPEN) || - (pc->GetType() == CT_ANGLE_OPEN)) - { - /* Open parens and squares - never update indent_column */ - indent_pse_push(frm, pc); - frm.m_parenStack[frm.m_parenStack_tos].indent = pc->GetColumn() + pc->len; - - if (cpd.settings[UO_indent_func_call_param].b && - (pc->GetType() == CT_FPAREN_OPEN) && - (pc->GetParentType() == CT_FUNC_CALL)) - { - frm.m_parenStack[frm.m_parenStack_tos].indent = frm.m_parenStack[frm.m_parenStack_tos - 1].indent + indent_size; - } - - if ((chunk_is_str(pc, "(", 1) && !cpd.settings[UO_indent_paren_nl].b) || - (chunk_is_str(pc, "[", 1) && !cpd.settings[UO_indent_square_nl].b)) - { - next = pc->GetNextNc(); - if (next->IsNewline()) - { - int sub = 1; - if (frm.m_parenStack[frm.m_parenStack_tos - 1].type == CT_ASSIGN) - { - sub = 2; - } - frm.m_parenStack[frm.m_parenStack_tos].indent = frm.m_parenStack[frm.m_parenStack_tos - sub].indent + indent_size; - } - } - frm.m_parenStack[frm.m_parenStack_tos].indent_tmp = frm.m_parenStack[frm.m_parenStack_tos].indent; - frm.SetParenCount(frm.GetParenCount() + 1); - } - else if (pc->GetType() == CT_ASSIGN) - { - /** - * if there is a newline after the '=', just indent one level, - * otherwise align on the '='. - * Never update indent_column. - */ - next = pc->GetNext(); - if (next != NULL) - { - indent_pse_push(frm, pc); - if (next->IsNewline()) - { - frm.m_parenStack[frm.m_parenStack_tos].indent = frm.m_parenStack[frm.m_parenStack_tos - 1].indent_tmp + indent_size; - } - else - { - frm.m_parenStack[frm.m_parenStack_tos].indent = pc->GetColumn() + pc->len + 1; - } - frm.m_parenStack[frm.m_parenStack_tos].indent_tmp = frm.m_parenStack[frm.m_parenStack_tos].indent; - } - } - else if (pc->GetType() == CT_RETURN) - { - /* don't count returns inside a () or [] */ - if (pc->GetLevel() == pc->GetBraceLevel()) - { - indent_pse_push(frm, pc); - frm.m_parenStack[frm.m_parenStack_tos].indent = frm.m_parenStack[frm.m_parenStack_tos - 1].indent + pc->len + 1; - frm.m_parenStack[frm.m_parenStack_tos].indent_tmp = frm.m_parenStack[frm.m_parenStack_tos - 1].indent; - } - } - else if (chunk_is_str(pc, "<<", 2)) - { - if (cout_col == 0) - { - cout_col = pc->GetColumn(); - cout_level = pc->GetLevel(); - } - } - else - { - /* anything else? */ - } - - - /** - * Indent the line if needed - */ - if (did_newline && !pc->IsNewline() && (pc->len != 0)) - { - /** - * Check for special continuations. - * Note that some of these could be done as a stack item like - * everything else - */ - - prev = pc->GetPrevNcNnl(); - if ((pc->GetType() == CT_MEMBER) || - (pc->GetType() == CT_DC_MEMBER) || - ((prev != NULL) && - ((prev->GetType() == CT_MEMBER) || - (prev->GetType() == CT_DC_MEMBER)))) - { - tmp = cpd.settings[UO_indent_member].n + indent_column; - LOG_FMT(LINDENT, "%s: %d] member => %d\n", - __func__, pc->GetOrigLine(), tmp); - reindent_line(pc, tmp); - } - else if (chunk_is_str(pc, "<<", 2) && (cout_col > 0)) - { - LOG_FMT(LINDENT, "%s: %d] cout_col => %d\n", - __func__, pc->GetOrigLine(), cout_col); - reindent_line(pc, cout_col); - } - else if ((vardefcol > 0) && - (pc->GetType() == CT_WORD) && - ((pc->GetFlags() & PCF_VAR_DEF) != 0) && - (prev != NULL) && (prev->GetType() == CT_COMMA)) - { - LOG_FMT(LINDENT, "%s: %d] Vardefcol => %d\n", - __func__, pc->GetOrigLine(), vardefcol); - reindent_line(pc, vardefcol); - } - else if ((pc->GetType() == CT_STRING) && (prev->GetType() == CT_STRING) && - cpd.settings[UO_indent_align_string].b) - { - LOG_FMT(LINDENT, "%s: %d] String => %d\n", - __func__, pc->GetOrigLine(), prev->GetColumn()); - reindent_line(pc, prev->GetColumn()); - } - else if (pc->IsComment()) - { - LOG_FMT(LINDENT, "%s: %d] comment => %d\n", - __func__, pc->GetOrigLine(), frm.m_parenStack[frm.m_parenStack_tos].indent_tmp); - indent_comment(pc, frm.m_parenStack[frm.m_parenStack_tos].indent_tmp); - } - else if (pc->GetType() == CT_PREPROC) - { - /* Preprocs are always in column 1. See indent_preproc() */ - if (pc->GetColumn() != 1) - { - reindent_line(pc, 1); - } - } - else - { - if (pc->GetColumn() != indent_column) - { - LOG_FMT(LINDENT, "%s: %d] indent => %d [%.*s]\n", - __func__, pc->GetOrigLine(), indent_column, pc->len, pc->GetStr()); - reindent_line(pc, indent_column); - } - } - did_newline = false; - } - - /** - * Handle variable definition continuation indenting - */ - if ((pc->GetType() == CT_WORD) && - ((pc->GetFlags() & PCF_IN_FCN_DEF) == 0) && - ((pc->GetFlags() & PCF_VAR_1ST_DEF) == PCF_VAR_1ST_DEF)) - { - vardefcol = pc->GetColumn(); - } - if (pc->IsSemicolon() || - ((pc->GetType() == CT_BRACE_OPEN) && (pc->GetParentType() == CT_FUNCTION))) - { - vardefcol = 0; - } - - /* if we hit a newline, reset indent_tmp */ - if (pc->IsNewline() || - (pc->GetType() == CT_COMMENT_MULTI) || - (pc->GetType() == CT_COMMENT_CPP)) - { - frm.m_parenStack[frm.m_parenStack_tos].indent_tmp = frm.m_parenStack[frm.m_parenStack_tos].indent; - - /** - * Handle the case of a multi-line #define w/o anything on the - * first line (indent_tmp will be 1 or 0) - */ - if ((pc->GetType() == CT_NL_CONT) && - (frm.m_parenStack[frm.m_parenStack_tos].indent_tmp <= indent_size)) - { - frm.m_parenStack[frm.m_parenStack_tos].indent_tmp = indent_size + 1; - } - - /* Get ready to indent the next item */ - did_newline = true; - } - - if (!pc->IsComment() && !pc->IsNewline()) - { - prev = pc; - } - pc = pc->GetNext(); - } - - /* Throw out any stuff inside a preprocessor - no need to warn */ - while ((frm.m_parenStack_tos > 0) && frm.m_parenStack[frm.m_parenStack_tos].in_preproc) - { - indent_pse_pop(frm, pc); - } - - for (idx = 1; idx <= frm.pse_tos; idx++) - { - LOG_FMT(LWARN, "%s:%d Unmatched %s\n", - cpd.filename, frm.m_parenStack[idx].open_line, - get_token_name(frm.m_parenStack[idx].type)); - cpd.error_count++; - } -} - -/** - * returns true if forward scan reveals only single newlines or comments - * stops when hits code - * false if next thing hit is a closing brace, also if 2 newlines in a row - */ - - -static bool single_line_comment_indent_rule_applies(Chunk *start) -{ - Chunk *pc = start; - int nl_count = 0; - if (!pc->IsSingleLineComment()) - { - return(false); - } - /* scan forward, if only single newlines and comments before next line of code, we want to apply */ - while ((pc = pc->GetNext()) != NULL) - { - if (pc->IsNewline()) - { - if (nl_count > 0 || pc->GetNlCount() > 1) - { - return(false); - } - - nl_count++; - } - else - { - nl_count = 0; - if (!pc->IsSingleLineComment()) - { - /* here we check for things to run into that we wouldn't want to indent the comment for */ - /* for example, non-single line comment, closing brace */ - if (pc->IsComment() || pc->IsBraceClose()) - { - return(false); - } - - return(true); - } - } - } - - return(false); -} - -/** - * REVISIT: This needs to be re-checked, maybe cleaned up - * - * Indents comments in a (hopefully) smart manner. - * - * There are two type of comments that get indented: - * - stand alone (ie, no tokens on the line before the comment) - * - trailing comments (last token on the line apart from a linefeed) - * + note that a stand-alone comment is a special case of a trailing - * - * The stand alone comments will get indented in one of three ways: - * - column 1: - * + There is an empty line before the comment AND the indent level is 0 - * + The comment was originally in column 1 - * - * - Same column as trailing comment on previous line (ie, aligned) - * + if originally within TBD (3) columns of the previous comment - * - * - syntax indent level - * + doesn't fit in the previous categories - * - * Options modify this behavior: - * - keep original column (don't move the comment, if possible) - * - keep relative column (move out the same amount as first item on line) - * - fix trailing comment in column TBD - * - * @param pc The comment, which is the first item on a line - * @param col The column if this is to be put at indent level - */ -static void indent_comment(Chunk *pc, int col) -{ - Chunk *nl; - Chunk *prev; - - LOG_FMT(LCMTIND, "%s: line %d, col %d, level %d: ", __func__, - pc->GetOrigLine(), pc->GetOrigCol(), pc->GetLevel()); - - /* force column 1 comment to column 1 if not changing them */ - if ((pc->GetOrigCol() == 1) && !cpd.settings[UO_indent_col1_comment].b) - { - LOG_FMT(LCMTIND, "rule 1 - keep in col 1\n"); - pc->SetColumn(1); - return; - } - - nl = pc->GetPrev(); - - /* outside of any expression or statement? */ - if (pc->GetLevel() == 0) - { - if ((nl != NULL) && (nl->GetNlCount() > 1)) - { - LOG_FMT(LCMTIND, "rule 2 - level 0, nl before\n"); - pc->SetColumn(1); - return; - } - } - - prev = nl->GetPrev(); - if (prev->IsComment() && (nl->GetNlCount() == 1)) - { - int coldiff = prev->GetOrigCol() - pc->GetOrigCol(); - - if ((coldiff <= 3) && (coldiff >= -3)) - { - pc->SetColumn(prev->GetColumn()); - LOG_FMT(LCMTIND, "rule 3 - prev comment, coldiff = %d, now in %d\n", - coldiff, pc->GetColumn()); - return; - } - } - /* check if special single line comment rule applies */ - if (cpd.settings[UO_indent_sing_line_comments].n > 0 && single_line_comment_indent_rule_applies(pc)) - { - pc->SetColumn(col + cpd.settings[UO_indent_sing_line_comments].n); - LOG_FMT(LCMTIND, "rule 4 - single line comment indent, now in %d\n", pc->GetColumn()); - return; - } - LOG_FMT(LCMTIND, "rule 5 - fall-through, stay in %d\n", col); - - pc->SetColumn(col); -} - - -/** - * Put spaces on either side of the preproc (#) symbol. - * This is done by pointing pc->GetStr() into pp_str and adjusting the - * length. - */ -void indent_preproc(void) -{ - Chunk *pc; - Chunk *next; - int pp_level; - int pp_level_sub = 0; - int tmp; - - /* Define a string of 16 spaces + # + 16 spaces */ - static const char *pp_str = " # "; - static const char *alt_str = " %: "; - - /* Scan to see if the whole file is covered by one #ifdef */ - int stage = 0; - - for (pc = Chunk::GetHead(); pc != NULL; pc = pc->GetNext()) - { - if (pc->IsComment() || pc->IsNewline()) - { - continue; - } - - if (stage == 0) - { - /* Check the first PP, make sure it is an #if type */ - if (pc->GetType() != CT_PREPROC) - { - break; - } - next = pc->GetNext(); - if ((next == NULL) || (next->GetType() != CT_PP_IF)) - { - break; - } - stage = 1; - } - else if (stage == 1) - { - /* Scan until a PP at level 0 is found - the close to the #if */ - if ((pc->GetType() == CT_PREPROC) && - (pc->GetPpLevel() == 0)) - { - stage = 2; - } - continue; - } - else if (stage == 2) - { - /* We should only see the rest of the preprocessor */ - if ((pc->GetType() == CT_PREPROC) || - ((pc->GetFlags() & PCF_IN_PREPROC) == 0)) - { - stage = 0; - break; - } - } - } - - if (stage == 2) - { - LOG_FMT(LINFO, "The whole file is covered by a #IF\n"); - pp_level_sub = 1; - } - - for (pc = Chunk::GetHead(); pc != NULL; pc = pc->GetNext()) - { - if (pc->GetType() != CT_PREPROC) - { - continue; - } - - if (pc->GetColumn() != 1) - { - /* Don't handle preprocessors that aren't in column 1 */ - LOG_FMT(LINFO, "%s: Line %d doesn't start in column 1 (%d)\n", - __func__, pc->GetOrigLine(), pc->GetColumn()); - continue; - } - - /* point into pp_str */ - if (pc->len == 2) - { - /* alternate token crap */ - pc->Str() = &alt_str[16]; - } - else - { - pc->Str() = &pp_str[16]; - } - - pp_level = pc->GetPpLevel() - pp_level_sub; - if (pp_level < 0) - { - pp_level = 0; - } - else if (pp_level > 16) - { - pp_level = 16; - } - - /* Note that the indent is removed by default */ - if ((cpd.settings[UO_pp_indent].a & AV_ADD) != 0) - { - /* Need to add some spaces */ - pc->Str() -= pp_level; - pc->len += pp_level; - } - else if (cpd.settings[UO_pp_indent].a == AV_IGNORE) - { - tmp = (pc->GetOrigCol() <= 16) ? pc->GetOrigCol() - 1 : 16; - pc->Str() -= tmp; - pc->len += tmp; - } - - /* Add spacing by adjusting the length */ - if ((cpd.settings[UO_pp_space].a & AV_ADD) != 0) - { - pc->len += pp_level; - } - - next = pc->GetNext(); - if (next != NULL) - { - reindent_line(next, pc->len + 1); - } - - LOG_FMT(LPPIS, "%s: Indent line %d to %d (len %d, next->col %d)\n", - __func__, pc->GetOrigLine(), GetPpLevel(), pc->len, next->GetColumn()); - } -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent-inside-ternary-operator.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent-inside-ternary-operator.cpp deleted file mode 100644 index 40cdad92..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent-inside-ternary-operator.cpp +++ /dev/null @@ -1,125 +0,0 @@ -(tmp - ? tmp->IsNewline() -? "newline" - : tmp->IsComment() - ? "comment" - : "other" - : tmp->IsNewline() - ? "newline" - : tmp->IsComment() - ? "comment" - : "other"); - -a -? b - + c - : d - + e; - - return - outerFlag - ? RadioButton - : innerFlag - ? Badge - : nil; - -x = outerFlag - ? RadioButton( - arg1 - ) - : Checkbutton - .arg2; - - Builder - .child( - outerFlag - ? RadioButton( - buttonArg - ) - : innerFlag - ? Badge - .component( - LabelText) - : nil - ); - - -accessoryType - ? ConKSC1{} - : flag == false - ? ConKSC2{} - .build() - : flag == true - ? ConKSC3{} - .build() - : ConKSC4{} - .build(); - -options.meta == nil - ? metaCmpnt - : CBuilder() -.spacing(4) - .subCmpnt( - CBuilder() - .build()); - -options.meta == nil - ? CBuilder() - .spacing(4) -.subCmpnt( - CBuilder() -.build() -) -: Builder - .spacing; - - options == nil ? CBuilder() - .spacing(6) -: Builder - .spacing; - - options == nil ? CBuilder() - .spacing(6) : Builder - .spacing; - -flag - ? isChild - ? TypeBack -: TypeCancel - : nil; - - -func something() { - if (flag) { - x == flag - ? Builder - .spacing - : Builder - .spacing; - } -} - - -flag1 -? ( flag2 - ? ( flag3 - ? result1 - : result2 ) - : ( result3 ) - ) - : ( flag5 - ? ( flag - ? result4 - : result5) - : ( flag6 - ? result6 - : ( result7 ) - ) - ); - - -flag1 -? result1 - : ( - flag5 - ); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent-misc.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent-misc.cpp deleted file mode 100644 index 78a924f4..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent-misc.cpp +++ /dev/null @@ -1,59 +0,0 @@ -struct S -{ -int one, two; -S(int i = 1) -{ -one = i; -two = i + i; -} -bool check() const -{ -return one == 1; -} -}; - -struct S -{ -enum { -twentythree = 23, -fortytwoseven = 427 -}; -int one, two; -S(int i = 1) -{ -one = i; -two = i + i; -} -bool check() const -{ -return one == 1; -} -}; - -static uint jhash(K x) - { - ubyte *k; - uint a, - b, - c; - - uint -a, - b, - c; - - len = x.length; -} - -const char *token_names[] = -{ - [CT_POUND] = "POUND", - [CT_PREPROC] = "PREPROC", -}; - -struct whoopee * -foo4( - int param1, - int param2, - char *param2 - ); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent-off.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent-off.cpp deleted file mode 100644 index 79a7ad65..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent-off.cpp +++ /dev/null @@ -1,25 +0,0 @@ -struct X { -void operator-(int); -void operator+(int); -void operator()(); -}; -/* *INDENT-OFF* */ - struct Y { - void operator-(int){} - - - void operator+(int){} \ - void operator()(){} - - void func() { - auto x = " test\t ... ???";} - }; -/* *INDENT-ON* */ -struct Y { -void operator-(int){} -void operator+(int){} -void operator()(){} - void func() { - auto x = " test\t ... ???";} -}; - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent.cpp deleted file mode 100644 index a8c4a514..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent.cpp +++ /dev/null @@ -1,20 +0,0 @@ -int a () -{ - double a_very_long_variable = test (foobar1, - foobar5); -//3456789=123456789=123456789=123456789= - - double a_other_very_long = asdfasdfasdfasdfasdf + asdfasfafasdfa + - asdfasdfasdf - asdfasdf + 56598; -//3456789=123456789=123456789=123456789= - - a_other_very_long = asdfasdfasdfasdfasdf + asdfasfafasdfa + - asdfasdfasdf - asdfasdf + 56598; -//3456789=123456789=123456789=123456789= - - testadsfa (dfasdf, - aaafsdfa); -//3456789=123456789=123456789=123456789= - - return 0; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_braces_no.h b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_braces_no.h deleted file mode 100644 index c5b39b37..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_braces_no.h +++ /dev/null @@ -1,24 +0,0 @@ - - -class MyClass -{ -public: - -struct something -{ -int one; -int two; -} - -MyClass() -{ -} - -void oneFunction() -{ -if (1 == 0) -{ -instructions; -} -} -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_comma_brace_func.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_comma_brace_func.cpp deleted file mode 100644 index d417b5be..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_comma_brace_func.cpp +++ /dev/null @@ -1,10 +0,0 @@ -#include <string> - -extern char* externBufferWithAVeryLongName; -extern unsigned int externBufferSizeWithLongName; - -std::string foo() -{ - return std::string{ externBufferWithAVeryLongName - , externBufferSizeWithLongName }; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_comma_brace_glob.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_comma_brace_glob.cpp deleted file mode 100644 index 8e01afc6..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_comma_brace_glob.cpp +++ /dev/null @@ -1,7 +0,0 @@ -#include <string> - -extern char* externBufferWithAVeryLongName; -extern unsigned int externBufferSizeWithLongName; - -std::string foo{ externBufferWithAVeryLongName - , externBufferSizeWithLongName }; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_comment_align_thresh.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_comment_align_thresh.cpp deleted file mode 100644 index 7ddfacbf..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_comment_align_thresh.cpp +++ /dev/null @@ -1,153 +0,0 @@ -// First comment - // Second comment - - // First comment -// Second comment - -// Issue #1134 -class MyClass : public BaseClass -{ - //@{ BaseClass interface -#if VERY_LONG_AND_COMPLICATED_DEFINE - void foo(); -#endif // VERY_LONG_AND_COMPLICATED_DEFINE - //@} -}; - -// Issue #1287 -void foo() -{ -#if defined(SUPPORT_FEATURE) - bar(); -#endif // SUPPORT_FEATURE - // Handle error - if (error != 0) - { - } - -#if defined(SUPPORT_FEATURE) - bar(); -#endif // SUPPORT_FEATURE - // Handle error - // Handle error - if (error != 0) - { - } - -# if defined(SUPPORT_FEATURE) - bar(); -# endif // SUPPORT_FEATURE - // SUPPORT_FEATURE - // Handle error - // Handle error - if (error != 0) - { - } - -# if defined(SUPPORT_FEATURE) - bar(); -# endif // SUPPORT_FEATURE - // SUPPORT_FEATURE - // Handle error - // Handle error - if (error != 0) - { - } - - #if defined(SUPPORT_FEATURE) - bar(); - #endif /* SUPPORT_FEATURE - SUPPORT_FEATURE */ - // Handle error - // Handle error - if (error != 0) - { - } -} - -// ----- Some namespace scope -------------------------------------------------- -// ----- FooNamespace scope ---------------------------------------------------- -namespace FooNamespace -{ -// ----- Some classes scope ---------------------------------------------------- -// ----- FooClass scope -------------------------------------------------------- -class FooClass -{ - using FooUsing = FooTemplate< - param1, - param2 - >; // FooTemplate - // Foo description - void foo() - { - if (a == b) - { -// Col1 comment - // Col1 comment - // Col1 comment - // Baz description - baz(); // Baz trailing comment begin - // Baz trailing comment ... - // Baz trailing comment end - } // if (a == b) - // Bar description begin - // Bar description ... - // Bar description end - bar( - a, - b - ); // bar trailing comment begin - // bar trailing comment ... - // Baz trailing comment end - /*! Baz description begin - *Baz description ... - * Baz description end */ - baz(a, - b); /* Baz trailing comment begin - Baz trailing comment ... - Baz trailing comment end */ - // Bar description - bar(); // bar trailing comment begin - // bar trailing comment ... - // Baz trailing comment end - - // Baz description - baz(); - } - void bar(); - // Many methods - void baz(); -}; // FooClass -// ----- FooClass scope -------------------------------------------------------- - -// Many classes - // Many classes - // Many classes - -class BazClass -{ - void foo(); - -// Many methods - // Many methods - // Many methods - -// Overrides - // Overrides - //Overrides -protected: - // Bar description - void baz(); - //Overrides -}; // BazClass trailing comment begin - // BazClass trailing comment ... - // BazClass trailing comment end -// ----- Some classes scope ---------------------------------------------------- -} // FooNamespace trailing comment begin - // FooNamespace trailing comment end -// ----- FooNamespace scope ---------------------------------------------------- -// BarNamespace description -namespace BarNamespace -{ -} // namespace BarNamespace -// ----- Some namespace scope -------------------------------------------------- diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_ctor_init.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_ctor_init.cpp deleted file mode 100644 index d9fefe24..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_ctor_init.cpp +++ /dev/null @@ -1,12 +0,0 @@ -struct MyClass : public Foo, - private Bar { - MyClass(int a, int b, int c) - : m_a(a), m_b(b), - m_c(c) {} -private : - int m_a, m_b, m_c; -}; - -struct TheirClass -: public Foo, -private Bar {}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_ctor_members_twice.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_ctor_members_twice.cpp deleted file mode 100644 index 4fbd1b4c..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_ctor_members_twice.cpp +++ /dev/null @@ -1,5 +0,0 @@ -Foo::Foo() : - Base(12), - mValue(24) { - func(); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_func_alias_prototype.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_func_alias_prototype.cpp deleted file mode 100644 index 7bd2afdc..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_func_alias_prototype.cpp +++ /dev/null @@ -1,55 +0,0 @@ -
-using Fun1 = void ( ) ;
-using Fun2 = void ( ) noexcept;
-
-using Fun1a = void (
- ) ;
-
-using Fun2a = void (
- ) noexcept;
-
-using Fun3a = void (
- int a,
- const char*
- );
-
-using Fun4a = void (
- int a,
- const char*
- ) noexcept;
-
-using Fun5a = void (
- int a,
- const char*
- );
-
-using Fun6a = void (
- int a,
- const char*
- ) noexcept;
-
-using Fun1b = auto (
-) -> int;
-
-using Fun2b = auto (
-) noexcept -> int;
-
-using Fun3b = auto (
- int a,
- const char*
- ) -> int;
-
-using Fun4b = auto (
- int a,
- const char*
- ) noexcept -> int;
-
-using Fun5b = auto (
- int a,
- const char*
- ) -> int;
-
-using Fun6b = auto (
- int a,
- const char*
- ) noexcept -> int;
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_namespace.h b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_namespace.h deleted file mode 100644 index f97bd324..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_namespace.h +++ /dev/null @@ -1,32 +0,0 @@ -namespace ns1 { - - void bar1(void); - - class foo1 - { - int i1; - }; -} - -namespace ns2 -{ - - void bar2(void); - - class foo2 - { - int i2; - }; -} - -namespace -{ - - void bar3(void); - class foo3 - { - int i3; - }; - -} - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_namespace2.h b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_namespace2.h deleted file mode 100644 index db2ce47d..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_namespace2.h +++ /dev/null @@ -1,13 +0,0 @@ -namespace ns1 { -namespace ns2 { -namespace ns3{ - - using namespace foo::os; - - class foo2 - { - int i2; - }; - } - } -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_namespace_inner_only.h b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_namespace_inner_only.h deleted file mode 100644 index a73879a7..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_namespace_inner_only.h +++ /dev/null @@ -1,8 +0,0 @@ -namespace out -{ - int i; - namespace in - { - int i; - } -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_namespace_single_indent.h b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_namespace_single_indent.h deleted file mode 100644 index 97d57444..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_namespace_single_indent.h +++ /dev/null @@ -1,100 +0,0 @@ -namespace ns1 { - namespace ns2 { - namespace ns3 { - void a(); - } - } -} - -extern "C" { - namespace ns1 { - namespace ns2 { - namespace ns3 { - void b(); - } - } - } -} - -namespace ns1 { - extern "C" { - namespace ns2 { - namespace ns3 { - void c(); - } - } - } -} - -namespace ns1 { - namespace ns2 { - extern "C" { - namespace ns3 { - void d(); - } - } - } -} - -namespace ns1 { - namespace ns2 { - namespace ns3 { - extern "C" { - void e(); - } - } - } -} - -#define M1(ns1, ns2, ns3, f) \ - namespace ns1 { \ - namespace ns2 { \ - namespace ns3 { \ - void f(); \ - } \ - } \ - } - -#define M2(ns1, ns2, ns3, f) \ - extern "C" { \ - namespace ns1 { \ - namespace ns2 { \ - namespace ns3 { \ - void b(); \ - } \ - } \ - } \ - } - -#define M3(ns1, ns2, ns3, f) \ - namespace ns1 { \ - extern "C" { \ - namespace ns2 { \ - namespace ns3 { \ - void c(); \ - } \ - } \ - } \ - } - -#define M4(ns1, ns2, ns3, f) \ - namespace ns1 { \ - namespace ns2 { \ - extern "C" { \ - namespace ns3 { \ - void d(); \ - } \ - } \ - } \ - } - -#define M5(ns1, ns2, ns3, f) \ - namespace ns1 { \ - namespace ns2 { \ - namespace ns3 { \ - extern "C" { \ - void e(); \ - } \ - } \ - } \ - } diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_off_after_return.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_off_after_return.cpp deleted file mode 100644 index 58e24797..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_off_after_return.cpp +++ /dev/null @@ -1,60 +0,0 @@ -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; - }); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_param.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_param.cpp deleted file mode 100644 index c194141b..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_param.cpp +++ /dev/null @@ -1,4 +0,0 @@ -extern int select(int __nfds, fd_set * __restrict __readfds, - fd_set * __restrict __writefds, - fd_set * __restrict __exceptfds, - struct timeval * __restrict __timeout); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_paren_after_func_call.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_paren_after_func_call.cpp deleted file mode 100644 index 96b38fba..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_paren_after_func_call.cpp +++ /dev/null @@ -1,8 +0,0 @@ -SomeClass::SomeClass()
-{
- SomeFunction
- (
- aTest,
- aResult
- );
-}
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_paren_after_func_decl.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_paren_after_func_decl.cpp deleted file mode 100644 index ff8c3e44..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_paren_after_func_decl.cpp +++ /dev/null @@ -1,8 +0,0 @@ -class SomeClass {
-public:
-void SomeFunction
-(
- int const aTest,
- int const aResult
-);
-}
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_paren_after_func_def.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_paren_after_func_def.cpp deleted file mode 100644 index 703e0422..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_paren_after_func_def.cpp +++ /dev/null @@ -1,12 +0,0 @@ -class SomeClass
-{
-public:
-void SomeFunction
-(
- int const aTest,
- int const aResult
-)
-{
- DoSomeStuff();
-}
-}
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_shift.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_shift.cpp deleted file mode 100644 index 54684fa7..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_shift.cpp +++ /dev/null @@ -1,139 +0,0 @@ -// We want simple 4-space indentation for each nesting "level". - -// cannot find a way to tell uncrustify to indent the line with parenthesis -int case2() { - - if (condition) { - // some code here - } - - std::out << - "hello " << "world " << - (who ? "and " : "or ") << - "all " << - "others" << ";" << std::endl; - - // and - - if (condition) { - // some code here - } - - std::out << - "hello " << "world " << - ("and ") << - "all " << - "others" << ";" << std::endl; - - if (cond) - std::out << "hi"; - -if (cond) -std::out -<< "hi" -<< "and" -<< "more" -; - -switch (var) { - case 0: -log() << 5 -<< 5; - break; -} - -#if 0 - out - << 5; -#endif - - return log - >> var - >> second - ; -} - - -// uncrustify aligns (with the << on the first line) instead of indenting -void case3() -{ - - if (condition1) { - - if (condition2) { - - std::out << "hello " - << "world " - << (who ? "and " : "or ") - << "all " - << "others" << ";" << std::endl; - - } - } - - // this often works better, but has problems with parentheses: - - if (condition1) { - if (condition2) { - std::out << "hello " << - "world " << - (who ? "and " : "or ") << - "all " << - "others" << ";" << std::endl; - } - } -} - -// uncrustify does not indent >> at all! -void case4() -{ - if (condition) { - // some code here - } - - std::in >> a - >> b - >> (who ? c : d) >> - >> e; - - // and - - if (condition1) { - - if (condition2) { - std::in >> a >> - b >> - (who ? c : d) >> - e; - } - } -} - -void foo() { - - if (head()) - os << "HEAD,"; - else - if (tail()) - os << "TAIL,"; - - if (a >= 0 && - b <= 0) - cerr << "it is"; -} - -int list[] = { - 1, -2, - 1 << 5, - 1 << 6 -}; - -void check() { - ostream &os = Comment(1) << "error: " << workerName << - " terminated by signal " << WTERMSIG(exitStatus); - - return theAddr.addrN().family() == AF_INET6 ? - (theAddr.octet(idx * 2) << 8) + theAddr.octet(idx * 2 + 1) : - theAddr.octet(idx); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_switch_pp.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_switch_pp.cpp deleted file mode 100644 index 1b76e218..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_switch_pp.cpp +++ /dev/null @@ -1,20 +0,0 @@ -// Example for not indenting preprocesser statements inside switch statements
-switch(...)
-{
-case 1:
-case 2:
-{
-int v;
-...
-}
-break;
-
-#if (USE_FIVE)
-case 3:
-doFive();
-break;
-#endif
-
-default:
-break;
-}
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_ternary-1.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_ternary-1.cpp deleted file mode 100644 index 7281a2e6..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_ternary-1.cpp +++ /dev/null @@ -1,76 +0,0 @@ -namespace ns1 { - int getval(void); - void baz(void); -} - - -int foo(int in1, int in2, float in3, double in4) { - int a; int b; int c; int d; - int e; int f; int g; int h; - - a = (in1 < 10) ? in2 : - ns1::getval(); - - b = (in1 < 20) ? in2 : - int(in3 * 0.4); - - c = (in1 < 30) ? in2 : - 1.25 * in4; - - d = (in1 < 40) ? in2 : - -3; - - e = (in1 < 50) ? in2 : - ~3 ^ in1; - - f = (in1 < 60) ? in2 : - !(in1 == in2); - - g = (in1 < 70) ? in2 : - ++in1; - - h = (in1 < 80) ? in2 : - in1 * 2; - - if ((in1 < 10) ? in2 : - ns1::getval()) { - ns1::baz(); - } - - if ((in1 < 20) ? in2 : - int(in3 * 0.4)) { - ns1::baz(); - } - - if ((in1 < 30) ? in2 : - 1.25 * in4) { - ns1::baz(); - } - - if ((in1 < 40) ? in2 : - -3) { - ns1::baz(); - } - - if ((in1 < 50) ? in2 : - ~3 ^ in1) { - ns1::baz(); - } - - if ((in1 < 60) ? in2 : - !(in1 == in2)) { - ns1::baz(); - } - - if ((in1 < 70) ? in2 : - ++in1) { - ns1::baz(); - } - - if ((in1 < 80) ? in2 : - in1 * 2) { - ns1::baz(); - } - - return a+b+c+d+e+f+g+h; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_var_def.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_var_def.cpp deleted file mode 100644 index 394cfb63..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_var_def.cpp +++ /dev/null @@ -1,7 +0,0 @@ -void function(){ -int n; -float f; -anotherFunction(); -char foo; -somethingelse(); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_var_def_cont.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_var_def_cont.cpp deleted file mode 100644 index d273ae52..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/indent_var_def_cont.cpp +++ /dev/null @@ -1,16 +0,0 @@ -int -a, b, c; - -int d, -e, f; - -void bar(void) -{ - struct foobar -a = { 'x', 0 }; - struct foobar -b = { 'y', 2 }, -c = { 'z', 4 }; - struct foobar d = { 'y', 2 }, -e = { 'z', 4 }; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/init-list-call.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/init-list-call.cpp deleted file mode 100644 index 70451ac4..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/init-list-call.cpp +++ /dev/null @@ -1 +0,0 @@ -auto x = foo{0}(); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/init_align.h b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/init_align.h deleted file mode 100644 index ff1dcc9b..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/init_align.h +++ /dev/null @@ -1,22 +0,0 @@ -struct file_lang languages[] = -{ - { ".c", "C", LANG_C }, - { ".cpp", "CPP", LANG_CPP }, - { ".d", "D", LANG_D }, - { ".cs", "CS", LANG_CS }, - { ".vala", "VALA", LANG_VALA }, - { ".java", "JAVA", LANG_JAVA }, - { ".pawn", "PAWN", LANG_PAWN }, - { ".p", "", LANG_PAWN }, - { ".sma", "", LANG_PAWN }, - { ".inl", "", LANG_PAWN }, - { ".h", "", LANG_CPP }, - { ".cxx", "", LANG_CPP }, - { ".hpp", "", LANG_CPP }, - { ".hxx", "", LANG_CPP }, - { ".cc", "", LANG_CPP }, - { ".di", "", LANG_D }, - { ".m", "OC", LANG_OC }, - { ".sqc", "", LANG_C }, // embedded SQL -}; - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/initlist_leading_commas.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/initlist_leading_commas.cpp deleted file mode 100644 index 83188d77..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/initlist_leading_commas.cpp +++ /dev/null @@ -1,5 +0,0 @@ -MyClass::MyClass(Type *var1, Type *var2) : - BaseClass(parent) - , mVar1(var1) - , mVar2(var2) { -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/interface-keyword-in-cpp.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/interface-keyword-in-cpp.cpp deleted file mode 100644 index bc039e18..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/interface-keyword-in-cpp.cpp +++ /dev/null @@ -1,62 +0,0 @@ -#include "sdkconfig.h" - -#include <fs/nvs_storage.hpp> -#include <network/interface.hpp> - -extern "C" void app_main (void) { - fs::nvs_storage ::initialize (); - network::interface ::initialize (); -} - -#include "sdkconfig.h" -#include "esp_wifi.h" -#include "network/interface.hpp" - - -using namespace network; -void interface ::initialize () { - tcpip_adapter_init (); -} - -// ---------------------------------------- - -namespace A { - class interface { - public: - interface() { - } - - ~interface() { - } - - void foo() {} - }; -} - -namespace B { - class interface { - public: - interface(); - ~interface(); - void foo(); - }; - - inline interface :: interface() {} - inline interface :: ~interface() {} - inline void interface :: foo() {} -} - -namespace C { - class interface { - public: - interface(); - ~interface(); - void foo(); - }; - - interface :: interface() {} - interface :: ~interface() {} - void interface :: foo() {} -} - -interface :: external_iterface; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_1752.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_1752.cpp deleted file mode 100644 index e3be4d50..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_1752.cpp +++ /dev/null @@ -1,3 +0,0 @@ -#define WARN_IF(EXP) \ - do { if (EXP) \ - fprintf (stderr, "Warning: " #EXP "\n"); } \ diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_1778.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_1778.cpp deleted file mode 100644 index 4eea46e0..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_1778.cpp +++ /dev/null @@ -1,7 +0,0 @@ -using x = Foo::foo_t; - -using a1 = decltype( &Foo::operator() ); -using a2 = Bar<decltype( &Foo::operator() )>; - -using b1 = decltype( *Foo::y ); -using b2 = Bar<decltype( *Foo::y )>; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_1782.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_1782.cpp deleted file mode 100644 index c12b83d0..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_1782.cpp +++ /dev/null @@ -1,20 +0,0 @@ -using a1 = decltype(bar()); -using b1 = decltype(bar<int>()); -using c1 = decltype(foo::bar<int>()); -using d1 = decltype(*(bar<int>())); -using e1 = decltype(*(foo::bar<int>())); - -using a2 = decltype( bar ( ) ); -using b2 = decltype( bar < int > ( ) ); -using c2 = decltype( foo::bar < int > ( ) ); -using d2 = decltype( *( bar < int > ( ) ) ); -using e2 = decltype( *( foo::bar < int > ( ) ) ); - -using a3 = decltype( bar ( 0 ) ); -using b3 = decltype( bar < int > ( 0 ) ); -using c3 = decltype( foo::bar < int > ( 0 ) ); -using d3 = decltype( *( bar < int > ( 0 ) ) ); -using e3 = decltype( *( foo::bar < int > ( 0 ) ) ); - -using x1 = decltype((0)); -using x2 = decltype( ( 0 ) ); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_1804.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_1804.cpp deleted file mode 100644 index 2923a4a2..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_1804.cpp +++ /dev/null @@ -1,2 +0,0 @@ -void foo1(int(&x)[2]); -void foo2( int ( & x ) [ 2 ] ); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_1916.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_1916.cpp deleted file mode 100644 index 4c819605..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_1916.cpp +++ /dev/null @@ -1,8 +0,0 @@ -int x; - -decltype (x) y; -decltype (x) z = 5; - -decltype (char{5}) a = 'a'; - -using x_t = decltype (x) ; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_1919.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_1919.cpp deleted file mode 100644 index 187065d6..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_1919.cpp +++ /dev/null @@ -1,15 +0,0 @@ -void foo() -{ - int a; - vector<unsigned> b; - long c; - decltype(a) d; -} - -void bar() -{ - int a; - std::vector<unsigned> b; - long c; - decltype(a) d; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_1946.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_1946.cpp deleted file mode 100644 index 9682da68..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_1946.cpp +++ /dev/null @@ -1,5 +0,0 @@ -namespace foo -{ -long_type_name_t &foo1(); -foo_t &foo2(); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_1985.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_1985.cpp deleted file mode 100644 index 4e5685a1..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_1985.cpp +++ /dev/null @@ -1,44 +0,0 @@ -// Don't break a prototype followed by a one-liner -class foo1 -{ -foo1(); -foo1(int) {} -int bar(); -int bar(int) { return 0; } -foo1(long); -foo1(short) {} -int x; -}; - -// Don't break a one-liner followed by a prototype -class foo2 -{ -foo2(int) {} -foo2(); -int bar(int) { return 0; } -int bar(); -foo2(short) {} -foo2(long); -int x; -}; - -// Do break a prototype followed by a multi-line definition -class foo3 -{ -foo3(); -foo3(int) -{ - x = 0; -} -int bar(); -int bar(int) -{ - return 0; -} -foo3(long); -foo3(short) -{ - x = 0; -} -int x; -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_2000.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_2000.cpp deleted file mode 100644 index aa324f2e..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_2000.cpp +++ /dev/null @@ -1,14 +0,0 @@ -int bar; -// blank line should be inserted before this comment -vector<int> foo() -{ - return {}; -} -// blank line should be inserted before this comment, not after -template<> -volatile -int x:: -foo() -{ - return 0; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_2001.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_2001.cpp deleted file mode 100644 index 39b9446d..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_2001.cpp +++ /dev/null @@ -1,2 +0,0 @@ -extern int foo(); -extern int foo(size_t); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_2124-1.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_2124-1.cpp deleted file mode 100644 index 8c582cf9..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_2124-1.cpp +++ /dev/null @@ -1,48 +0,0 @@ -if(x)[[likely]]{} -if(x) -[[unlikely]] -{} - -g(); - -if(x)[[likely]]l(); -if(x) -[[unlikely]] -l(); - -g(); - -if(x) -[[unlikely]] -l1(); -else -l2(); - -g(); - -if(x) -#if __has_cpp_attribute(likely) -[[likely]] -#endif - return false; -else - return true; - -g(); - -while(true)[[likely]]{break;} -while(true) -[[unlikely]] -{break;} - -g(); - -if(x) - [[likely]] -{ - if(y) - [[likely]] - {} -} - -g();
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_2124-2.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_2124-2.cpp deleted file mode 100644 index 8c582cf9..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_2124-2.cpp +++ /dev/null @@ -1,48 +0,0 @@ -if(x)[[likely]]{} -if(x) -[[unlikely]] -{} - -g(); - -if(x)[[likely]]l(); -if(x) -[[unlikely]] -l(); - -g(); - -if(x) -[[unlikely]] -l1(); -else -l2(); - -g(); - -if(x) -#if __has_cpp_attribute(likely) -[[likely]] -#endif - return false; -else - return true; - -g(); - -while(true)[[likely]]{break;} -while(true) -[[unlikely]] -{break;} - -g(); - -if(x) - [[likely]] -{ - if(y) - [[likely]] - {} -} - -g();
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_2209-1.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_2209-1.cpp deleted file mode 100644 index a1ebb1a7..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_2209-1.cpp +++ /dev/null @@ -1,8 +0,0 @@ -namespace -{ - -void g(int a1234567890123456, int b1234567890123456, int c1234567890123456) -{ -} - -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_2209-2.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_2209-2.cpp deleted file mode 100644 index 5725d3d7..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_2209-2.cpp +++ /dev/null @@ -1,10 +0,0 @@ -namespace -{ - -int f = 0; - -} - -void g(int a1234567890123456, int b1234567890123456, int c1234567890123456) -{ -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_2623.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_2623.cpp deleted file mode 100644 index 5834e4b3..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_2623.cpp +++ /dev/null @@ -1,30 +0,0 @@ -void child() { - static_cast< id<Mountable >> ( object); -} - -assert(x<0 && y>=3); -assert(y <0&&z> 2); -assert(a>>1); - -std::unique_ptr<Interface< T >> GetProjectionAdapter(const std::string& model_name); - -auto c = a< b>>c; -auto c = a << b >>c; - -if (Something<a> == c) { -} - -if (id< Something<a >> == c) { -} - -const std::vector< Eigen::Matrix<T, A, B >> & P_c; - -const unsigned int wl = w>> lvl; - -using Poly = Model<P, Poly<Dx,Dy, Dz>>; - -void Compute( - Image<E::Matrix< SType, Dim,Int >> const& src, - Image< E::Matrix< TType,Dim, std::string> >& dst); - -Opt<std::vector < std::unordered_set<FrameId> >> partition; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_3105_1.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_3105_1.cpp deleted file mode 100644 index a7d8cf8a..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_3105_1.cpp +++ /dev/null @@ -1,10 +0,0 @@ -int short_function_name() -{ - call_some_really_long_function.of_some_sort(some_long_parameter1, some_long_parameter2); - - void *test_func = library->symbol( TQString(TQString("test_%1").arg(module2.factoryName())).utf8() ); - - CHECK_COMPLETE_SIZE (iceConn, ICE_AuthNextPhase, length, - message->authDataLength + SIZEOF (iceAuthNextPhaseMsg), authData, - iceConn->connect_to_you ? IceFatalToConnection : IceFatalToProtocol); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_3105_2.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_3105_2.cpp deleted file mode 100644 index 949e4fbe..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_3105_2.cpp +++ /dev/null @@ -1,107 +0,0 @@ -struct KPluginSelectionWidget::KPluginSelectionWidgetPrivate -{ - KPluginSelectionWidgetPrivate( KPluginSelector * _kps, - const TQString & _cat, - TDEConfigGroup * _config ) - : widgetstack( 0 ) - , kps( _kps ) - , config( _config ) - , tooltip( 0 ) - , catname( _cat ) - , currentplugininfo( 0 ) - , visible( true ) - , currentchecked( false ) - , changed( 0 ) - { - moduleParentComponents.setAutoDelete( true ); - } -}; - -KPasswordDialog::KPasswordDialog(Types type, bool enableKeep, int extraBttn, - TQWidget *parent, const char *name) - : KDialogBase(parent, name, true, "", Ok|Cancel|extraBttn, - Ok, true), m_Keep(enableKeep? 1 : 0), m_Type(type), m_keepWarnLbl(0), d(new KPasswordDialogPrivate) -{ - d->iconName = "password"; - init(); - - const TQString strengthBarWhatsThis(i18n("The password strength meter gives an indication of the security " - "of the password you have entered. To improve the strength of " - "the password, try:\n" - " - using a longer password;\n" - " - using a mixture of upper- and lower-case letters;\n" - " - using numbers or symbols, such as #, as well as letters.")); - - int retVal = KMessageBox::warningContinueCancel(this, - i18n( "The password you have entered has a low strength. " - "To improve the strength of " - "the password, try:\n" - " - using a longer password;\n" - " - using a mixture of upper- and lower-case letters;\n" - " - using numbers or symbols as well as letters.\n" - "\n" - "Would you like to use this password anyway?"), - i18n("Low Password Strength")); -} - -static const int POPUP_FLAGS = TQt::WStyle_Customize | TQt::WDestructiveClose | TQt::WX11BypassWM - | TQt::WStyle_StaysOnTop | TQt::WStyle_Tool | TQt::WStyle_NoBorder; - -KPassivePopup::KPassivePopup( TQWidget *parent, const char *name, WFlags f ) - : TQFrame( 0, name, (WFlags)(f ? (int)f : POPUP_FLAGS) ), - window( parent ? parent->winId() : 0L ), msgView( 0 ), topLayout( 0 ), - hideDelay( DEFAULT_POPUP_TIME ), hideTimer( new TQTimer( this, "hide_timer" ) ), - m_autoDelete( false ) -{ - init( DEFAULT_POPUP_TYPE ); - - move( right ? d->anchor.x() - width() + 20 : ( d->anchor.x() < 11 ? 11 : d->anchor.x() - 20 ), - bottom ? d->anchor.y() - height() : ( d->anchor.y() < 11 ? 11 : d->anchor.y() ) ); -} - -TDEToggleAction *showMenubar( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *_name ) -{ - TDEToggleAction *ret; - ret = new TDEToggleAction(i18n("Show &Menubar"), "showmenu", TDEStdAccel::shortcut(TDEStdAccel::ShowMenubar), recvr, slot, - parent, _name ? _name : name(ShowMenubar)); - ret->setWhatsThis( i18n( "Show Menubar<p>" - "Shows the menubar again after it has been hidden" ) ); - KGuiItem guiItem( i18n("Hide &Menubar"), 0 /*same icon*/, TQString::null, - i18n( "Hide Menubar<p>" - "Hide the menubar. You can usually get it back using the right mouse button inside the window itself." ) ); - return ret; -} - -KProgressBoxDialog::KProgressBoxDialog(TQWidget* parent, const char* name, - const TQString& caption, const TQString& text, - bool modal) - : KDialogBase(KDialogBase::Plain, caption, KDialogBase::Cancel, - KDialogBase::Cancel, parent, name, modal), - mAutoClose(true), - mAutoReset(false), - mCancelled(false), - mAllowCancel(true), - mAllowTextEdit(false), - mShown(false), - mMinDuration(2000), - d(new KProgressBoxDialogPrivate) -{ - KWin::setIcons(winId(), kapp->icon(), kapp->miniIcon()); -} - -TDEPopupMenu *KPixmapRegionSelectorWidget::createPopupMenu() -{ - TDEPopupMenu *popup=new TDEPopupMenu(this, "PixmapRegionSelectorPopup"); - popup->insertTitle(i18n("Image Operations")); - - TDEAction *action = new TDEAction(i18n("&Rotate Clockwise"), "object-rotate-right", - 0, TQT_TQOBJECT(this), TQT_SLOT(rotateClockwise()), - TQT_TQOBJECT(popup), "rotateclockwise"); - action->plug(popup); - - action = new TDEAction(i18n("Rotate &Counterclockwise"), "object-rotate-left", - 0, TQT_TQOBJECT(this), TQT_SLOT(rotateCounterclockwise()), - TQT_TQOBJECT(popup), "rotatecounterclockwise"); - action->plug(popup); - return popup; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_3116-2.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_3116-2.cpp deleted file mode 100644 index 6e007772..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_3116-2.cpp +++ /dev/null @@ -1,41 +0,0 @@ -obj.AddObject(Object::UniqueName(), 10, [this] { - holder.Access([this](const auto &info) { - if (IsGood(info)) { - Add(info); - } -}); -}); - -obj.AddObject( - Object::UniqueName(), - 10, - [this] { - holder.Access([this](const auto &info) { - if (IsGood(info)) { - Add(info); - } -}); -} -); - -{ - obj.AddObject(Object::UniqueName(), 10, [this] { - holder.Access([this](const auto &info) { - if (IsGood(info)) { - Add(info); - } - }); - }); - - obj.AddObject( - Object::UniqueName(), - 10, - [this] { - holder.Access([this](const auto &info) { - if (IsGood(info)) { - Add(info); - } - }); - } - ); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_3116.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_3116.cpp deleted file mode 100644 index 9a4a03d5..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_3116.cpp +++ /dev/null @@ -1,213 +0,0 @@ -// Singular with various newline formats -auto f = [] -> void { - return; -}; - -auto f = [] -> void { - return; -}(); - -auto f = [] -> void -{ - return; -}(); - -auto f = -[] -> void { - return; -}; - -auto f = -[] -> void -{ - return; -}; - -auto f - = [] -> void { - int i = 0; - return; - }; - -auto f - = [] - { - int i = 0; - return; - }; - -// Nested lambda -auto f = [] { - auto g = [] { - auto h = [] { - return; - }; - return; - }; - return; -}; - -auto f = [] { - auto g = [] - { - auto h = [] { - return; - }; - return; - }; - return; -}; - -auto f = [] -{ - auto g = [] { - auto h = [] - { - return; - }; - return; - }; - return; -}; - -// Nested lambda within functions -FuncA( - [] { return; }, - [] { return; } -); - -FuncB([] { return; }, - [] { return; } -); - -FuncC([] { return; }, - [] { return; } -)(); - -FuncD([] { return; }, - [] { return; })(); - -FuncE([] { return; }, - [] { return; }); - -A( - B([] (const std::string &s) -> bool { - s = "hello"; - return true; - }), 1 - ); - -A( - B( - [] (const std::string &s) -> bool { - s = "hello"; - return true; - } - ), 1 - ); - -// Inside scope -{ - std::thread([](const char *c) { - std::cout << c << std::endl; - }).detach(); - - std::thread( - [](const char *c) { - std::cout << c << std::endl; - } - ).detach(); - - auto f = [&](int a) { - return b; - }; - - auto f = [&](int a) - { - return b; - }; -} - -Func(std::count_if(v.begin(), v.end(), [&](const auto &a) { - return a == 3; - })); - -Func( - std::count_if(v.begin(), v.end(), [&](const auto &a) - { - return a == 3; - })); - -Func( - std::count_if(v.begin(), v.end(), [&](const auto &a) { - return a == 3; - })); - -Func( - std::count_if(v.begin(), v.end(), [&](const auto &a) { - return a == 3; - }) - ); - -// Test case from issue #3116 -const auto compare = [] (const auto i, const auto j) -{ - return i >= j; -}; - -std::sort( - vector.begin(), - vector.end(), - [] (const auto i, const auto j) -{ - return i >= j; -} -); - -// Test case from issue #3116 -if(isWidgetOfCurrentRow) -{ - it = std::find_if( - reloaded.begin(), - reloaded.end(), - [&rowGuid](const auto& device) - { - return (device.thingGUID == rowGuid && !device.isWidget); - } - ); -} -else -{ - it = std::find_if( - reloaded.begin(), - reloaded.end(), - [&rowGuid](const auto& device) - { - return device.thingGUID == rowGuid; - } - ); -} - -// Test case from issue 1296 and some variants -obj->Func([&](int a) - { - return b; - }); - -obj->Func([] -> int - { - return b; - }); - -obj->Func([] - { - return b; - } - ); - -obj->Func( - Func([] - { - return b; - }) - ); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_3330.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_3330.cpp deleted file mode 100644 index 37062480..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_3330.cpp +++ /dev/null @@ -1,9 +0,0 @@ -class Spaceship -{ -public: - Spaceship():shields(100) - { - } - - int shields; -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_3368.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_3368.cpp deleted file mode 100644 index 2158086c..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_3368.cpp +++ /dev/null @@ -1,10 +0,0 @@ -class Spaceship -{ -public: - template<class T> - Spaceship<T>():shields(100) - { - } - - int shields; -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_3378.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_3378.cpp deleted file mode 100644 index 319c3151..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_3378.cpp +++ /dev/null @@ -1,28 +0,0 @@ -class Foo -{ - public: - int bar() - { -one: - two: - three: - four: - five: - six: - seven: - eight: - nine: - ten: - eleven: - twelve: - thirteen: - fourteen: - fifteen: - sixteen: - seventeen: - eighteen: - nineteen: - twenty: - return 0; - } -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_523.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_523.cpp deleted file mode 100644 index d203e398..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_523.cpp +++ /dev/null @@ -1,4 +0,0 @@ - -#define MACRO(templ_type) template <typename T> class Abc<templ_type<T> > { } - -template<typename T> class Foo<Bar<T> > { }; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_547_for_each.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_547_for_each.cpp deleted file mode 100644 index cfbe7963..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_547_for_each.cpp +++ /dev/null @@ -1,4 +0,0 @@ -void foo()
-{
- for_each(it.begin(), it.end(), func);
-}
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_564.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_564.cpp deleted file mode 100644 index 0c289a8a..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_564.cpp +++ /dev/null @@ -1,3 +0,0 @@ -CGPathMoveToPoint (bottomArrow, NULL, round(aPoint.x) + .5/self.contentsScale -3, aPoint.y - aLength+1 +4);
-CGPathAddLineToPoint(bottomArrow, NULL, round(aPoint.x) + .5/self.contentsScale , aPoint.y - aLength+1 );
-CGPathAddLineToPoint(bottomArrow, NULL, round(aPoint.x) + .5/self.contentsScale +3, aPoint.y - aLength+1 +4);
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_574-i.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_574-i.cpp deleted file mode 100644 index c7730a54..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_574-i.cpp +++ /dev/null @@ -1,5 +0,0 @@ -class A
-{
-void check( int strList = 13);
-};
-int A = 5;
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_574.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_574.cpp deleted file mode 100644 index 96e910ca..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_574.cpp +++ /dev/null @@ -1,13 +0,0 @@ -class A {
-// crash (two parameter, 2nd string parameter has space)
-void check( const QObject* object, const QStringList& strList=QStringList(QString(QLatin1String("one two"))));
-// no crash (two parameter, 2nd string parameter has no space)
-void check( const QObject* object, const QStringList& strList= QStringList(QString(QLatin1String("one"))));
-// no crash (removed QLatin1String)
-void check( const QObject* object, const QStringList& strList =QStringList(QString(("one two"))));
-// no crash (removed QString(QLatin1String))
-void check( const QObject* object, const QStringList& strList = QStringList());
-// no crash (removed 1st parameter only)
-void check( const QStringList& strList = QStringList(QString(QLatin1String("one two"))) );
-};
-int A=5;
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_624_angle.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_624_angle.cpp deleted file mode 100644 index 255db223..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_624_angle.cpp +++ /dev/null @@ -1,2 +0,0 @@ -auto c = a < b >> 1;
-auto c = a < b;
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_633_typename.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_633_typename.cpp deleted file mode 100644 index e99742ef..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_633_typename.cpp +++ /dev/null @@ -1,24 +0,0 @@ -template < typename TImage > -class MorphologicalContourInterpolator: - public ImageToImageFilter< TImage, TImage > -{ - template < typename T > - friend class MorphologicalContourInterpolatorParallelInvoker; - friend class ::MultiLabelMeshPipeline; - -public: - /** Standard class typedefs. */ - typedef MorphologicalContourInterpolator Self; - -protected: - MorphologicalContourInterpolator(); - ~MorphologicalContourInterpolator() {} - typename TImage::PixelType m_Label; - int m_Axis; - bool m_HeuristicAlignment; - -private: - MorphologicalContourInterpolator( const Self& ) ITK_DELETE_FUNCTION; - void - operator=( const Self& ) ITK_DELETE_FUNCTION; -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_672.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_672.cpp deleted file mode 100644 index 6d8dde90..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/issue_672.cpp +++ /dev/null @@ -1,8 +0,0 @@ -class -MyClass -{ -public: - void f123(MyType1 AAAAAAAAAAAAAA, MyType2 BBBBBBBBBBBB, int XXXXXXXXXXXXXXX); - void foo(::some::very::looong::_and::complicated::name::MyType& a, ::some::very::looong::_and::complicated::name::MyType& b, - some::very::looong::_and::complicated::name::MyType& c); -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/kw_subst.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/kw_subst.cpp deleted file mode 100644 index e57868e2..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/kw_subst.cpp +++ /dev/null @@ -1,32 +0,0 @@ -#include <string> - -class CFoo -{ -int foo1(int arg); -int foo2(); -int foo3(char ch, int xx) -{ -} -}; - -int CFoo::foo1(int arg, int arg2) -{ -} - -int CFoo::foo2() -{ -} - -int CFoo::operator +() -{ -} - -map<string, int> func() -{ - // some codes -} - -int some_func(void) -{ -} - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/kw_subst2.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/kw_subst2.cpp deleted file mode 100644 index d167cc1c..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/kw_subst2.cpp +++ /dev/null @@ -1,36 +0,0 @@ -#include <string> - -namespace bar -{ - -class CFoo -{ -int foo1(int arg); -private: -int foo2() -{ -} -}; - -int CFoo::foo1(int arg, char arg2) -{ -} - -int CFoo::foo2() -{ -} - -int CFoo::operator +() -{ -} - -map<string, int> func() -{ - // some codes -} - -int some_func(void) -{ -} - -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/lambda.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/lambda.cpp deleted file mode 100644 index 7bc50606..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/lambda.cpp +++ /dev/null @@ -1,103 +0,0 @@ -void f1() -{ - auto a = - [=] (int *a, Something & b) - { - std::cout << "blah: " << *a; - }; -} - -void f1a() -{ - std::for_each(a, b, - [](Something & b) - { - std::cout << "blah: " << *a; - }); -} - -void f1b() -{ - std::for_each(a, b, - [](int & b) -> foo - { - b += 3; - return b; - }); -} - -void f2() -{ - Invoke(a, b, - [&one, two](int *a, Something & b) - { - std::cout << "blah: " << *a; - }); -} - -void f3a() -{ - auto a = [] {}; - auto b = []{return true;}; -} - -void f3b() -{ - Invoke(a, b, - [&one, two] - { - std::cout << "blah: " << one << two; - }); -} - -void f3c() -{ - int a[]{}; -} - -void g1() -{ - auto a = [ = ](int* a, Something &b) { std::cout << "blah: " << *a; }; -} - -void g1a() -{ - std::for_each(a, b, [](Something& b){std::cout<<"blah: "<<* a;}); -} - -void g1b() -{ - std::for_each(a, b, [] (int& b)->foo{ b+=3; return(b); }); -} - -void g2() -{ - Invoke(a, b, - [&one, two] (int *a, Something&b){ std::cout << "blah: " << *a; }); -} - -void h1() -{ - []() -> int - { - return 33; - }(); - - []() noexcept -> int - { - return 33; - }(); -} - -void h2() -{ - [](int a) -> int - { - return a + 33; - }(21); - - [](int a) noexcept -> int - { - return a + 33; - }(21); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/lambda2.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/lambda2.cpp deleted file mode 100644 index a4b8a8c6..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/lambda2.cpp +++ /dev/null @@ -1,108 +0,0 @@ -void f1() -{ - auto a = - [=](int *a, Something & b) - { - std::cout << "blah: " << *a; - }; -} - -void f1a() -{ - std::for_each(a, b, - [](Something & b) - { - std::cout << "blah: " << *a; - } - ); -} - -void f1b() -{ - std::for_each(a, b, - [](int & b) -> foo - { - b += 3; - return b; - } - ); -} - -void f2() -{ - Invoke(a, b, - [&one, two](int *a, Something & b) - { - std::cout << "blah: " << *a; - } - ); -} - -void f3a() -{ - auto a = [] {}; - auto b = []{return true;}; -} - -void f3b() -{ - Invoke(a, b, - [&one, two] - { - std::cout << "blah: " << one << two; - } - ); -} - -void f3c() -{ - int a[]{}; -} - -void g1() -{ - auto a = [ = ](int* a, Something &b) { std::cout << "blah: " << *a; }; -} - -void g1a() -{ - std::for_each(a, b, [](Something& b){std::cout<<"blah: "<<* a;}); -} - -void g1b() -{ - std::for_each(a, b, [] (int& b)->foo{ b+=3; return(b); }); -} - -void g2() -{ - Invoke(a, b, - [&one, two] (int *a, Something&b){ std::cout << "blah: " << *a; }); - -} - -void h1() -{ - []() -> int - { - return 33; - }(); - - []() noexcept -> int - { - return 33; - }(); -} - -void h2() -{ - [](int a) -> int - { - return a + 33; - }(21); - - [](int a) noexcept -> int - { - return a + 33; - }(21); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/lambda_brace_list.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/lambda_brace_list.cpp deleted file mode 100644 index da3db41f..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/lambda_brace_list.cpp +++ /dev/null @@ -1,9 +0,0 @@ -template<typename T, typename U> -auto add(T t, U u) -> decltype(t + u) {return t + u;} - -int main() -{ - auto f1 = [&]() { return 1; }; - auto f2 = [&]() -> decltype(auto) { return 2; }; - string s1{ 'a', 'b' }; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/lambda_in_one_liner.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/lambda_in_one_liner.cpp deleted file mode 100644 index c740c4bd..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/lambda_in_one_liner.cpp +++ /dev/null @@ -1,6 +0,0 @@ -void bar(); - -struct foo -{ - foo() { []{ bar(); }(); } -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/lambda_selfcalling.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/lambda_selfcalling.cpp deleted file mode 100644 index 543290fa..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/lambda_selfcalling.cpp +++ /dev/null @@ -1,12 +0,0 @@ -void f(){ - int i = 0; - const auto j = [](int k){ - return k+2; - } - (i); - - const auto l = ([](int k){ - return k+2; - }) - (i); -}
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/lineEndings-Mac.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/lineEndings-Mac.cpp deleted file mode 100644 index 608952c0..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/lineEndings-Mac.cpp +++ /dev/null @@ -1 +0,0 @@ -int main ()
{
a = 5;
bbbb = 6.0;
int a = 5;
float bbbb = 6.0;
bbbb = 1.0
}
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/lineEndings-Unix.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/lineEndings-Unix.cpp deleted file mode 100644 index cdbf7653..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/lineEndings-Unix.cpp +++ /dev/null @@ -1,9 +0,0 @@ -int main () -{ - a = 5; - bbbb = 6.0; - int a = 5; - float bbbb = 6.0; - - bbbb = 1.0 -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/lineEndings-Win.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/lineEndings-Win.cpp deleted file mode 100644 index 20fa083a..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/lineEndings-Win.cpp +++ /dev/null @@ -1,9 +0,0 @@ -int main ()
-{
- a = 5;
- bbbb = 6.0;
- int a = 5;
- float bbbb = 6.0;
-
- bbbb = 1.0
-}
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/long_br_cmt.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/long_br_cmt.cpp deleted file mode 100644 index a7638876..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/long_br_cmt.cpp +++ /dev/null @@ -1,59 +0,0 @@ - -namespace a::b -{ -void foo::bar(int xx) -{ -switch(xx) -{ - -case 1: - // filler - while (true) -{ -if (something) -{ -do_something(); - - - -} -else if (something_else) -{ -do_something_else(); -} -else -{ -dont_do_anything(); -break; -} - -} -break; - -case 2: - handle_two(); - -default: - handle_the_rest(); - break; -} -} - -class long_class -{ -private: - -int m_a; -int m_name; - -public: -long_class(int a) {} - -void f1() {} - -void f2() {} - -void f3() {} - -}; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/long_lines.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/long_lines.cpp deleted file mode 100644 index ee154e8b..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/long_lines.cpp +++ /dev/null @@ -1,25 +0,0 @@ -void main() -{ - if (true) - { - /* Output the coordinates of the icon */ - snprintf(&ret[strlen(ret)], ret_max-strlen(ret), "\nx=\"0px\"\ny=\"0px\"\n"); - snprintf(&ret[strlen(ret)], ret_max-strlen(ret), "width=\"%d\"\n", icon->icon_width); - snprintf(&ret[strlen(ret)], ret_max-strlen(ret), "height=\"%d\"\n", icon->icon_height); - snprintf(&ret[strlen(ret)], ret_max-strlen(ret), "viewBox=\"%lf %lf %lf %lf\"\n", icon->x, icon->y, icon->width, icon->height); - - snprintf(&ret[strlen(ret)], ret_max-strlen(ret), icon->x, icon->y, bar("viewBox=\"%lf %lf %lf %lf\"\n", icon->width), icon->height); - - snprintf(&ret[strlen(ret)], ret_max-strlen(ret), "viewBox=\"%lf %lf %lf %lf\"\n", icon->x, icon->y, icon->width, icon->height); - snprintf(&ret[strlen(ret)], ret_max-strlen(ret), "viewBox=\"%lf %lf %lf %lf\"\n", foo(icon->x, icon->y, icon->width), icon->height); - snprintf(&ret[strlen(ret)], ret_max-strlen(ret), icon->x, icon->y, bar("viewBox=\"%lf %lf %lf %lf\"\n", icon->width), icon->height); - snprintf(&ret[strlen(ret)], ret_max-foo(ret, par), icon->x, icon->y, bar("viewBox=\"%lf %lf %lf %lf\"\n", icon->width), icon->height); - - create_a_reeeeeeeeeeeeeeeeeeeeeeeeeeeeally_long_identifier name(some_function(bar1 + bar2), bar3, bar4); - create_a_reeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeally_long_identifier name(some_function(bar1 + bar2), bar3, bar4); - - abc.def.ghi = call_some_other_really_long_function.of_some_sort_of_very_very_very_loooooooooong(some_long_parameter1, some_long_parameter2); - } -} - -#define FOO(bar) create_a_really_long_identifier name(some_function(bar1 + bar2), bar3, bar4); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/long_namespace.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/long_namespace.cpp deleted file mode 100644 index 89fe4435..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/long_namespace.cpp +++ /dev/null @@ -1,15 +0,0 @@ -namespace boo3 {
-int Fun1()
-{
- return 42;
-}
-}
-
-namespace boo4 {
- int Fun2()
- {
- int a = 7;
- int b = 8;
- return a+b;
- }
-}
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/macro_spaces.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/macro_spaces.cpp deleted file mode 100644 index c27c6b5d..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/macro_spaces.cpp +++ /dev/null @@ -1,2 +0,0 @@ -#if (WINVER < 0x0601)
-#endif
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/misc.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/misc.cpp deleted file mode 100644 index 8a73b431..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/misc.cpp +++ /dev/null @@ -1,60 +0,0 @@ - -/* Not detected as a prototype? Spacing wrong. */ -static struct my_entry *get_first_entry(const CHAR *blah); -static CFooo::entry *get_next_entry(const CHAR *blah); -static struct my_entry *get_next_entry(const CHAR *blah); - -/* Not handling prototype params: */ -typedef void (*function_name)(my_t * p_my, int foo); -typedef void (*function_name)(my_t * , int ); - -typedef enum -{ - one = 1, - three = 3, - five_hundred = 5, - a_really_really_big_number = 6, - two = 7, - a_really_really_really_big_number = 8, -}yuck_t; - -const char *names[] = -{ - one = "one", - three = "three", - five_hundred = "five_hundred", - a_really_really_big_number = "a_really_really_big_number", - two = "two", - a_really_really_really_big_number = "a_really_really_really_big_number", -}; - -bool foo(char c) -{ - xWindow *pWindow = ::RelatedWindow(); - - /* space between ] and ( */ - function_list[idx](param); - - /* Indenting with multiple members: */ - sass.asdfvas->asdfasd[asdfasdf]. - asdfasdf = 5; - - ::asdasda::adasd:: - asdfasdf = 5; - - dookie::wookie << "asd" - << "bag" - << "sag"; - - sp_sign = 4 - - 5; -sp_sign = -sp_sign; -sp_sign = 4 + + 7; -sp_sign = + sp_sign; -sp_sign = 4 + + sp_sign; -} - -#ifndef abc - -#define abc 123 /* some comment */ - -#endif /* another comment diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/misc2.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/misc2.cpp deleted file mode 100644 index b6ce3078..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/misc2.cpp +++ /dev/null @@ -1,59 +0,0 @@ -/* -I tried to modify the spaces when using casts like static_cast etc. by -using sp_before_angle, sp_after_angle and sp_inside_angle. Even setting -all of those options to remove results in the following: -*/ - -myvar = dynamic_cast < MyClass<T>* > (other); -// expected: -//myvar = dynamic_cast<MyClass<T>*>(other); - -/* -Sometime pointers and references are still not detected correctly in -special cases - i guess. -*/ -//When using "sp_before_ptr_star = remove" the result is: -typedef std::list<StreamedData *>::iterator iterator; -//typedef std::list<StreamedData *>::iterator iterator; -//------------------------------^ This space show not be there - -typedef void (T::*Routine)(void); - -//Similar with "sp_before_byref = remove": -unsigned long allocate(unsigned long size, void* & p); -//unsigned long allocate(unsigned long size, void* & p); -//------------------------------------------------^ The same here - -void foo(void) -{ - List<byte>bob = new List<byte> (); - - /* Align assignments */ - align_assign(Chunk::GetHead(), - cpd.settings[UO_align_assign_span].n, - cpd.settings[UO_align_assign_thresh].n); -} - -Args::Args(int argc, char **argv) -{ - m_count = argc; - m_values = argv; - int len = (argc >> 3) + 1; - m_used = new UINT8[len]; - if (m_used != NULL) - { - memset(m_used, 0, len); - } -} - -void Args(int argc, char **argv) -{ - m_count = argc; - m_values = argv; - int len = (argc >> 3) + 1; - m_used = new UINT8[len]; - if (m_used != NULL) - { - memset(m_used, 0, len); - } -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/misc3.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/misc3.cpp deleted file mode 100644 index c7c10d6c..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/misc3.cpp +++ /dev/null @@ -1,25 +0,0 @@ -// When constructing an object there should not be any space between the & and the variable name: - -MyClass my1(foo,& bar); -MyClass my2(foo, bar); -MyClass my3(foo, bar + 3); -MyClass my4(42); -MyClass my5(foo(), bar); -MyClass my6(int foo, int& bar); -MyClass my7(const int foo, int& bar); - - -//When using references inside of casts there is also an additional space after the &: - -MyClass& myInst = static_cast<MyClass& >(otherInst); - - -// When using the qt-specific signals and slots the pointer star is separated from the type with a space: - -connect(&mapper, SIGNAL(mapped(QWidget *)), this, SLOT(onSomeEvent(QWidget*))); - -extern int select(int __nfds, fd_set * __restrict __readfds, - fd_set * __restrict __writefds, - fd_set * __restrict __exceptfds, - struct timeval * __restrict __timeout); - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/misc4.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/misc4.cpp deleted file mode 100644 index 725fa160..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/misc4.cpp +++ /dev/null @@ -1,28 +0,0 @@ -struct X { - void operator deleteme(void*); - void deallocate(int*p){ - operator delete((void*)p); - delete((void*)q); - } -}; - -int f(bool b) { -typedef int mytype; -if (b) -return int(42.0); -else -return mytype(42.0); -} - -struct X { -double f(int n) -{ -return double(n); -} -}; - -inline value_type operator () () const - { - return (double(rnd32()) * (0.5 / 0x80000000)); - } - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/misc5.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/misc5.cpp deleted file mode 100644 index 570a4a76..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/misc5.cpp +++ /dev/null @@ -1,13 +0,0 @@ -typedef std::list<StreamedData*>::iterator iterator; -double foo() -{ - if (a<bar()> c) -{ -throw int(); -return(double()); -} - call_a_function(42, - double(-1), - "charray"); -return(foo(n)); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/misc6.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/misc6.cpp deleted file mode 100644 index 95cc0383..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/misc6.cpp +++ /dev/null @@ -1,3 +0,0 @@ -#include <vector> -void f(std::vector<int> * vip, std::vector<int> & vir); - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/mod_remove_empty_return-2.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/mod_remove_empty_return-2.cpp deleted file mode 100644 index eb949c45..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/mod_remove_empty_return-2.cpp +++ /dev/null @@ -1,10 +0,0 @@ -namespace ComponentSpec { -void build(Context c) -{ - if (index == NSNotFound) { - return; - } - - invokeUpdateInvitees(c, invitees); -} -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/mod_remove_empty_return.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/mod_remove_empty_return.cpp deleted file mode 100644 index ca3105da..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/mod_remove_empty_return.cpp +++ /dev/null @@ -1,4 +0,0 @@ -void a() -{ - return; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/ms-style-ref.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/ms-style-ref.cpp deleted file mode 100644 index 213393b9..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/ms-style-ref.cpp +++ /dev/null @@ -1,9 +0,0 @@ -Foo^ foo = dynamic_cast<Bar^>(bar); -Foo* foo = dynamic_cast<Bar*>(bar); -x = a^b; - -int main(Platform::Array<Platform::String^>^ /*args*/) -{ -} - -Platform::Array<unsigned char>^ a; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/multi_line.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/multi_line.cpp deleted file mode 100644 index df5f3a84..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/multi_line.cpp +++ /dev/null @@ -1,43 +0,0 @@ - -void func_a ( int a, string b, char c ); - -void func_b ( int a, - string b, char c ); - -void func_c ( int a, string b, char c - ); - -void func_d ( int aaaaaaaaaaaaaa, string bbbbbbbbbbbbbb, char cccccccccccccccccc ); - -void func_a ( int a, string b, char c ) -{ - return; -} - -void func_b ( int a, - string b, char c ) -{ - return; -} - -void func_c ( int a, string b, char c - ) -{ - return; -} - -void func_d ( int aaaaaaaaaaaaaa, string bbbbbbbbbbbbbb, char cccccccccccccccccc ) -{ - return; -} - -void func_call() -{ - func_a ( 1, 2, 3); - func_b ( 4, - 5, 6 ); - func_c ( 7, 8, 9 - ); - - func_d ( "aaaaaaaaaaaaaaaaaa", "bbbbbbbbbbbbbbbbbb", "cccccccccccccccccccccc" ); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/namespace_namespace.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/namespace_namespace.cpp deleted file mode 100644 index cf6f921e..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/namespace_namespace.cpp +++ /dev/null @@ -1,6 +0,0 @@ -namespace hw { namespace stm32 { - -class RTC { -}; - -}} // namespace hw::stm32 diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/new_op.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/new_op.cpp deleted file mode 100644 index 828215e8..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/new_op.cpp +++ /dev/null @@ -1,9 +0,0 @@ -Foo* foo = new Foo(a,v); - -Foo* foo = new(ptr,std::nothrow)Foo[]; -Foo* foo = new(ptr)Foo(); -Foo* foo = new(FOO(ptr))Foo(); - -Foo* foo = new ( ptr,std::nothrow ) Foo[]; -Foo* foo = new ( ptr ) Foo(); -Foo* foo = new ( FOO(ptr) ) Foo(); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl-class.h b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl-class.h deleted file mode 100644 index 128974b7..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl-class.h +++ /dev/null @@ -1,59 +0,0 @@ -#ifndef NL_CLASS_H_INCLUDED -#define NL_CLASS_H_INCLUDED - -#include <string> - -namespace example { - -class IStreamable; -class InStream; -class OutStream; - -/** - * Timestamp is a timestamp with nanosecond resolution. - */ -class Inher - : public IStreamable -{ - -public: - Inher(); - virtual ~Inher(); - -}; - -/** - * Timestamp is a timestamp with nanosecond resolution. - */ -class Inher2 - : public IStreamable { - -public: - - Inher2(); - Inher2(long sec, unsigned long nsec); - -}; - -class Simple { - -public: - - Simple(); - virtual ~Simple(); - -}; - -class Simple2 -{ - -public: - - Simple2(); - virtual ~Simple2(); - -}; - -} // namespace - -#endif // NL_CLASS_H_INCLUDED diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl-namespace.h b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl-namespace.h deleted file mode 100644 index a436fcb7..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl-namespace.h +++ /dev/null @@ -1,15 +0,0 @@ -namespace ns1 { - - void *foo(void); - void bar(void); - -} - -namespace ns2 -{ - - void *foo(void); - void bar(void); - -} - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_assign_leave_one_liners.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_assign_leave_one_liners.cpp deleted file mode 100644 index cf3325f0..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_assign_leave_one_liners.cpp +++ /dev/null @@ -1 +0,0 @@ -int q[] = { 3, 4 }; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_before_after.h b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_before_after.h deleted file mode 100644 index fb77edf1..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_before_after.h +++ /dev/null @@ -1,95 +0,0 @@ -namespace A { -namespace S { -class C -{ -public: - virtual ~C() - { - } - - virtual void addSearch(const int &col) = 0; - - virtual void removeSearch(int id) = 0; -}; -} // namespace S -} // namespace A - -namespace B { -// This is a comment! -class D -{ -public: - D(); -}; -} // namespace B - -// This is also a comment! -class E -{ -public: - E(); -}; -namespace F { -} -void foo(); -class G -{ -}; -void bar(); - -void foo2(); -namespace E -{ -} -void bar2(); - -void foo3(); -namespace F -{ -} - -void bar3(); - -void foo4(); -class I -{ -}; -using namespace F; -namespace M -{ -void bar4(); -/* multiline test comment - before class */ -template<typename ... Args> -// test comment between template specification and associated class -class H -{ - // nested class -template<typename ...> -friend class I; -friend class J; - // nested class K -template<typename T> -class K -{ - // double-nested class L -class L { }; -}; -}; -} - -class AA; -class AB; - -namespace BA -{ -class BB; -class BC; - -class BD -{ -public: - friend class BE; - BD(); -}; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_before_brace_open_test.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_before_brace_open_test.cpp deleted file mode 100644 index 6e3daf66..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_before_brace_open_test.cpp +++ /dev/null @@ -1,23 +0,0 @@ -int foo1() { int i; if (true) { i=2; }} - -namespace { int foo1() { int i; if (true) { i=2; }}} - -class bar { - int foo1() { int i; i = 1; if (true) { i=2; }} - int foo2() { int i; i = 1; if (true) { i=2; }} -} - -#ifdef __cplusplus -extern "C" { -#endif - -static const kjs_double_t NaN_Bytes = {{0x7f, 0xf8, 0, 0, 0, 0, 0, 0}}; - -#ifdef __cplusplus -} -#endif - -static struct LanguageForEncoding { - const char *index; int data; -} const language_for_encoding[] = { {"iso 8859-1", 13}, {"iso 8859-15", 13} } - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_before_func_body_def.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_before_func_body_def.cpp deleted file mode 100644 index c7cab4c7..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_before_func_body_def.cpp +++ /dev/null @@ -1,60 +0,0 @@ -lass A -{ - void f0(void); - template<typename T, typename U> - void g(T s, U t) - { - return; - } - void f1(void); - template - <typename T, - typename U> - void h(T s, U t) - { - return; - } - void f2(void); - template - <typename T, - typename U> - void - i(T s, U t) - { - return; - } - void f3(void); - template - <typename T, - typename U> - void - j - (T s, U t) - { - return; - } - void f4(void); - template - <typename T, - typename U> - void - k - ( - T s, U t) - { - return; - } - void f5(void); - template - <typename T, - typename U> - void - l - ( - T s, - U t - ) - { - return; - } -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_before_struct_scoped_enum.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_before_struct_scoped_enum.cpp deleted file mode 100644 index f4065b20..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_before_struct_scoped_enum.cpp +++ /dev/null @@ -1,9 +0,0 @@ -int main(); - -enum struct Baz -{ - Abc = 4 - , Def = 1 -}; - -Baz decide( Baz, Baz ) noexcept; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_before_struct_struct.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_before_struct_struct.cpp deleted file mode 100644 index edac027c..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_before_struct_struct.cpp +++ /dev/null @@ -1,15 +0,0 @@ -#include <string> - -struct Foo -{ - std::string name; - int value; -}; - -struct Bar -{ - Foo* parent; - int modifier; -}; - -void baz( Foo*, Bar* ); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_brace_brace.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_brace_brace.cpp deleted file mode 100644 index b698546a..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_brace_brace.cpp +++ /dev/null @@ -1,18 +0,0 @@ - -SHOW_VAR status_vars[]= { { "Aborted_clients", (char *)&aborted_threads, -SHOW_LONGLONG, } }; - -SHOW_VAR status_vars[]= -{ -{ "Aborted_clients", (char *)&aborted_threads, -SHOW_LONGLONG, } -}; - -SHOW_VAR status_vars[]= -{ -{ -"Aborted_clients", (char *)&aborted_threads, -SHOW_LONGLONG, -} -}; - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_fdef_brace_cond-f.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_fdef_brace_cond-f.cpp deleted file mode 100644 index 6250d752..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_fdef_brace_cond-f.cpp +++ /dev/null @@ -1,17 +0,0 @@ -void f(){} -void f() -{} - -void f()const{} -void f()const -{} - -void f()noexcept(){} -void f()noexcept() -{} - -void f()/**/{} -void f()/**/ -{} -void f()// -{}
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_fdef_brace_cond-fr.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_fdef_brace_cond-fr.cpp deleted file mode 100644 index 6250d752..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_fdef_brace_cond-fr.cpp +++ /dev/null @@ -1,17 +0,0 @@ -void f(){} -void f() -{} - -void f()const{} -void f()const -{} - -void f()noexcept(){} -void f()noexcept() -{} - -void f()/**/{} -void f()/**/ -{} -void f()// -{}
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_fdef_brace_cond-r.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_fdef_brace_cond-r.cpp deleted file mode 100644 index 6250d752..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_fdef_brace_cond-r.cpp +++ /dev/null @@ -1,17 +0,0 @@ -void f(){} -void f() -{} - -void f()const{} -void f()const -{} - -void f()noexcept(){} -void f()noexcept() -{} - -void f()/**/{} -void f()/**/ -{} -void f()// -{}
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_fdef_brace_cond-rf.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_fdef_brace_cond-rf.cpp deleted file mode 100644 index 6250d752..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_fdef_brace_cond-rf.cpp +++ /dev/null @@ -1,17 +0,0 @@ -void f(){} -void f() -{} - -void f()const{} -void f()const -{} - -void f()noexcept(){} -void f()noexcept() -{} - -void f()/**/{} -void f()/**/ -{} -void f()// -{}
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_for_leave_one_liners.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_for_leave_one_liners.cpp deleted file mode 100644 index 382d2815..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_for_leave_one_liners.cpp +++ /dev/null @@ -1 +0,0 @@ -for (int i = 0; i < 10; ++i) i++;
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_func-2.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_func-2.cpp deleted file mode 100644 index 864a4277..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_func-2.cpp +++ /dev/null @@ -1,32 +0,0 @@ -class BSRRE1D_file : PhysicalFile -{ - int getFoo() { return(m_foo); } - - - - - void setFoo(int foo) { m_foo = foo; } - public BSRRE1D_file() - { - this.addFormatName("BSRRE1DF"); - } -private int m_foo; - public void xxx() - { - ahoj(); - } // comment - - - - - public void yyy() - { - ahoj(); - } - - /* comment 2 */ - public void xxx() - { - ahoj(); - } -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_func.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_func.cpp deleted file mode 100644 index e27d7e55..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_func.cpp +++ /dev/null @@ -1,23 +0,0 @@ -class BSRRE1D_file : PhysicalFile -{ - int getFoo() { return(m_foo); } - void setFoo(int foo) { m_foo = foo; } - public BSRRE1D_file() - { - this.addFormatName("BSRRE1DF"); - } -private int m_foo; - public void xxx() - { - ahoj(); - } // comment - public void yyy() - { - ahoj(); - } - /* comment 2 */ - public void xxx() - { - ahoj(); - } -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_func_call_empty.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_func_call_empty.cpp deleted file mode 100644 index 6678ee18..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_func_call_empty.cpp +++ /dev/null @@ -1,3 +0,0 @@ -SomeFunction
-(
-);
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_func_call_paren.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_func_call_paren.cpp deleted file mode 100644 index 309a65a9..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_func_call_paren.cpp +++ /dev/null @@ -1,4 +0,0 @@ -SomeFunction(
- someVar,
- someOtherVar,
- );
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_func_call_paren_empty.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_func_call_paren_empty.cpp deleted file mode 100644 index 6678ee18..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_func_call_paren_empty.cpp +++ /dev/null @@ -1,3 +0,0 @@ -SomeFunction
-(
-);
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_func_decl.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_func_decl.cpp deleted file mode 100644 index 91a7184f..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_func_decl.cpp +++ /dev/null @@ -1,31 +0,0 @@ - -void bla ( ); -void ble -( -int a, -char b -); -void ble2 ( int a, char b ); - - -void bla() -{ -} - -void bla2 -( -) -{ -} - -void ble( int a, char b ) -{ -} - -void ble2 -( -int a, -char b -) -{ -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_func_def_paren_empty.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_func_def_paren_empty.cpp deleted file mode 100644 index f1ba8607..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_func_def_paren_empty.cpp +++ /dev/null @@ -1,21 +0,0 @@ -void LocalClass::LocalClass()
-{
- int Function
- (
- )
- {
- return 0;
- }
-
- int Function(
- )
- {
- return 0;
- }
-
- int Function
- ()
- {
- return 0;
- }
-}
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_func_paren_empty.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_func_paren_empty.cpp deleted file mode 100644 index 19965aac..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_func_paren_empty.cpp +++ /dev/null @@ -1,9 +0,0 @@ -int Function
- (
- );
-
-int Function(
- );
-
-int Function
- ();
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_func_scope_name.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_func_scope_name.cpp deleted file mode 100644 index d221e974..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_func_scope_name.cpp +++ /dev/null @@ -1,2 +0,0 @@ -void A::f() -{} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_func_type_name.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_func_type_name.cpp deleted file mode 100644 index 26e49663..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_func_type_name.cpp +++ /dev/null @@ -1,73 +0,0 @@ - -//zero -// one -// two -// three -void foo(void); - -struct A -{ -public: -long_complicated_type f(); -A& operator+(const A& other); -}; - -A& A::operator+(const A& other) -{} - -B -operator+(const B& other) -{} - -B foo(const B& other) -{} - -class A -{ -public: -explicit A(int); -int aFunct() { return a; } -int bFunc(); -}; - -// Another file -int -A::bFunc() -{ -// some code -} - -template<typename T> -typename Foo<T>::Type Foo<T>::Func() -{ -} - -void Foo::bar() {} - -namespace foo { -Foo::Foo() {} -} - -Foo::~Foo() {} - -class Object -{ - ~Object(void); -}; - -template <class T> -void SampleClassTemplate<T>::connect() -{ -} - -template <> -inline void bar<MyType>(MyType r) -{ - foo(r); -} - -template <T> -inline void baz<>(T r) -{ - foo(r); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_inside_namespace.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_inside_namespace.cpp deleted file mode 100644 index 4bdcb394..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_inside_namespace.cpp +++ /dev/null @@ -1,37 +0,0 @@ -namespace cats -{ // rule - - -int count; -void meow(); - - -} - -namespace dogs { // drool - - -int count; -void bark(); - - -} - -namespace pigs { - - -int count; -void oink(); - - -} - -namespace owls -{ - - -int count; -void hoot(); - - -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_max_blank_in_func.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_max_blank_in_func.cpp deleted file mode 100644 index c87e6e68..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/nl_max_blank_in_func.cpp +++ /dev/null @@ -1,142 +0,0 @@ -//regular function -void func0() -{ - - - - - return; -} -// ======================================================================== -//member function -void cls::func1() -{ - - - - - return; -} -// ======================================================================== -//lambda function -const auto l = [](){ - - - - - return 1; -}; -// ======================================================================== -//regular function in class -class cls -{ -public: - - - - -void func0() -{ - - - - - return; -} - - - - -} -// ======================================================================== -//member function in class - -// ======================================================================== -//lambda function in class -class cls -{ -pubic: - - - - -const auto l = [](){ - - - - - return 1; -}; - - - - -} -// ======================================================================== -//regular function in class in namespace -namespace ns -{ - - - - -class cls -{ -public: - - - - -void func0() -{ - - - - - return; -} - - - - -} - - - - -} -// ======================================================================== -//member function in class in namespace - -// ======================================================================== -//lambda function in class in namespace -namespace ns -{ - - - - -class cls -{ -pubic: - - - - -const auto l = [](){ - - - - - return 1; -}; - - - - -} - - - - -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/noexcept.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/noexcept.cpp deleted file mode 100644 index e6ea9116..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/noexcept.cpp +++ /dev/null @@ -1 +0,0 @@ -foo()noexcept; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/not_lambda.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/not_lambda.cpp deleted file mode 100644 index a9c65439..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/not_lambda.cpp +++ /dev/null @@ -1,8 +0,0 @@ -int ff() -{ - // not a lambda fcn so don't surround "->" by spaces - f()[0]->size(); - if(true) { - return 1; - } -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/op_sym_empty.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/op_sym_empty.cpp deleted file mode 100644 index 4b79ca9e..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/op_sym_empty.cpp +++ /dev/null @@ -1,5 +0,0 @@ -class Foo -{ -bool operator ==( const Foo & other ) const; -Bar & operator * ( ) const; -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/operator.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/operator.cpp deleted file mode 100644 index 6f2a7f03..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/operator.cpp +++ /dev/null @@ -1,88 +0,0 @@ - -struct bar; -struct foo -{ -operator bar*(); -auto operator <=> (const foo& rhs) const = default; -}; - -class Foo { - Foo operator+ (const Foo& rhs) const; - - const Foo& operator ==(Foo& me); - - bool operator> (const Foo& rhs) const; - - InStream& operator << (InStream& in); -} - -const Foo& Foo::operator ==(Foo& me) -{ -} - -Foo Foo::operator+ (const Foo& rhs) const -{ -} - -bool Foo::operator> (const Foo& rhs) const -{ -} - -class Example -{ - char m_array[256]; - - Example & operator=(const Example &rhs); - Example & operator+=(const Example &rhs); - const Example operator+(const Example &other) const; - bool operator==(const Example &other) const; - bool operator!=(const Example &other) const; - Example operator+ (const Example & x, const Example & y); - Example operator* (const Example & x, const Example & y); - - double& operator() (int row, int col); - double operator() (int row, int col) const; - void operator++ (); - int& operator* (); - Example& operator++ (); // prefix ++ - Example operator++ (int); // postfix ++ - - bool operator < (const Example& lhs, const Example& rhs) const; - - int operator()(int index) - { - i = ~ ~3; - return index + 1; - } - - char& operator[](unsigned i) - { - return m_array[i & 0xff]; - } -} - bool Example::operator==(const Example &other) const - { - /*TODO: compare something? */ - return false; - } - bool Example::operator!=(const Example &other) const - { - return ! operator ==(other); - } - - -void a() { -Op op = &X::operator==; -if (!A) -if (op != &X::operator==) -A(1) = a; -if (!A) { -if (op != &X::operator==) -A(1) = a; -} -} - -void *operator new(std::size_t) throw(std::bad_alloc); -void *operator new[ ](std::size_t) throw(std::bad_alloc); -void operator delete(void *) throw(); -void operator delete[ ](void *) throw(); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/operator_proto.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/operator_proto.cpp deleted file mode 100644 index b14935ee..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/operator_proto.cpp +++ /dev/null @@ -1,65 +0,0 @@ -/* A collection of all the different known operator prototypes in C++ */ - -// arithmetic operators -Type1 operator + (const Type1& a); // +a -Type1 operator + (const Type1& a, const Type2& b); // a + b -Type1& operator ++(Type1& a); // ++a -Type1 operator ++(Type1& a, int); // a++ -Type1& operator +=(Type1& a, const Type1& b); // a += b -Type1 operator - (const Type1& a); // -a -Type1& operator --(Type1& a); // --a -Type1 operator --(Type1& a, int); // a-- -Type1& operator -=(Type1& a, const Type1& b); // a -= b -Type1 operator * (const Type1& a, const Type1& b); // a * b -Type1& operator *=(Type1& a, const Type1& b); // a *= b -Type1 operator / (const Type1& a, const Type1& b); // a / b -Type1& operator /=(Type1& a, const Type1& b); // a /= b -Type1 operator % (const Type1& a, const Type1& b); // a % b -Type1& operator %=(Type1& a, const Type1& b); // a %= b - -// comparison operators -bool operator < (const Type1& a, const Type1& b); // a < b -bool operator <= (const Type1& a, const Type1& b); // a <= b -bool operator > (const Type1& a, const Type1& b); // a > b -bool operator >= (const Type1& a, const Type1& b); // a >= b -bool operator != (const Type1& a, const Type1& b); // a != b -bool operator == (const Type1& a, const Type1& b); // a == b -bool operator <=>(const Type1& a, const Type1& b); // a <=> b - -// logical operators -bool operator ! (const Type1& a); // !a -bool operator &&(const Type1& a, const Type1& b); // a && b -bool operator ||(const Type1& a, const Type1& b); // a || b - -// bitwise operators -Type1 operator << (const Type1& a, const Type1& b); // a << b -Type1& operator <<=(Type1& a, const Type1& b); // a <<= b -Type1 operator >> (const Type1& a, const Type1& b); // a >> b -Type1& operator >>=(Type1& a, const Type1& b); // a >>= b -Type1 operator ~ (const Type1& a); // ~a -Type1 operator & (const Type1& a, const Type1& b); // a & b -Type1& operator &= (Type1& a, const Type1& b); // a &= b -Type1 operator | (const Type1& a, const Type1& b); // a | b -Type1& operator |= (Type1& a, const Type1& b); // a |= b -Type1 operator ^ (const Type1& a, const Type1& b); // a ^ b -Type1& operator ^= (Type1& a, const Type1& b); // a ^= b - -// other operators -Type1& Type1::operator = (const Type1& b); // a = b -void operator()(Type1& a); // a() -const Type2& operator[](const Type1& a, const Type1& b); // a[b] -Type2& operator*(const Type1& a); // *a -Type2* operator&(const Type1& a); // &a -Type2* Type1::operator->(); // a->b -Type1::operator type(); // (type)a -Type2& operator ,(const Type1& a, Type2& b); // a, b -void *Type1::operator new(size_t x); // new Type1 -void *Type1::operator new[](size_t x); // new Type1[n] -void *Type1::operator delete(size_t x); // delete a -void *Type1::operator delete[](size_t x); // delete [] a - -// Misc examples -int& operator* (); -Foo::operator const char *(); -Foo::operator const Bar&(); - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/out-668.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/out-668.cpp deleted file mode 100644 index 0dac74c3..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/out-668.cpp +++ /dev/null @@ -1,4 +0,0 @@ -int b() -{ - int abcde= 13; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/output.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/output.cpp deleted file mode 100644 index a770b7ca..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/output.cpp +++ /dev/null @@ -1,657 +0,0 @@ -/** - * @file output.cpp - * Does all the output & comment formatting. - * - * $Id: output.cpp 510 2006-09-20 01:14:56Z bengardner $ - */ - -#include "uncrustify_types.h" -#include "prototypes.h" -#include "chunk.h" -#include <cstring> -#include <cstdlib> - - - -void add_char(char ch) -{ - /* convert a newline into the LF/CRLF/CR sequence */ - if (ch == '\n') - { - fputs(cpd.newline, cpd.fout); - cpd.column = 1; - cpd.did_newline = 1; - } - else - { - fputc(ch, cpd.fout); - if (ch == '\t') - { - cpd.column = next_tab_column(cpd.column); - } - else - { - cpd.column++; - } - } -} - -void add_text(const char *text) -{ - char ch; - - while ((ch = *text) != 0) - { - text++; - add_char(ch); - } -} - -void add_text_len(const char *text, int len) -{ - while (len-- > 0) - { - add_char(*text); - text++; - } -} - - -/** - * Advance to a specific column - * cpd.column is the current column - * - * @param column The column to advance to - */ -void output_to_column(int column, bool allow_tabs) -{ - int nc; - - cpd.did_newline = 0; - if (allow_tabs) - { - /* tab out as far as possible and then use spaces */ - while ((nc = next_tab_column(cpd.column)) <= column) - { - add_text("\t"); - } - } - /* space out the final bit */ - while (cpd.column < column) - { - add_text(" "); - } -} - -void output_indent(int column, int brace_col) -{ - if ((cpd.column == 1) && (cpd.settings[UO_indent_with_tabs].n != 0)) - { - if (cpd.settings[UO_indent_with_tabs].n == 2) - { - brace_col = column; - } - - /* tab out as far as possible and then use spaces */ - int nc; - while ((nc = next_tab_column(cpd.column)) <= brace_col) - { - add_text("\t"); - } - } - - /* space out the rest */ - while (cpd.column < column) - { - add_text(" "); - } -} - - - -void output_parsed(FILE *pfile) -{ - Chunk *pc; - int cnt; - - output_options(pfile); - output_defines(pfile); - output_types(pfile); - - fprintf(pfile, "-=====-\n"); - fprintf(pfile, "Line Tag Parent Columns Br/Lvl/pp Flg Nl Text"); - for (pc = Chunk::GetHead(); pc != NULL; pc = pc->GetNext()) - { - fprintf(pfile, "\n%3d> %13.13s[%13.13s][%2d/%2d/%2d][%d/%d/%d][%6x][%d-%d]", - pc->GetOrigLine(), get_token_name(pc->GetType()), - get_token_name(pc->GetParentType()), - pc->GetColumn(), pc->GetOrigCol(), pc->GetOrigColEnd(), - pc->GetBraceLevel(), pc->GetLevel(), pc->GetPpLevel(), - pc->GetFlags(), pc->GetNlCount(), pc->GetAfterTab()); - - if ((pc->GetType() != CT_NEWLINE) && (pc->len != 0)) - { - for (cnt = 0; cnt < pc->GetColumn(); cnt++) - { - fprintf(pfile, " "); - } - fprintf(pfile, "%.*s", pc->len, pc->GetStr()); - } - } - fprintf(pfile, "\n-=====-\n"); - fflush(pfile); -} - -void output_options(FILE *pfile) -{ - int idx; - const option_map_value *ptr; - - fprintf(pfile, "-== Options ==-\n"); - for (idx = 0; idx < UO_option_count; idx++) - { - ptr = get_option_name(idx); - if (ptr != NULL) - { - if (ptr->GetType() == AT_BOOL) - { - fprintf(pfile, "%3d) %32s = %s\n", - ptr->id, ptr->name, - cpd.settings[ptr->id].b ? "True" : "False"); - } - else if (ptr->GetType() == AT_IARF) - { - fprintf(pfile, "%3d) %32s = %s\n", - ptr->id, ptr->name, - (cpd.settings[ptr->id].a == AV_ADD) ? "Add" : - (cpd.settings[ptr->id].a == AV_REMOVE) ? "Remove" : - (cpd.settings[ptr->id].a == AV_FORCE) ? "Force" : "Ignore"); - } - else if (ptr->GetType() == AT_LINE) - { - fprintf(pfile, "%3d) %32s = %s\n", - ptr->id, ptr->name, - (cpd.settings[ptr->id].le == LE_AUTO) ? "Auto" : - (cpd.settings[ptr->id].le == LE_LF) ? "LF" : - (cpd.settings[ptr->id].le == LE_CRLF) ? "CRLF" : - (cpd.settings[ptr->id].le == LE_CR) ? "CR" : "???"); - } - else /* AT_NUM */ - { - fprintf(pfile, "%3d) %32s = %d\n", - ptr->id, ptr->name, cpd.settings[ptr->id].n); - } - } - } -} - -/** - * This renders the chunk list to a file. - */ -void output_text(FILE *pfile) -{ - Chunk *pc; - Chunk *prev; - int cnt; - int lvlcol; - bool allow_tabs; - - cpd.fout = pfile; - - for (pc = Chunk::GetHead(); pc != NULL; pc = pc->GetNext()) - { - if (pc->GetType() == CT_NEWLINE) - { - for (cnt = 0; cnt < pc->GetNlCount(); cnt++) - { - add_char('\n'); - } - cpd.did_newline = 1; - cpd.column = 1; - LOG_FMT(LOUTIND, " xx\n"); - } - else if (pc->GetType() == CT_COMMENT_MULTI) - { - output_comment_multi(pc); - } - else if (pc->GetType() == CT_COMMENT_CPP) - { - pc = output_comment_cpp(pc); - } - else if (pc->len == 0) - { - /* don't do anything for non-visible stuff */ - LOG_FMT(LOUTIND, " <%d> -", pc->GetColumn()); - } - else - { - /* indent to the 'level' first */ - if (cpd.did_newline) - { - if (cpd.settings[UO_indent_with_tabs].n == 1) - { - lvlcol = 1 + (pc->GetBraceLevel() * cpd.settings[UO_indent_columns].n); - if ((pc->GetColumn() >= lvlcol) && (lvlcol > 1)) - { - output_to_column(lvlcol, true); - } - } - allow_tabs = (cpd.settings[UO_indent_with_tabs].n == 2) || - (pc->IsComment() && - (cpd.settings[UO_indent_with_tabs].n != 0)); - - LOG_FMT(LOUTIND, " %d> col %d/%d - ", pc->GetOrigLine(), pc->GetColumn(), cpd.column); - } - else - { - /* not the first item on a line */ - if (cpd.settings[UO_align_keep_tabs].b) - { - allow_tabs = pc->GetAfterTab(); - } - else - { - prev = pc->GetPrev(); - allow_tabs = (cpd.settings[UO_align_with_tabs].b && - ((pc->GetFlags() & PCF_WAS_ALIGNED) != 0) && - (((pc->GetColumn() - 1) % cpd.settings[UO_output_tab_size].n) == 0) && - ((prev->GetColumn() + prev->len + 1) != pc->GetColumn())); - } - LOG_FMT(LOUTIND, " %d -", pc->GetColumn()); - } - - output_to_column(pc->GetColumn(), allow_tabs); - add_text_len(pc->GetStr(), pc->len); - cpd.did_newline = pc->IsNewline(); - } - } -} - - -/** - * Given a multi-line comemnt block that starts in column X, figure out how - * much subsequent lines should be indented. - * - * The answer is either 0 or 1. - * - * The decision is based on: - * - the first line length - * - the second line leader length - * - the last line length - * - * If the first and last line are the same length and don't contain any alnum - * chars and (the first line len > 2 or the second leader is the same as the - * first line length), then the indent is 0. - * - * If the leader on the second line is 1 wide or missing, then the indent is 1. - * - * Otherwise, the indent is 0. - * - * @param str The comment string - * @param len Length of the comment - * @param start_col Starting column - * @return 0 or 1 - */ -static int calculate_comment_body_indent(const char *str, int len, int start_col) -{ - int idx = 0; - int first_len = 0; - int last_len = 0; - int width = 0; - - /* find the last line length */ - for (idx = len - 1; idx > 0; idx--) - { - if ((str[idx] == '\n') || (str[idx] == '\r')) - { - idx++; - while ((idx < len) && ((str[idx] == ' ') || (str[idx] == '\t'))) - { - idx++; - } - last_len = len - idx; - break; - } - } - - /* find the first line length */ - for (idx = 0; idx < len; idx++) - { - if ((str[idx] == '\n') || (str[idx] == '\r')) - { - first_len = idx; - while ((str[first_len - 1] == ' ') || (str[first_len - 1] == '\t')) - { - first_len--; - } - - /* handle DOS endings */ - if ((str[idx] == '\r') && (str[idx + 1] == '\n')) - { - idx++; - } - idx++; - break; - } - } - - /* Scan the second line */ - width = 0; - for ( /* nada */; idx < len; idx++) - { - if ((str[idx] == ' ') || (str[idx] == '\t')) - { - if (width > 0) - { - break; - } - continue; - } - if ((str[idx] == '\n') || (str[idx] == '\r')) - { - /* Done with second line */ - break; - } - - /* Count the leading chars */ - if ((str[idx] == '*') || - (str[idx] == '|') || - (str[idx] == '\\') || - (str[idx] == '#') || - (str[idx] == '+')) - { - width++; - } - else - { - break; - } - } - - //LOG_FMT(LSYS, "%s: first=%d last=%d width=%d\n", __func__, first_len, last_len, width); - - /*TODO: make the first_len minimum (4) configurable? */ - if ((first_len == last_len) && ((first_len > 4) || first_len == width)) - { - return(0); - } - - return((width == 2) ? 0 : 1); -} - -/** - * Outputs the CPP comment at pc. - * CPP comment combining is done here - * - * @return the last chunk output'd - */ -Chunk *output_comment_cpp(Chunk *first) -{ - int col = first->GetColumn(); - int col_br = 1 + (first->GetBraceLevel() * cpd.settings[UO_indent_columns].n); - - /* Make sure we have at least one space past the last token */ - if (first->GetParentType() == CT_COMMENT_END) - { - Chunk *prev = first->GetPrev(); - if (prev != NULL) - { - int col_min = prev->GetColumn() + prev->len + 1; - if (col < col_min) - { - col = col_min; - } - } - } - - /* Bump out to the column */ - output_indent(col, col_br); - - if (!cpd.settings[UO_cmt_cpp_to_c].b) - { - add_text_len(first->GetStr(), first->len); - return(first); - } - - /* If we are grouping, see if there is something to group */ - bool combined = false; - if (cpd.settings[UO_cmt_cpp_group].b) - { - /* next is a newline by definition */ - Chunk *next = first->GetNext(); - if ((next != NULL) && (next->GetNlCount() == 1)) - { - next = next->GetNext(); - - /** - * Only combine the next comment if they are both at indent level or - * the second one is NOT at indent or less - * - * A trailing comment cannot be combined with a comment at indent - * level or less - */ - if ((next != NULL) && - (next->GetType() == CT_COMMENT_CPP) && - (((next->GetColumn() == 1) && (first->GetColumn() == 1)) || - ((next->GetColumn() == col_br) && (first->GetColumn() == col_br)) || - ((next->GetColumn() > col_br) && (first->GetParentType() == CT_COMMENT_END)))) - { - combined = true; - } - } - } - - if (!combined) - { - /* nothing to group: just output a single line */ - add_text_len("/*", 2); - if ((first->GetStr()[2] != ' ') && (first->GetStr()[2] != '\t')) - { - add_char(' '); - } - add_text_len(&first->GetStr()[2], first->len - 2); - add_text_len(" */", 3); - return(first); - } - - Chunk *pc = first; - Chunk *last = first; - - /* Output the first line */ - add_text_len("/*", 2); - if (combined && cpd.settings[UO_cmt_cpp_nl_start].b) - { - /* I suppose someone more clever could do this without a goto or - * repeating too much code... - */ - goto cpp_newline; - } - goto cpp_addline; - - /* Output combined lines */ - while ((pc = pc->GetNext()) != NULL) - { - if ((pc->GetType() == CT_NEWLINE) && (pc->GetNlCount() == 1)) - { - continue; - } - if (pc->GetType() != CT_COMMENT_CPP) - { - break; - } - if (((pc->GetColumn() == 1) && (first->GetColumn() == 1)) || - ((pc->GetColumn() == col_br) && (first->GetColumn() == col_br)) || - ((pc->GetColumn() > col_br) && (first->GetParentType() == CT_COMMENT_END))) - { - last = pc; -cpp_newline: - add_char('\n'); - output_indent(col, col_br); - add_char(' '); - add_char(cpd.settings[UO_cmt_star_cont].b ? '*' : ' '); -cpp_addline: - if ((pc->GetStr()[2] != ' ') && (pc->GetStr()[2] != '\t')) - { - add_char(' '); - } - add_text_len(&pc->GetStr()[2], pc->len - 2); - } - } - - if (cpd.settings[UO_cmt_cpp_nl_end].b) - { - add_char('\n'); - output_indent(col, col_br); - } - add_text_len(" */", 3); - return(last); -} - -void output_comment_multi(Chunk *pc) -{ - int cmt_col = pc->GetColumn(); - const char *cmt_str; - int remaining; - char ch; - Chunk *prev; - char line[1024]; - int line_len; - int line_count = 0; - int ccol; - int col_diff = 0; - int xtra = 1; - - prev = pc->GetPrev(); - if ((prev != NULL) && (prev->GetType() != CT_NEWLINE)) - { - cmt_col = pc->GetOrigCol(); - } - else - { - col_diff = pc->GetOrigCol() - pc->GetColumn(); - } - - // fprintf(stderr, "Indenting1 line %d to col %d (orig=%d) col_diff=%d\n", - // pc->GetOrigLine(), cmt_col, pc->GetOrigCol(), col_diff); - - xtra = calculate_comment_body_indent(pc->GetStr(), pc->len, pc->GetColumn()); - - ccol = 1; - remaining = pc->len; - cmt_str = pc->GetStr(); - line_len = 0; - while (remaining > 0) - { - ch = *cmt_str; - cmt_str++; - remaining--; - - /* handle the CRLF and CR endings. convert both to LF */ - if (ch == '\r') - { - ch = '\n'; - if (*cmt_str == '\n') - { - cmt_str++; - remaining--; - } - } - - /* Find the start column */ - if (line_len == 0) - { - if (ch == ' ') - { - ccol++; - continue; - } - else if (ch == '\t') - { - ccol = calc_next_tab_column(ccol, cpd.settings[UO_input_tab_size].n); - continue; - } - else - { - //fprintf(stderr, "%d] Text starts in col %d\n", line_count, ccol); - } - } - - line[line_len++] = ch; - - /* If we just hit an end of line OR we just hit end-of-comment... */ - if ((ch == '\n') || (remaining == 0)) - { - line_count++; - - /* strip trailing tabs and spaces before the newline */ - if (ch == '\n') - { - line_len--; - while ((line_len > 0) && - ((line[line_len - 1] == ' ') || - (line[line_len - 1] == '\t'))) - { - line_len--; - } - line[line_len++] = ch; - } - line[line_len] = 0; - - if (line_count == 1) - { - /* this is the first line - add unchanged */ - - /*TODO: need to support indent_with_tabs mode 1 */ - output_to_column(cmt_col, cpd.settings[UO_indent_with_tabs].b); - add_text_len(line, line_len); - } - else - { - /* This is not the first line, so we need to indent to the - * correct column. - */ - ccol -= col_diff; - if (ccol < cmt_col) - { - ccol = cmt_col; - } - - if (line[0] == '\n') - { - /* Emtpy line - just a '\n' */ - if (cpd.settings[UO_cmt_star_cont].b) - { - output_to_column(cmt_col, cpd.settings[UO_indent_with_tabs].b); - add_text((xtra == 1) ? " *" : "*"); - } - add_char('\n'); - } - else - { - /* If this doesn't start with a '*' or '|' */ - if ((line[0] != '*') && (line[0] != '|') && (line[0] != '#') && - (line[0] != '\\') && (line[0] != '+')) - { - output_to_column(cmt_col, cpd.settings[UO_indent_with_tabs].b); - if (cpd.settings[UO_cmt_star_cont].b) - { - add_text((xtra == 1) ? " * " : "* "); - } - else - { - add_text(" "); - } - output_to_column(ccol, cpd.settings[UO_indent_with_tabs].b); - } - else - { - output_to_column(cmt_col + xtra, cpd.settings[UO_indent_with_tabs].b); - } - add_text_len(line, line_len); - } - } - line_len = 0; - ccol = 1; - } - } -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/override_virtual.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/override_virtual.cpp deleted file mode 100644 index 537454b1..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/override_virtual.cpp +++ /dev/null @@ -1,16 +0,0 @@ -struct A -{ - virtual void foo(); - virtual void bar() = 0; - virtual void baz() const { - } -}; - -struct B : public A -{ - virtual void foo() override; - void bar() override { - } - void baz() const override { - } -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/parameter-packs.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/parameter-packs.cpp deleted file mode 100644 index 6d734b1f..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/parameter-packs.cpp +++ /dev/null @@ -1,77 +0,0 @@ -template<typename...A, int...B> -struct foo1:foo1<A..., (sizeof...(A)+B)...> -{ - foo1() { - int x = sizeof...(A); - } -}; - -template<int...X> int bar1() -{ - auto s = sizeof...(X); - chomp(X)...; - return X+...; -} - -template<class R, typename...Args> -void call1v(R(*fp)(Args...)); - -template<class R, typename...Args> -void call1p(R(*fp)(Args*...)); - -template<class R, typename...Args> -void call1r(R(*fp)(Args&&...)); - -template<class R, typename...Args> -struct invoke1v : invoke<R(*)(Args...)> -{ -}; - -template<class R, typename...Args> -struct invoke1p : invoke<R(*)(Args*...)> -{ -}; - -template<class R, typename...Args> -struct invoke1r : invoke<R(*)(Args&&...)> -{ -}; - -template < typename ... A , int ... B > -struct foo2 : foo2 < A ... , ( sizeof ... ( A ) + B ) ... > -{ - foo2() { - int x = sizeof ... ( A ); - } -}; - -template < int ... X > int bar2() -{ - auto s = sizeof ... ( X ); - chomp( X ) ...; - return X + ...; -} - -template < class R , typename ... Args > -void call2v( R ( *fp ) ( Args ... ) ); - -template < class R , typename ... Args > -void call2p( R ( *fp ) ( Args * ... ) ); - -template < class R , typename ... Args > -void call2r( R ( *fp ) ( Args && ... ) ); - -template < class R , typename ... Args > -struct invoke2v : invoke < R ( * ) ( Args ... ) > -{ -}; - -template < class R , typename ... Args > -struct invoke2p : invoke < R ( * ) ( Args * ... ) > -{ -}; - -template < class R , typename ... Args > -struct invoke2r : invoke < R ( * ) ( Args && ... ) > -{ -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/patch_32.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/patch_32.cpp deleted file mode 100644 index 8d9e222e..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/patch_32.cpp +++ /dev/null @@ -1 +0,0 @@ -//! test diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/pos_assign.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/pos_assign.cpp deleted file mode 100644 index af55296b..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/pos_assign.cpp +++ /dev/null @@ -1,7 +0,0 @@ -static const unsigned char radiooff_light_bits[] = -{ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x08, 0x00, 0x10, 0x00, 0x10, - 0x00, 0x10, 0x00, 0x10, 0x00, 0x10, 0x00, 0x08, 0x00, 0x08, 0x0c, 0x06, - 0xf0, 0x01 -}; - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/pos_bool_in_template.h b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/pos_bool_in_template.h deleted file mode 100644 index ef01470e..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/pos_bool_in_template.h +++ /dev/null @@ -1,7 +0,0 @@ -#include <type_traits>
-
-template<typename U, typename V, typename = std::enable_if_t<!std::is_convertible<U, V>::value && !std::is_same<U, V>::value>>
-void foo(U &&u, V &&v)
-{
-
-}
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/pos_shift.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/pos_shift.cpp deleted file mode 100644 index 4d55a541..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/pos_shift.cpp +++ /dev/null @@ -1,16 +0,0 @@ -void foo() -{ - // Ensure non-shift operators aren't changed - x = 1 + - 2; - x = 1 - + 2; - x = 1 + 2; - - // Test position of shift operator - cout << x - << y; - cout << x << - y; - cout << x << y; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/pp-define-indent.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/pp-define-indent.cpp deleted file mode 100644 index 8ec5657f..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/pp-define-indent.cpp +++ /dev/null @@ -1,35 +0,0 @@ - -#define outpsize -#define some(f)\ -foo(f) - -class CRC -{ -public: -int foo; -// Initial CRC Start Value - #define 24BITCRC ((ULONG) 0x00864CFB) // This line is not aligned with the other lines -char ch; -#define MULTI LINE DEFINE \ - in column 0 \ -that spans -//// Operations //// -public: -... -} - -{ -#if defined(WIN32) - SYSTEMTIME st; - DWORD ThreadId; -#else - struct timeval mytv; - struct tm *mytm; - pid_t ProcessId; -#endif - -#if SOME COND - (void)loop; -#endif -} - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/pp-pragma.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/pp-pragma.cpp deleted file mode 100644 index 75b3c46d..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/pp-pragma.cpp +++ /dev/null @@ -1,21 +0,0 @@ -#include <stdio.h> -int main(int argc, char** argv) -{ -#ifdef DEBUG -#define FORMAT "argc=%d\n" -std::printf(FORMAT,argc); -#undef FORMAT -#endif DEBUG -#ifdef _OPENMP -#pragma omp parallel -{ -printf("Hello from thread!\n"); -} -#endif - -#pragma CoverageScanner(cov-off) -__pragma ( CoverageScanner(cov-off) ) -_Pragma ( CoverageScanner(cov-off) ) - -return 0; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/pp_indent_brace.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/pp_indent_brace.cpp deleted file mode 100644 index 1e02efcb..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/pp_indent_brace.cpp +++ /dev/null @@ -1,24 +0,0 @@ -// Example for preprocessor statement in a function definition
-// Config uses more than tested option, uses:
-// pp_if_indent_code = 1 to enable preprocesser indent
-// pp_indent_brace = 0 to override preprocessor indent for braces
-MyClass::MyClass()
-{
- if(isSomething)
- {
- DoSomething();
- }
-
-#if (USE_FIVE)
- {
- DoSomethingAlso();
- }
-#endif
-
-#if (USE_SIX)
- {
- Six mySix;
- DoSomethingWithSix(mySix);
- }
-#endif
-}
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/pp_indent_case.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/pp_indent_case.cpp deleted file mode 100644 index da61641a..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/pp_indent_case.cpp +++ /dev/null @@ -1,23 +0,0 @@ -// Example for case in a preprocesser statement
-// Config uses more than tested option, uses:
-// pp_if_indent_code = true to enable preprocesser indent
-// pp_indent_case = false to override preprocessor indent for case blocks
-switch(...)
-{
-case 1:
-case 2:
-{
- int v;
- ...
-}
-break;
-
-#if (USE_FIVE)
- case 3:
- doFive();
- break;
-#endif
-
-default:
- break;
-}
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/pp_indent_extern.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/pp_indent_extern.cpp deleted file mode 100644 index 76cfc4bf..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/pp_indent_extern.cpp +++ /dev/null @@ -1,14 +0,0 @@ -// Example for extern "C" blocks inside preprocessor statements
-// Config uses more than tested option, uses:
-// pp_if_indent_code = true to enable preprocesser indent
-// pp_indent_extern = false to override preprocessor indent for braces
-int x = 1;
-#ifdef __cplusplus
- extern "C" {
-
- void some_c_function
- (
- void
- );
- }
-#endif
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/pp_indent_func_def.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/pp_indent_func_def.cpp deleted file mode 100644 index 7a0bcecf..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/pp_indent_func_def.cpp +++ /dev/null @@ -1,11 +0,0 @@ -// Example of function definitions inside of preprocessor statements
-// Config uses more than tested option, uses:
-// pp_if_indent_code = true to enable preprocesser indent
-// pp_indent_func_def = false to override preprocessor indent for function definitions
-int x = 1;
-#if (USE_AWESOME_FUNCTIONS)
- void MyClass::SomeAwesomeFunction()
- {
- DoSomethingInAFunction();
- }
-#endif
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/pp_multi_comment.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/pp_multi_comment.cpp deleted file mode 100644 index 98418c46..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/pp_multi_comment.cpp +++ /dev/null @@ -1,11 +0,0 @@ -#define CTOR(i, _) : \ - T(X()), \ -/* - * multi - */ \ -\ - y() \ -{ } -main() -{ } - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/proto-wrap.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/proto-wrap.cpp deleted file mode 100644 index 35e8bea3..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/proto-wrap.cpp +++ /dev/null @@ -1,4 +0,0 @@ -WRAP_FUNCTION(Foo, Bar& (void)); -WRAP_FUNCTION(Foo, Bar* (void)); -WRAP_FUNCTION(Foo, (Bar& (void))); -WRAP_FUNCTION(Foo, (Bar* (void))); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/ptr-star.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/ptr-star.cpp deleted file mode 100644 index ff0ab369..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/ptr-star.cpp +++ /dev/null @@ -1,70 +0,0 @@ -int dx = m_ClipBox.GetWidth() * GetZoom(); - -m_ClipBox.m_Pos.y = PaintClipBox.y * GetZoom(); - -int* i; -char*i; - -int MyFunc(std::string& s, char*) { -char *c = const_cast<char*>(s.c_str()); -} - -int YerFunc(std::string& s, char**) { -char **c; -int a = b[0] * c; -} - -int*X(int *i, int*); - -int *i = &a; -int *i = *b; -int *i = &*c; - -int *Aclass::X(int* i, int *); - -class Aclass { -int *X(int* i, int *); -} -extern "C" { -int foo1(int *a); -int foo2(sometype *a); -} -int bar1(int *a); -int bar2(sometype *a); - -struct X -{ -int * a; // 3:5 - -int f() -{ -return * b ; // 7:8 -} -int g() -{ -return * c ; // 11:8 -} -}; - -int *const i; -int *static i; - -static auto Func1(Model *model) -> Color*; -static auto Func1(Model *model) -> Color* { - return nullptr; -} - -auto Func2(Model *model) -> Color* const; -auto Func2(Model *model) -> Color* const { - return nullptr; -} - -auto Func3(Model *model) -> Color**; -auto Func3(Model *model) -> Color** { - return nullptr; -} - -auto Func4(Model *model) -> Color** const; -auto Func4(Model *model) -> Color** const { - return nullptr; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/qt-1.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/qt-1.cpp deleted file mode 100644 index e318c1aa..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/qt-1.cpp +++ /dev/null @@ -1,35 +0,0 @@ -class Foo: public QObject -{ -Q_OBJECT - -private slots: -void mySlot() {} - -public slots: -void publicSlot(); - -signals: -void somesignal(); - -}; - -class foo{bool b;public:int i;};class bar:public -foo{void*p;protected:double d;enum e{A,B};private:}; - -class Foo1: public QObject -{ -Q_OBJECT - -private Q_SLOTS: -void mySlot(); - -public Q_SLOTS: -void publicSlot(); - -Q_SIGNALS: -void somesignal(); -}; - -class foo1{bool b;public:int i;};class bar:public -foo1{void*p;protected:double d;}; - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/qtargs.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/qtargs.cpp deleted file mode 100644 index 5037d792..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/qtargs.cpp +++ /dev/null @@ -1,13 +0,0 @@ -void foo()
-{
- QObject::connect (m_NetworkReply,
- SIGNAL (error(QNetworkReply::NetworkError)),
- this,
- SLOT (NetworkReplyError(QNetworkReply::NetworkError)));
- QObject::connect (m_NetworkReply,
- SIGNAL (uploadProgress(qint64, qint64)),
- this,
- SLOT (NetworkReplyUploadProgress(qint64, qint64)));
- connect(&m_SendReportThread, SIGNAL(ProgressChanged(size_t, size_t)),
- SLOT(OnReportProgressChanged(size_t, size_t)));
-}
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/region.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/region.cpp deleted file mode 100644 index 28447084..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/region.cpp +++ /dev/null @@ -1,20 +0,0 @@ -class X : Y { - int foo1; - #pragma region something - int foo2 = 2; - #pragma endregion - int foo() - { - - #pragma region something else - int foo3 = 3; - #pragma region nested - int foo4 = 0; - #pragma endregion - int foo5 = 0; - #pragma endregion - } - -} - - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/return_braced_init.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/return_braced_init.cpp deleted file mode 100644 index cf86baeb..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/return_braced_init.cpp +++ /dev/null @@ -1,18 +0,0 @@ -int foo1() -{ - // should not have newline before '.' - return std::pair<int, int>{1, 2}.first; -} - -int foo2() -{ - // should be ARITH, not ADDR - return int{3} & 2; -} - -int foo3() -{ - // should be ARITH, not ADDR - constexpr static int x = 3; - return decltype(x){x} & 2; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/return_init_list.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/return_init_list.cpp deleted file mode 100644 index f58dfee5..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/return_init_list.cpp +++ /dev/null @@ -1,30 +0,0 @@ -inline static std::tuple<bool, std::string> foo(void) { -// should remain a one liner -return{true, ""s}; -} -inline static std::tuple<bool, std::string, std::string> foo(void) { -if (condition) { -// should remain a one liner -return{true, ""s, ""s}; -} -// should remain a one liner -return{false, ""s, ""s}; -} -inline static std::tuple<bool, std::string> foo(void) { -// should indent one level -return{ -true, ""s -}; -} -inline static std::tuple<bool, std::string> foo(void) { -// should indent one level on new line -return -{ true, ""s }; -} -inline static std::tuple<bool, std::string> foo(void) { -// should indent one level for braces and another level for values -return -{ -true, ""s -}; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/return_remove.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/return_remove.cpp deleted file mode 100644 index 41eafbc9..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/return_remove.cpp +++ /dev/null @@ -1,9 +0,0 @@ -void -function(skip_it) -{ - if (skip_it) - return; - - do_it(); - return; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/returns.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/returns.cpp deleted file mode 100644 index 1085bd72..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/returns.cpp +++ /dev/null @@ -1,34 +0,0 @@ -#define foo1(x) { return x; } -#define foo2(x) { return(x); } -#define foo3(x) { return (x); } -#define foo4(x) { return{x}; } -#define foo5(x) { return {x}; } -#define foo6(x) { return/**/x; } - -#define case1(x) return x -#define case2(x) return(x) -#define case3(x) return (x) -#define case4(x) return{x} -#define case5(x) return {x} -#define case6(x) return/**/x - -void foo(int x) -{ - switch (x) - { - case 1: - return 1; - case 2: - return(2); - case 3: - return (3); - case 4: - return{4}; - case 5: - return {5}; - case 6: - return/**/6; - default: - return; - } -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sef.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sef.cpp deleted file mode 100644 index add2fc4a..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sef.cpp +++ /dev/null @@ -1,6 +0,0 @@ -CFoo::CFoo(const DWORD something, const RECT& positionRect, const UINT aNumber, bool thisIsReadOnly, const CString& windowTitle, CInfo *pStructInfo, int widthOfSomething) : CSuperFoo(something, positionRect, aNumber, -thisIsReadOnly, windowTitle), m_pInfo(pInfo), m_width(widthOfSomething) -{ -} - -// this_comment_has_a_first_word_that_is_too_long_to_fit_into_a_line_without_wrapping and should not start with a blank comment line. diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/semi.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/semi.cpp deleted file mode 100644 index 9f7832cd..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/semi.cpp +++ /dev/null @@ -1,11 +0,0 @@ -for ( i = 1 ; i < 10 ; i++) -{ - a = i ; -} -for ( ; ; ) -{ - a = i ; b = j; - a = i ; /* comment */ - a = i ; // comment -} -if (p == b) ; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/semicolons.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/semicolons.cpp deleted file mode 100644 index 52796f75..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/semicolons.cpp +++ /dev/null @@ -1,106 +0,0 @@ -static int foo(int bar); - -static int foo(int bar) -{ - for (;;) - { - break; - };; - if (a) - { - foo();; - }; - - if (b) - if (c) - bar(); - else - ; - - else - { - foo();;;;; - }; - switch (a) - { - case 1: break; - case 2: break; - default: break;; - };; - while (b-->0) - { - bar();; - }; - do - { - bar(); - } while (b-->0 ); -}; - -enum FPP { - FPP_ONE = 1, - FPP_TWO = 2, -};; - -struct narg { - int abc; ; ; - char def; ; ; - ; - ;const char *ghi; -}; - -class CFooRun { - long stick(); - int bar() { m_ick++; }; - - CFooRun();; - ~CFooRun() {}; -}; - -void f() -{ - if (tmp[0] == "disk") - { - tmp = split (tmp[1], ","); - DiskEntry entry = { tmp[0], tmp[2], - stxxl::int64 (str2int (tmp[1])) * - stxxl::int64 (1024 * 1024) }; - disks_props.push_back (entry); - } -} - -template < class > struct type; - -template < class T > -class X { - typedef type < T > base ; - void f () { - ( base :: operator * () ) ;; - }; -}; - -namespace N -{ -class C -{ -#define NOP(x) { } -}; -} - -namespace N -{ - class C - { - }; -} - -void deallocate2(S **s_ptr) -{ - { - void *stopper_for_apply = (int[]){0}; - void **list_for_apply = (void *[]){(*s_ptr)->arr, *s_ptr, stopper_for_apply}; - for (int i = 0; list_for_apply[i] != stopper_for_apply; i++) { - saferFree((void *) & (list_for_apply[i])); - } - }; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sf.2886991.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sf.2886991.cpp deleted file mode 100644 index 97dfe0cf..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sf.2886991.cpp +++ /dev/null @@ -1,12 +0,0 @@ - -void log_fmt( log_sev_t sev, const char *fmt,... ) __attribute__((format(printf, 2, 3))); - -#define LOG_FMT(sev, args...) \ - do { if (log_sev_on(sev)) { log_fmt(sev, ## args); } } while (0) - -void foo() -{ -try {} -catch (...) // <== HERE -{} -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sf.3266678.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sf.3266678.cpp deleted file mode 100644 index 69f877ed..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sf.3266678.cpp +++ /dev/null @@ -1,5 +0,0 @@ -void CMyClass::myFunction() -{ -CMyReferencePointer & tmpPointer = (CMyReferencePointer & )getMyValue(); -} - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sf.3315874.h b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sf.3315874.h deleted file mode 100644 index 58921bc5..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sf.3315874.h +++ /dev/null @@ -1,47 +0,0 @@ -#undef dot -#undef cross - -extern "C" { -#include "data_types.h" -} - vec_ operator+(const vec_&, const vec_&); /* v = v1 + v2 */ - vec_ operator-(const vec_&, const vec_&); /* v = v1 - v2 */ - mat_ operator+(const mat_&, const mat_&); /* m = m1 + m2 */ - mat_ operator-(const mat_&, const mat_&); /* m = m1 - m2 */ - vec_& operator+=(vec_&, const vec_&); /* v += v2 */ - mat_& operator+=(mat_&, const mat_&); /* m += m2 */ - vec_& operator-=(vec_&, const vec_&); /* v -= v2 */ - mat_& operator-=(mat_&, const mat_&); /* m -= m2 */ - vec_ operator*(double, const vec_&); /* v = a * v1 */ - mat_ operator*(double, const mat_&); /* m = a * m1 */ - vec_ operator*(const vec_&, double); /* v = v1 * a */ - mat_ operator*(const mat_&, double); /* m = m1 * a */ - vec_ operator/(const vec_&, double); /* v = v1 / a */ - mat_ operator/(const mat_&, double); /* m = m1 / a */ - vec_ operator*=(vec_&, const double a); /* v *= a */ - vec_ operator/=(vec_&, const double a); /* v /= a */ - vec_ operator*(const mat_&, const vec_&); /* v = m1 * v1 */ - mat_ operator*(const mat_&, const mat_&); /* m = m1 * m2 */ - quat_ operator*(const quat_&, const quat_&); /* q = q1 * q2 */ - quat_ operator*(double, const quat_&); /* q = a * q1 */ - quat_ operator*(const quat_&, double); /* q = q1 * a */ - quat_ operator/(const quat_&, double); /* q = q1 / a */ - vec_ operator-(const vec_&); /* v = - v1 */ - vec_ operator+(const vec_&); /* v = + v1 */ - mat_ operator-(const mat_&); /* m = - m1 */ - mat_ operator+(const mat_&); /* m = + m1 */ - quat_ operator+(const quat_&); /* q = + q */ - quat_ operator-(const quat_&); /* q = - q */ - quat_& operator*=(quat_&, const quat_&); /* q1 *= q2; */ - quat_& operator+=(quat_&, const quat_&); /* q1 += q2; */ - quat_& operator*=(quat_&, const double a); /* q1 *= a; */ - quat_ operator+(const quat_& q1, const quat_& q2); /* q3 = q1 + q2 */ - vec_ unit(const vec_&); /* unitize vec */ - quat_ unit(const quat_&); /* unitize quat */ - mat_ trans(const mat_&); /* transpose matrix */ - quat_ trans(const quat_&); /* transpose quat */ - double dot(const vec_, const vec_); /* vector dot product */ - vec_ cross(const vec_, const vec_); /* vector cross product */ - - - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sf557.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sf557.cpp deleted file mode 100644 index c7ba93cc..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sf557.cpp +++ /dev/null @@ -1,4 +0,0 @@ -//test.cpp -void test_fun(std::size_t a, - std :: size_t /* b */); - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sf562.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sf562.cpp deleted file mode 100644 index 15ee8e79..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sf562.cpp +++ /dev/null @@ -1,9 +0,0 @@ -#include "bar.h" - -class Foo : public Bar { - int foo(int bar) const { - while (true) { - baz(&operator[](bar)); - } - } -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sf567.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sf567.cpp deleted file mode 100644 index 0c1d5fc9..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sf567.cpp +++ /dev/null @@ -1,16 +0,0 @@ -package com.temp.test; - -public class Database -{ - private Database(String fileName) - { - readConfig(fileName, "asdfasdf", 1); - readConfig(ame, "aasdf", 1); - - Database::readConfig(fileName, "asdfasdf", 1); - Database::readConfig(ame, "aasdf", 1); - - ::readConfig(fileName, "asdfasdf", 1); - ::readConfig(ame, "aasdf", 1); - } -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sf574.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sf574.cpp deleted file mode 100644 index 3f5a98d4..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sf574.cpp +++ /dev/null @@ -1,13 +0,0 @@ - -class A : public B -{ -A& operator=(const A& other){ -if (this == &other)return *this; -B::operator=(other); -if (this == &other)return *this; -B::opera(other); -copy(other); -return *this; -} - -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sf583.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sf583.cpp deleted file mode 100644 index 8eba4d1e..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sf583.cpp +++ /dev/null @@ -1,6 +0,0 @@ -#include <utility> - -std::pair<int, int> make_pair(int first, int second) -{ - return {first, second}; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sf593.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sf593.cpp deleted file mode 100644 index 1fc0ded8..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sf593.cpp +++ /dev/null @@ -1,11 +0,0 @@ -typedef boost::shared_ptr < RatherLongClassName > sp_RatherLongClassName_t; -int main() -{ - int argument = 1; - sp_RatherLongClassName_t ratherLongVariableName1(new RatherLongClassName(argument, - argument, argument)); - - int the_result = a_very_long_function_name_taking_most_of_the_line(argument, - argument, argument); - return 0; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sim.h b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sim.h deleted file mode 100644 index 29c52879..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sim.h +++ /dev/null @@ -1,50 +0,0 @@ -namespace ns { - -template<typename T, template<typename> class TOtherClass> class Example -{ - int foo; -} - -} - -template<class T> class Example -{ - - T getValue() const; - - /** A pointer to a T returning function in the software environment */ - T (FunctionProvider::*pF)(); - -}; - - -#if !defined(EVERYTHING_OK) -#error Define EVERYTHING_OK if you would like to compile your code \ -or not if you would like to stop! -#endif - - -template <class V> -class Example -{ - - Vector2<V>() - : x(1), - y(1) - {} - - Vector2<double>() - : x(1.0), - y(1.0) - {} - - Vector2<float>() - : x(1.0f), - y(1.0f) - {} - - V x; - V y; - -}; - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_after_angle.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_after_angle.cpp deleted file mode 100644 index 18788919..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_after_angle.cpp +++ /dev/null @@ -1,6 +0,0 @@ -template < typename T> -struct foo {}; - -Q_DECLARE_METATYPE(foo < int> ) - -int bar(foo <int > ); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_after_constr_colon.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_after_constr_colon.cpp deleted file mode 100644 index caea467a..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_after_constr_colon.cpp +++ /dev/null @@ -1,6 +0,0 @@ -struct MyClass : public Foo { - MyClass(int a, - int b, - int c) - : m_a(a), m_b(b), m_c(c) {} -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_after_decltype.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_after_decltype.cpp deleted file mode 100644 index 18448555..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_after_decltype.cpp +++ /dev/null @@ -1,8 +0,0 @@ -int x; -char y; -auto x1 = decltype(x) {0}; -auto y1 = decltype(y) {'a'}; - -unsigned rows; -for (auto row = decltype(rows){0}; row < rows; ++row) { -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_after_type.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_after_type.cpp deleted file mode 100644 index 6f235d22..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_after_type.cpp +++ /dev/null @@ -1,13 +0,0 @@ -static int x1; -unsigned long int y1 = (unsigned short)0; -const int foo1(int x); - -foo((const int*)0); -static_cast<long long>(0); - -static int x2; -unsigned long int y2 = ( unsigned short ) 0 ; -const int foo2 ( int x ); - -foo ( ( const int * ) 0 ); -static_cast < long long > ( 0 ) ; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_angle_paren.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_angle_paren.cpp deleted file mode 100644 index 911aa53b..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_angle_paren.cpp +++ /dev/null @@ -1,5 +0,0 @@ -void foo() -{ - bar<T> (); - bar<T>(a); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_arith_additive.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_arith_additive.cpp deleted file mode 100644 index ab2096c8..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_arith_additive.cpp +++ /dev/null @@ -1,2 +0,0 @@ -int i = 0 + 3 - 4 * 3 % 3; -int ii = 0+3-4*3%3;
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_balance_nested_parens.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_balance_nested_parens.cpp deleted file mode 100644 index dc5f5e8e..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_balance_nested_parens.cpp +++ /dev/null @@ -1,6 +0,0 @@ -void MainWindow::createView() -{ - a = B((c) + (d)); - a = B( (c) + (d)); - a = B( (c) + (d) ); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_before_byref_func.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_before_byref_func.cpp deleted file mode 100644 index 7dd9c14a..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_before_byref_func.cpp +++ /dev/null @@ -1,8 +0,0 @@ -const Foo & Foo::operator ==(Foo& me){ - ::sockaddr* ptr = (::sockaddr*)&host; - return me; -} - -MyType& MyClass::myMethode() { - const MyType& t = getSomewhere(); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_before_case_colon.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_before_case_colon.cpp deleted file mode 100644 index 0c534fe0..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_before_case_colon.cpp +++ /dev/null @@ -1,12 +0,0 @@ -int foo(abc_t d) -{ - switch (d) - { - case A: - return 0; - case B: - return 1; - case C: - return 2; - } -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_before_constr_colon.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_before_constr_colon.cpp deleted file mode 100644 index 796522c7..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_before_constr_colon.cpp +++ /dev/null @@ -1,4 +0,0 @@ -struct MyClass : public Foo { - MyClass(int a, int b, int c) : - m_a(a), m_b(b), m_c(c) {} -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_before_not_var_ptr_star.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_before_not_var_ptr_star.cpp deleted file mode 100644 index 72187d7c..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_before_not_var_ptr_star.cpp +++ /dev/null @@ -1,109 +0,0 @@ -#include <stdio.h> - -char* const*foo1 = (char* const*)"foo"; -char* const *foo2 = (char* const *)"foo"; - -char * const*foo3 = (char* const*)"foo"; -char * const *foo4 = (char* const *)"foo"; -char * const *foo5 = (char* const *)"foo"; -char*const*foo6 = (char*const*)"foo"; - -char* const*foo7(char* const*); -char* const *foo8(char* const *); - -int*const *bar0(int); -char*const*bar1(char* const*); -char*const *bar2(char* const *); -char *const *bar3(char* const *); -char *const *bar4(char* const *); - -void *operator new(int size); -void*operator new(int size); -void* operator new(int size); -void *operator new(int size); -void* operator new(int size); - -void *::alloc1(int size); -void*::alloc2(int size); -void* ::alloc3(int size); -void * ::alloc4(int size); -void * ::alloc5(int size); -void * ::alloc6(int size); - - -class Test { - void* method1(); - void *method2(); - void *method3(); - void* method4(); - void * method5(); -}; - -void* Test::method1() { return nullptr; } -void *Test::method2() { return NULL; } -void *Test::method3() { return NULL; } -void* Test::method4() { return nullptr; } -void * Test::method5() { return 0; } - - -namespace testing { - -int *func1(); -int*func2(); -int *func3(); -int*func4(); -int*func5(); - -namespace test { -int *foo(); -} - -} - -int *testing::func1() { return nullptr; } -int* testing::func2() { return NULL; } -int *testing::func3() { return nullptr; } -int * testing::func4() { return NULL; } -int * testing::func5() { return NULL; } - -int*testing::test::foo() -{ - return NULL; -} - -namespace Bar { - -class Foo { - int*operator[] (int x) { } - - Foo *get(); -} - -} - -Bar::Foo*Bar::Foo::get() { } - -void* not_malloc(const int); - -void*::not_malloc(const int n) -{ -} - -int main() -{ - void (* name)(); - - int *const *x; - int *const*x; - (int* )x; - (const int *const)x; - (int const*)x; - (int const *)x; - int y = 2+*x; - return 0; -} - -auto baz1() -> char* const*; -auto baz2() -> char* const *; -auto baz3() -> char * const *; -auto baz4() -> char*const *; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_before_tr_emb_cmt_input.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_before_tr_emb_cmt_input.cpp deleted file mode 100644 index 45ffb335..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_before_tr_emb_cmt_input.cpp +++ /dev/null @@ -1,13 +0,0 @@ -/* leading cmt */ int w; -int y;/* embedded cmt */int z; -// whole cpp cmt -int x; // trailing cpp cmt -/* whole c cmt */ -int x; /* trailing c cmt */ -struct foo { // trailing cmt - int x; // trailing cmt - // whole cmt - int a; /* emb cmt */ int b; // trailing cmt -}; // trailing cmt -int a;/* emb cmt */ int b;// trailing cmt - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_brace_brace.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_brace_brace.cpp deleted file mode 100644 index bb730d61..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_brace_brace.cpp +++ /dev/null @@ -1,14 +0,0 @@ -template<std::size_t _N, typename _Type, _Type... _Nums> -std::array<uint8_t, _N - 1> constexpr crypt_helper(uint8_t const inSeed, char const(&inString)[_N], std::integer_sequence<_Type, _Nums...>) { -return { {crypt(_Nums, inSeed, static_cast<uint8_t>(inString[_Nums]))...} }; -} -static std::array<double_t, Homology::kNumberOfStats> const m{ { -0.3, -0.6, -1.0 -} }; -static std::array<double_t, Homology::kNumberOfStats> const m = { -0.3, -0.6, -1.0 -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_brace_catch.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_brace_catch.cpp deleted file mode 100644 index 7b4bdc5e..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_brace_catch.cpp +++ /dev/null @@ -1,8 +0,0 @@ -int foo() -{ -try { foo(bar); } catch (int *e) { return 0; } - -if (false) try { throw int(); } catch(...){} - -return 1; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_cmt_cpp_region.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_cmt_cpp_region.cpp deleted file mode 100644 index b70ef6b1..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_cmt_cpp_region.cpp +++ /dev/null @@ -1,9 +0,0 @@ -//BEGIN real region - -int foo() -{ - int x = 0; // BEGIN not-region - return x; //END not-region -} - -// END real region diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_cmt_cpp_start.cc b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_cmt_cpp_start.cc deleted file mode 100644 index 6a9b203b..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_cmt_cpp_start.cc +++ /dev/null @@ -1,3 +0,0 @@ -int main() { - return 0; //Just return from the function. -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_cond_question.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_cond_question.cpp deleted file mode 100644 index cec6c827..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_cond_question.cpp +++ /dev/null @@ -1,6 +0,0 @@ -//example file -int b; -int t; -int f; -int a = b ? t : f; -int a = b ? : f; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_cparen_oparen.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_cparen_oparen.cpp deleted file mode 100644 index 83c60dd4..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_cparen_oparen.cpp +++ /dev/null @@ -1,5 +0,0 @@ -class STDMETHOD -{ - STDMETHOD(GetValues)(BSTR bsName, REFDATA** pData); - STDMETHOD(GetValues) (BSTR bsName, REFDATA** pData); -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_cpp_lambda_fparen.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_cpp_lambda_fparen.cpp deleted file mode 100644 index e25d0496..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_cpp_lambda_fparen.cpp +++ /dev/null @@ -1,24 +0,0 @@ -void test() -{ - []{}(); - []{ foo(); }(); - [x]{ foo(x); }(); - [](int x){ foo(x); }(42); - [y](int x){ foo(x, y); }(42); - bar([]{ return 1; }()); - bar([]{ return foo(); }()); - bar([x]{ return foo(x); }(42)); - bar([](int x){ return foo(x); }(42)); - bar([y](int x){ return foo(x, y); }(42)); - - [] {} (); - [] { foo(); } (); - [x] { foo(x); } (); - [] (int x){ foo(x); } (42); - [y] (int x){ foo(x, y); } (42); - bar([] { return 1; } ()); - bar([] { return foo(); } ()); - bar([x] { return foo(x); } (42)); - bar([] (int x){ return foo(x); } (42)); - bar([y] (int x){ return foo(x, y); } (42)); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_decltype.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_decltype.cpp deleted file mode 100644 index 3e2f7e47..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_decltype.cpp +++ /dev/null @@ -1,2 +0,0 @@ -#define foo(expr) (expr) -using x = decltype foo(int); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_endif_cmt.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_endif_cmt.cpp deleted file mode 100644 index 9e5b2db8..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_endif_cmt.cpp +++ /dev/null @@ -1,11 +0,0 @@ -#if _MSC_VER < 1300 -#define __func__ "???" -#else /* comment 1 */ -#define __func__ __FUNCTION__ -#endif /* comment 2 */ - -#if _MSC_VER < 1300 -#define __func__ "???" -#else // comment 1 -#define __func__ __FUNCTION__ -#endif // comment 2 diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_enum_assign.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_enum_assign.cpp deleted file mode 100644 index 2ebab438..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_enum_assign.cpp +++ /dev/null @@ -1,6 +0,0 @@ -typedef enum -{ - A = 0, - B = 1 << 0, - C = 1 << 1 -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_enum_colon.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_enum_colon.cpp deleted file mode 100644 index a23c6afd..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_enum_colon.cpp +++ /dev/null @@ -1,10 +0,0 @@ -enum Enum1:int { - E31=0, - E32=1, - E33=2 -}; -enum Enum2 : int { - E31=0, - E32=1, - E33=2 -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_func_call_paren.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_func_call_paren.cpp deleted file mode 100644 index 90798ef9..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_func_call_paren.cpp +++ /dev/null @@ -1,11 +0,0 @@ -BEGIN_MESSAGE_MAP(CUSB2_camera_developementDlg, CDialog) -ON_COMMAND(IDC_ESCAPE, On_Escape) -ON_COMMAND(IDC_8_BIT, On_8_Bit) -ON_COMMAND(IDC_14_BIT, On_14_Bit) -ON_COMMAND(IDC_ACQUIRE, On_Acquire) -ON_COMMAND(IDC_SAVE_COLUMN_AVERAGES, On_Save_Column_Averages) -ON_COMMAND(IDC_SAVE_ROW_AVERAGES, On_Save_Row_Averages) -ON_WM_PAINT() -ON_WM_QUERYDRAGICON() -ON_WM_CTLCOLOR() -END_MESSAGE_MAP() diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_inside_braces_enum.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_inside_braces_enum.cpp deleted file mode 100644 index 8386e215..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_inside_braces_enum.cpp +++ /dev/null @@ -1 +0,0 @@ -enum { IDD = IDD_ATCS_MGR_DLG }; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_not_not.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_not_not.cpp deleted file mode 100644 index 4ef7f777..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_not_not.cpp +++ /dev/null @@ -1,3 +0,0 @@ -if (!hello) { } -if (!!hello) { } -if (!!!hello) { } diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_paren_brace.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_paren_brace.cpp deleted file mode 100644 index 4ac73f87..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_paren_brace.cpp +++ /dev/null @@ -1,18 +0,0 @@ -void *stopper_for_apply = (int[]) {0}; -// ^ here - -template<typename T, typename U> -auto add(T t, U u) -> decltype(t + u) { -// ^ here - return t + u; -} - -void f()noexcept() { -// ^ here -} - -#define FOO5(x) for(;;) (!(x)) { *(volatile int*)0 = 1; } -// ^ here - -(struct foo) {...} -// ^ here diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_qualifier_ptr_star.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_qualifier_ptr_star.cpp deleted file mode 100644 index 5330b43a..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_qualifier_ptr_star.cpp +++ /dev/null @@ -1,8 +0,0 @@ -char* const*foo1 = (char* const*)"foo"; -char* const *foo2 = (char* const *)"foo"; - -char* const*foo3(char* const*); -char* const *foo4(char* const *); - -auto foo5() -> char* const*; -auto foo6() -> char* const *; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_skip_vbrace_tokens.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_skip_vbrace_tokens.cpp deleted file mode 100644 index fff4aff4..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_skip_vbrace_tokens.cpp +++ /dev/null @@ -1,10 +0,0 @@ -void foo()
-{
- if (data) go = new ClassA();
- else go = new ClassB();
-
- if (evt.alt) modifiers += "Alt+";
- if (evt.command) modifiers += "Cmd+";
- if (evt.control) modifiers += "Ctrl+";
- if (evt.shift) modifiers += "Shift+";
-}
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_throw_paren.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_throw_paren.cpp deleted file mode 100644 index f45f1a9a..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_throw_paren.cpp +++ /dev/null @@ -1,7 +0,0 @@ - -void foo() -{ - throw(x); - throw (y); - throw (z); -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_type_func.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_type_func.cpp deleted file mode 100644 index 30e058e7..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/sp_type_func.cpp +++ /dev/null @@ -1,11 +0,0 @@ -int foo1() -{ -} - -int* foo2() -{ -} - -int& foo3() -{ -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/squeeze_ifdef.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/squeeze_ifdef.cpp deleted file mode 100644 index 42699d1d..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/squeeze_ifdef.cpp +++ /dev/null @@ -1,44 +0,0 @@ - -#if defined(A) - -// Comment -extern int ax; -void fa(); - -#elif defined(B) - -extern int bx; -void fb(); - -#else - -extern int cx; -void fc(); - -#endif - -int foo() -{ -#if defined(A) - - int a = ax; - -#elif defined(B) - - // Comment - int b = bx; - -#else - - int c = cx; - -#endif -#if defined(A) - return a; -#elif defined(B) - return b; -#else - // Comment - return c; -#endif -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/static.h b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/static.h deleted file mode 100644 index 8121fef1..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/static.h +++ /dev/null @@ -1,25 +0,0 @@ -#ifndef AKONADISERVER_H -#define AKONADISERVER_H - -#include <QtCore/QPointer> -#include <QtCore/QVector> - -#include <QtNetwork/QLocalServer> - -class QProcess; - -namespace Akonadi { -namespace Server { - -class AkonadiServer : public QLocalServer -{ - Q_OBJECT - -public: - ~AkonadiServer(); - static AkonadiServer *instance(); -}; - -} // namespace Server -} // namespace Akonadi -#endif diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/stdcall.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/stdcall.cpp deleted file mode 100644 index a2353599..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/stdcall.cpp +++ /dev/null @@ -1,3 +0,0 @@ -// test for bug # 633 -typedef void (*func)(); -typedef void (__stdcall *func)(); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/string_replace_tab_chars.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/string_replace_tab_chars.cpp deleted file mode 100644 index 3534461b..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/string_replace_tab_chars.cpp +++ /dev/null @@ -1,3 +0,0 @@ -void f() { - auto x = " test\t ... ???"; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/strings.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/strings.cpp deleted file mode 100644 index 1cfea449..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/strings.cpp +++ /dev/null @@ -1,58 +0,0 @@ -void foo() -{ - BSTR test = L"SID"; - CHAR s[] = "This is a \"test\""; - CHAR ch = 'a'; -} - - -/* The 'u8', 'u', and 'U' prefixes */ -const char *s1 = u8"I'm a UTF-8 string."; -const char16_t *s2 = u"This is a UTF-16 string."; -const char32_t *s3 = U"This is a UTF-32 string."; - -const char c1 = u8'1'; -const char16_t c2 = u'2'; -const char32_t c3 = U'4'; -const wchar_t c4 = L'w'; -const char16_t u = u'\u007f'; - -/* The 'R' and 'R"delim(' prefixes */ -const char *r1 = R"(Xhe String Data \ Stuff " )"; -const char *r2 = R"delimiter(The String Data \ Stuff ")delimiter"; - -/* Multiline string */ -auto foo = R"FOO"( - some - text - and - more - text -)FOO""; - -/* Combo */ -const char *c1 = u8R"XXX(I'm a "raw UTF-8" string.)XXX"; -const char16_t *c2 = uR"*(This is a "raw UTF-16" string.)*"; -const char32_t *c3 = UR"(This is a "raw UTF-32" string.)"; - -/* user-defined */ -OutputType operator "" _Suffix(unsigned long long); -OutputType operator "" _Suffix(long double); - -OutputType some_variable = 1234_Suffix; // uses the first function -OutputType another_variable = 3.1416_Suffix; // uses the second function - -OutputType operator "" _Suffix(const char * string_values, size_t num_chars); -OutputType operator "" _Suffix(const wchar_t * string_values, size_t num_chars); -OutputType operator "" _Suffix(const char16_t * string_values, size_t num_chars); -OutputType operator "" _Suffix(const char32_t * string_values, size_t num_chars); - -OutputType some_variable = "1234"_Suffix; //Calls the const char * version -OutputType some_variable = u8"1234"_Suffix; //Calls the const char * version -OutputType some_variable = L"1234"_Suffix; //Calls the const wchar_t * version -OutputType some_variable = u"1234"_Suffix; //Calls the const char16_t * version -OutputType some_variable = U"1234"_Suffix; //Calls the const char32_t * version - -/* Some stuff that should NOT be detected as a C++0x user-defined literal */ -sscanf(text, "%"SCNx64, &val); -printf("Val=%"PRIx64"\n", val); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/tab-0.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/tab-0.cpp deleted file mode 100644 index 474aba08..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/tab-0.cpp +++ /dev/null @@ -1,9 +0,0 @@ -/* test of - * indent_with_tabs = 0 - * indent_columns = 11 - * the source has many <TAB> - */ -{ - int a; - int b; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/tab-1.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/tab-1.cpp deleted file mode 100644 index dc7a65c4..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/tab-1.cpp +++ /dev/null @@ -1,9 +0,0 @@ -/* test of - * indent_with_tabs = 1 - * indent_columns = 11 - * the source has NO <TAB> - */ -{ - int x; - int y; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/templ_class.h b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/templ_class.h deleted file mode 100644 index 0f102244..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/templ_class.h +++ /dev/null @@ -1,16 +0,0 @@ -template<typename T, template<typename> class SpecialClass> -class Example -{ - // Copy constructor with other variants of Example - template<template<typename> class OtherSpecialClass> - Example(const Example<T, OtherSpecialClass>& other) - { - // do something useful here - } - - /** The normal member var based on the template arguments */ - SpecialClass<T> memberVar; - -}; - - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/templates.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/templates.cpp deleted file mode 100644 index 737599bf..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/templates.cpp +++ /dev/null @@ -1,186 +0,0 @@ -#include <list> -#include <map> -#include <vector> - -#define MACRO(T) f<T>() - -class MyClass -{ -public: - std::map < int, bool > someData; - std::map < int, std::list < bool > > otherData; -}; - -void foo() -{ - List < byte >bob = new List<byte> (); - -} - -A<B> foo; -A<B,C> bar; -A<B*> baz; -A<B<C> > bay; - -void asd(void) -{ -A<B> foo; -A<B,C> bar; -A<B*> baz; -A<B<C> > bay; - if (a < b && b > c) - { - a = b < c > 0; - } - if (a < bar() > c) - { - } - a < up_lim() ? do_hi() : do_low; - a[ a<b>c] = d; -} - -template<typename T> class MyClass -{ - -} - - template<typename T> - class MyClass - { - } - - template<typename A, typename B, typename C> class MyClass : myvar(0), - myvar2(0) - { - - } - - template<typename A, typename B, typename C> class MyClass - : myvar(0), - myvar2(0) - { - - } - - -static int max_value() - { - return (std :: numeric_limits <int >:: max ) (); - } - -template < class Config_ > -priority_queue < Config_ > :: ~ priority_queue () { - - } - -template<class T> -T test(T a) { -return a; -} - -int main() { -int k; -int j; -h g<int>; -k=test<int> (j); -return 0; -} - -template<typename T, template<typename, unsigned int, unsigned int> class ConcreteStorageClass> -class RotationMatrix - : public StaticBaseMatrix<T, 3, 3, ConcreteStorageClass> -{ - -public: - - RotationMatrix() - : StaticBaseMatrix<T, 3, 3, ConcreteStorageClass>() - { - // do some initialization - } - - void assign(const OtherClass<T, 3, 3 >& other) - { - // do something - } - -}; - -int main() -{ - MyClass<double, 3, 3, MyStorage> foo; -} - -template< typename CharT, int N, typename Traits > -inline std::basic_ostream<CharT,Traits>& FWStreamOut(std::basic_ostream<CharT,Traits> &os, - const W::S<CharT,N,Traits> &s) - { - return operator<< <CharT, N, Traits, char, std::char_traits<char> > ( os, s ); - } - -struct foo { -type1 < int & > bar; -}; -struct foo { -type1 < int const > bar; -}; - - -template <int i> void f(); -template <int i> void g() { -f<i-1>(); -f< i >(); -f<i+1>(); -f<bar()>(); -} -void h() { g<42>(); } - -#include <vector> -std::vector<int> A(2); -std::vector<int> B; -std::vector<int>C(2); -std::vector<int>D; - -template<class T>struct X{template<class U>void operator()(U);}; - -template<class T>class Y{template<class V>void f(V);}; - -void (* foobar)(void) = NULL; -std::vector<void (*)(void)> functions; - -#define MACRO( a ) a -template < typename = int > class X ; -MACRO ( void f ( X < > & x ) ) ; -void g ( X < > & x ) ; - -#include <vector> -typedef std::vector<std::vector<int> > Table; // OK -typedef std::vector<std::vector<bool>> Flags; // Error - -void func(List<B>= default_val1); -void func(List<List<B>>= default_val2); - -BLAH<(3.14 >= 42)> blah; -bool X = j<3>>1; - -void foo() -{ - A<(X>Y)> a; - a = static_cast<List<B>>(ld); -} - -template<int i> class X { /* ... */ }; -X< 1>2 > x1; // Syntax error. -X<(1>2)> x2; // Okay. - -template<class T> class Y { /* ... */ }; -Y<X<1>> x3; // Okay, same as "Y<X<1> > x3;". -Y<X<(6>>1)>> x4; - - -template <typename T> -int -myFunc1(typename T::Subtype val); - -int -myFunc2(T::Subtype val); diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/templates2.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/templates2.cpp deleted file mode 100644 index 46d41560..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/templates2.cpp +++ /dev/null @@ -1,54 +0,0 @@ -void f() -{ -call_a_function(42, -double(-1), -"charray"); -call_a_function(42, -double(-1), -"charray" -); -call_a_function( -42, -double(-1), -"charray" -); -call_a_template_function<int, -int, -int> -(42); -call_a_template_function<int, -int, -int -> -(42); -call_a_template_function<int, -int, -int>(42); -call_a_template_function<int, -int, -int>( -42 -); -call_a_template_function< -int, -int, -int -> -(42); -} -template<class T, -class U> -class W; -template<class T, -class U -> -class X; -template< -class T, -class U> -class Y; -template< -class T, -class U -> -class Z; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/templates3.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/templates3.cpp deleted file mode 100644 index 55b11d26..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/templates3.cpp +++ /dev/null @@ -1,26 +0,0 @@ -template <bool a> -struct T { - typedef int result; -}; -template <bool a, bool b> -struct X { - typedef typename T<a || b>::result result; -}; - -template <class T> -class new_alloc { -public: - void deallocate (int* p, int /*num*/) - { - T::operator delete((void *)p); - } -}; - -void test(void) -{ -return x != 0 -&& x >= 1 -&& x < 2 -&& y >= 3 -&& y < 4; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/templates4.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/templates4.cpp deleted file mode 100644 index 10b96e4a..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/templates4.cpp +++ /dev/null @@ -1,17 +0,0 @@ -#define FOO(X) \ -template <unsigned _blk_sz, typename _run_type, class __pos_type> \ -inline X<_blk_sz, _run_type, __pos_type> operator - ( \ -const X<_blk_sz, _run_type, __pos_type> & a, \ -typename X<_blk_sz, _run_type, __pos_type>::_pos_type off) \ -{ \ -return X<_blk_sz, _run_type, __pos_type>(a.array, a.pos - off); \ -} \ -template <unsigned _blk_sz, typename _run_type, class __pos_type> \ -inline X<_blk_sz, _run_type, __pos_type> & operator -= ( \ -X < _blk_sz, _run_type, __pos_type > & a, \ -typename X<_blk_sz, _run_type, __pos_type>::_pos_type off) \ -{ \ -a.pos -= off; \ -return a; \ -} - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/throws.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/throws.cpp deleted file mode 100644 index 0419fc77..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/throws.cpp +++ /dev/null @@ -1,17 +0,0 @@ -int main() -{ - throw("error"); - - throw ("error"); - - throw"error"; - - throw "error"; - - throw - "error"; - - throw - - "error"; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/toggle_processing_cmt.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/toggle_processing_cmt.cpp deleted file mode 100644 index 6f49594d..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/toggle_processing_cmt.cpp +++ /dev/null @@ -1,61 +0,0 @@ -void func() { } - -// **ABC** -void func() { } -// *INDENT-ON* - -void func() { } - -/** - * Function to solve for roots of a generic quartic polynomial of the following form: - * \verbatim - - p(x) = a * x^4 + b * x^3 + c * x^2 + d * x + e, - - where a, b, c, d, and e are real coefficients - - * \endverbatim - * - * This object's tolerance defines a threshold for root solutions above which iterative methods will be employed to achieve the desired accuracy - * - * \verbatim - this should cause the following line to not wrap due to cmt_width - * Upon success, the roots array contains the solution to the polynomial p(x) = 0 - * \endverbatim - * + Return value on output: - * - 0, if an error occurs (invalid coefficients) - * - 1, if all roots are real - * - 2, if two roots are real and two roots are complex conjugates - * - 3, if the roots are two pairs of complex conjugates - */ -int solve(double a, - double b, - double c, - double d, - double e, - std::complex<double> roots[4]); - -/** - * Function to solve for roots of a generic quartic polynomial of the following form: - * - - p(x) = a * x^4 + b * x^3 + c * x^2 + d * x + e, - where a, b, c, d, and e are real coefficients - * - * Upon success, root1, root2, root3, and root4 contain the solution to the polynomial p(x) = 0 - * + Return value on output: - * - 0, if an error occurs (invalid coefficients) - * - 1, if all roots are real - * - 2, if two roots are real and two roots are complex conjugates - * - 3, if the roots are two pairs of complex conjugates - */ -/* **ABC** */ - int solve(double a, - double b, - double c, - double d, - double e, - std::complex<double> &root1, - std::complex<double> &root2, - std::complex<double> &root3, - std::complex<double> &root4); -/* ??DEF?? */ diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/toggle_processing_cmt2.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/toggle_processing_cmt2.cpp deleted file mode 100644 index 6b4a0a39..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/toggle_processing_cmt2.cpp +++ /dev/null @@ -1,7 +0,0 @@ -void func() { } - -// *INDENT-OFF* -void func() { } -// ??DEF?? - -void func() { } diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/trailing_return.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/trailing_return.cpp deleted file mode 100644 index b5903ce9..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/trailing_return.cpp +++ /dev/null @@ -1,93 +0,0 @@ -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; - - auto f25() const -> bool*; - auto f26() const -> bool* = delete; - auto f27() const -> bool&; - auto f28() const -> bool& = delete; - - auto f29() -> bool*; - auto f30() -> bool* = delete; - auto f31() noexcept -> bool*; - auto f32() noexcept(true) -> bool*; - auto f33() noexcept(false) -> bool*; - auto f34() noexcept -> bool* = delete; - auto f35() noexcept(true) -> bool* = delete; - auto f36() noexcept(false) -> bool* = delete; - auto f37() throw() -> bool*; - auto f38() throw() -> bool* = delete; - - auto f39() -> bool&; - auto f40() -> bool& = delete; - auto f41() noexcept -> bool&; - auto f42() noexcept(true) -> bool&; - auto f43() noexcept(false) -> bool&; - auto f44() noexcept -> bool& = delete; - auto f45() noexcept(true) -> bool& = delete; - auto f46() noexcept(false) -> bool& = delete; - auto f47() throw() -> bool&; - auto f48() throw() -> bool& = delete; - - auto f49() const -> bool*; - auto f50() const -> bool* = delete; - auto f51() const noexcept -> bool*; - auto f52() const noexcept(true) -> bool*; - auto f53() const noexcept(false) -> bool*; - auto f54() const noexcept -> bool* = delete; - auto f55() const noexcept(true) -> bool* = delete; - auto f56() const noexcept(false) -> bool* = delete; - auto f57() const throw() -> bool*; - auto f58() const throw() -> bool* = delete; - - auto f59() const -> bool&; - auto f60() const -> bool& = delete; - auto f61() const noexcept -> bool&; - auto f62() const noexcept(true) -> bool&; - auto f63() const noexcept(false) -> bool&; - auto f64() const noexcept -> bool& = delete; - auto f65() const noexcept(true) -> bool& = delete; - auto f66() const noexcept(false) -> bool& = delete; - auto f67() const throw() -> bool&; - auto f68() 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; -} diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/trailing_return_byref_ptr.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/trailing_return_byref_ptr.cpp deleted file mode 100644 index 14cffd63..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/trailing_return_byref_ptr.cpp +++ /dev/null @@ -1,84 +0,0 @@ -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; - - auto f25() const -> bool * ; - auto f26() const -> bool * = delete; - auto f27() const -> bool & ; - auto f28() const -> bool & = delete; - - auto f29() -> bool * ; - auto f30() -> bool * = delete; - auto f31() noexcept -> bool * ; - auto f32() noexcept(true) -> bool * ; - auto f33() noexcept(false) -> bool * ; - auto f34() noexcept -> bool * = delete; - auto f35() noexcept(true) -> bool * = delete; - auto f36() noexcept(false) -> bool * = delete; - auto f37() throw() -> bool * ; - auto f38() throw() -> bool * = delete; - - auto f39() -> bool &; - auto f40() -> bool & = delete; - auto f41() noexcept -> bool & ; - auto f42() noexcept(true) -> bool & ; - auto f43() noexcept(false) -> bool & ; - auto f44() noexcept -> bool & = delete; - auto f45() noexcept(true) -> bool & = delete; - auto f46() noexcept(false) -> bool & = delete; - auto f47() throw() -> bool & ; - auto f48() throw() -> bool & = delete; - - auto f49() const -> bool * ; - auto f50() const -> bool * = delete; - auto f51() const noexcept -> bool * ; - auto f52() const noexcept(true) -> bool * ; - auto f53() const noexcept(false) -> bool * ; - auto f54() const noexcept -> bool * = delete; - auto f55() const noexcept(true) -> bool * = delete; - auto f56() const noexcept(false) -> bool * = delete; - auto f57() const throw() -> bool * ; - auto f58() const throw() -> bool * = delete; - - auto f59() const -> bool & ; - auto f60() const -> bool & = delete; - auto f61() const noexcept -> bool & ; - auto f62() const noexcept(true) -> bool & ; - auto f63() const noexcept(false) -> bool & ; - auto f64() const noexcept -> bool & = delete; - auto f65() const noexcept(true) -> bool & = delete; - auto f66() const noexcept(false) -> bool & = delete; - auto f67() const throw() -> bool & ; - auto f68() const throw() -> bool & = delete; - - class Foo - { - auto operator=(const Foo &) -> Foo & ; - auto operator=(const Foo &) noexcept -> Foo & ; - - auto operator=(Foo const &) -> Foo & ; - auto operator=(Foo const &) noexcept -> Foo & ; - - auto operator=(Foo &&) -> Foo & ; - auto operator=(Foo &&) noexcept -> Foo & ; - } -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/try-catch-nl.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/try-catch-nl.cpp deleted file mode 100644 index 447f3cbd..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/try-catch-nl.cpp +++ /dev/null @@ -1,10 +0,0 @@ -int foo() -{ -try { foo(bar); } catch (int *e) { return 0; } - -if (false) try { throw int(); } catch(...){} - -if (a) { return 1; } else { return 0; } -return 1; -} - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/type_brace_init_lst.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/type_brace_init_lst.cpp deleted file mode 100644 index 53e74de2..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/type_brace_init_lst.cpp +++ /dev/null @@ -1,87 +0,0 @@ -// Uncrustify does not process the intention of an using alias, -// unknown_kw will therefore no be parsed as known keyword -using unknown_kw = int; - -int main() -{ - // 'int' is a known c++ keyword - auto a0 = int { 1 }; - auto b0 = unknown_kw { 2 }; - auto c0 = ::unknown_kw { 3 }; - auto d0 = (int) unknown_kw { 4 }; - auto e0 = (int) ::unknown_kw { 5 }; - auto f0 = static_cast<int>(unknown_kw { 6 }); - auto g0 = static_cast<int>(::unknown_kw { 7 }); - - auto a1 = int{1}; - auto b1 = unknown_kw{2}; - auto c1 = ::unknown_kw{3}; - auto d1 = (int) unknown_kw{4}; - auto e1 = (int) ::unknown_kw{5}; - auto f1 = static_cast<int>(unknown_kw{6}); - auto g1 = static_cast<int>(::unknown_kw{7}); - - - - auto a2 = int - - {1}; - auto b2 = unknown_kw - - {2}; - auto c2 = ::unknown_kw - - {3}; - auto d2 = (int) unknown_kw - - {4}; - auto e2 = (int) ::unknown_kw - - {5}; - auto f2 = static_cast<int>(unknown_kw - - {6}); - auto g2 = static_cast<int>(::unknown_kw - - {7}); - - - - auto a1 = int{ - - 1 - - }; - auto b1 = unknown_kw{ - - 2 - - }; - auto c1 = ::unknown_kw { - - 3 - - }; - auto d1 = (int) unknown_kw { - - 4 - - }; - auto e1 = (int) ::unknown_kw { - - 5 - - }; - auto f1 = static_cast<int>(unknown_kw { - - 6 - - }); - auto g1 = static_cast<int>(::unknown_kw { - - 7 - - }); - - return 1; -}
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/uniform_initialization.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/uniform_initialization.cpp deleted file mode 100644 index 37a131e0..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/uniform_initialization.cpp +++ /dev/null @@ -1,9 +0,0 @@ -void whatever() { - SomeStruct a = SomeStruct{1, 2, 3}; - - someFuncCall(SomeStruct{4, 5, 6}); - } - -namespace foo { - int bar(); -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/using-alias-in-define.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/using-alias-in-define.cpp deleted file mode 100644 index 82854287..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/using-alias-in-define.cpp +++ /dev/null @@ -1,6 +0,0 @@ -#define UNC_DECLARE_FLAGS(flag_type, enum_type) \ - using flag_type = flags<enum_type> - -#define UNC_DECLARE_OPERATORS_FOR_FLAGS(flag_type) \ - inline flag_type operator&(flag_type::enum_t f1, flag_type::enum_t f2) \ - { return(flag_type { f1 } & f2); } diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/var_def_blks.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/var_def_blks.cpp deleted file mode 100644 index aa76a9e8..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/var_def_blks.cpp +++ /dev/null @@ -1,31 +0,0 @@ -unsigned a; -char b; -int bar(void); -unsigned c; -char d; -int foo(void) { - char buf[1000] = {0}; - size_t len; - float amount; - double remainder; - bar(); - uint64_t quux; - uint64_t quack; - for (int i = 0; i < 1000; i++) { - uint64_t checksum; - double remainder; - buf[i] += len; - uint32_t xyzzy; - uint32_t quark; - } - float amount; - double remainder; - baz(); - uint32_t llama; - uint32_t treehouse; -} -char * w; -uint8_t x; -int baz(void); -long y; -int z; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/var_def_gap.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/var_def_gap.cpp deleted file mode 100644 index 0cca962b..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/var_def_gap.cpp +++ /dev/null @@ -1,27 +0,0 @@ -#define A -3 -#define B 163 -#define C 2 - -void foo() -{ - const std::string &targetName1 = pEntry->getTargetName();
- const Point3d_t currentPosition1 = pSatOrbit->GetPositionAtTime(jdNow);
-} - -void foo2() -{ - const std::string ** targetName2 = pEntry->getTargetName();
- const Point3d_t currentPosition2 = pSatOrbit->GetPositionAtTime(jdNow);
-} - -void foo2() -{ - const std::string** targetName3 = pEntry->getTargetName();
- const Point3d_t currentPosition3 = pSatOrbit->GetPositionAtTime(jdNow);
-} - -typedef int MY_INT; -typedef int *MY_INTP; -typedef int (*foo_t)(void *bar); -typedef int (*somefunc_t)(void *barstool); - diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/variadic-template.h b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/variadic-template.h deleted file mode 100644 index f522097c..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/variadic-template.h +++ /dev/null @@ -1,10 +0,0 @@ -template<int __i, int... _Indexes, typename _IdxHolder, typename... -_Elements> -struct __index_holder_impl<__i, __index_holder<_Indexes...>, -_IdxHolder, _Elements...> -{ -typedef typename __index_holder_impl<__i + 1, -__index_holder<_Indexes..., -__i>, -_Elements...>::type type; -}; diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/wacky-template.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/wacky-template.cpp deleted file mode 100644 index 99e01b6e..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/wacky-template.cpp +++ /dev/null @@ -1,12 +0,0 @@ -template<typename flt_t> -template<typename gamma_t, typename gamma2_t, typename alpha_t, typename -beta_t, typename tail_extrinsic_t, typename rec_tail_t> - -void turbo_dec_1_15<flt_t>::compute_tail(gamma_t const & gamma, -gamma2_t const & gamma2, -alpha_t const & alpha, -beta_t const & beta, -tail_extrinsic_t & tail_extrinsic, -rec_tail_t const & rec_tail) -{ -} |