| 1 | |
| 2 | /** A function with an unannotated code block with C/C++ code. |
| 3 | * |
| 4 | * @code |
| 5 | * char* buffer = new char[42]; |
| 6 | * int charsAdded = sprintf(buffer, "Tabs are normally %d spaces\n", 8); |
| 7 | * @endcode |
| 8 | */ |
| 9 | void with_standard_code_block(); |
| 10 | |
| 11 | /** A function with an unannotated code block with non-C/C++ code. |
| 12 | * |
| 13 | * @code |
| 14 | * set(user_list A B C) |
| 15 | * foreach(element ${user_list}) |
| 16 | * message(STATUS "Element is ${element}") |
| 17 | * endforeach() |
| 18 | * @endcode |
| 19 | * |
| 20 | * Another code-block that explicitly remains not highlighted. |
| 21 | * @code{.unparsed} |
| 22 | * Show this as is. |
| 23 | * @endcode |
| 24 | */ |
| 25 | void with_unannotated_cmake_code_block(); |
| 26 | |
| 27 | /** A function with an annotated cmake code block. |
| 28 | * |
| 29 | * @code{.cmake} |
| 30 | * set(user_list A B C) |
| 31 | * foreach(element ${user_list}) |
| 32 | * message(STATUS "Element is ${element}") |
| 33 | * endforeach() |
| 34 | * @endcode |
| 35 | */ |
| 36 | void with_annotated_cmake_code_block(); |