diff options
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/input/cpp/bug_1139.cpp')
-rw-r--r-- | debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/input/cpp/bug_1139.cpp | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/input/cpp/bug_1139.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/input/cpp/bug_1139.cpp new file mode 100644 index 00000000..47463232 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/input/cpp/bug_1139.cpp @@ -0,0 +1,42 @@ +void a() +{ + if((tmp == nullptr) || + ((tmp->type != CT_NUMBER) && + (tmp->type != CT_SIZEOF) && + !(tmp->flags & (PCF_IN_STRUCT | PCF_IN_CLASS))) || + (tmp->type == CT_NEWLINE) + ) + { + set_chunk_type(next, CT_LABEL_COLON); + } +else if ((tmp == nullptr) || + ((tmp->type != CT_NUMBER) && + (tmp->type != CT_SIZEOF) && + !(tmp->flags & (PCF_IN_STRUCT | PCF_IN_CLASS))) || + (tmp->type == CT_NEWLINE) + ) + { + set_chunk_type(next, CT_LABEL_COLON); + } + + + if ((tmp == nullptr) || + ((tmp->type != CT_NUMBER) && + (tmp->type != CT_SIZEOF) && + !(tmp->flags & (PCF_IN_STRUCT | PCF_IN_CLASS))) || + (tmp->type == CT_NEWLINE)) + { + set_chunk_type(next, CT_LABEL_COLON); + } + + if ((tmp == nullptr) || + ((tmp->type != CT_NUMBER) && + (tmp->type != CT_SIZEOF) && + !(tmp->flags & (PCF_IN_STRUCT | PCF_IN_CLASS))) || + (tmp->type == CT_NEWLINE) + +) + { + set_chunk_type(next, CT_LABEL_COLON); + } +} |