diff options
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/expected/cpp/34528-cmt_trailing_single_line_c_to_cpp.cpp')
-rw-r--r-- | debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/expected/cpp/34528-cmt_trailing_single_line_c_to_cpp.cpp | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/expected/cpp/34528-cmt_trailing_single_line_c_to_cpp.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/expected/cpp/34528-cmt_trailing_single_line_c_to_cpp.cpp new file mode 100644 index 00000000..946409b2 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/expected/cpp/34528-cmt_trailing_single_line_c_to_cpp.cpp @@ -0,0 +1,34 @@ +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. + * */ +} |