Debian Codegraph @

docpages/example_code/coding_style_standards/comments.cpp

raw
1 /*
2 * @brief This is a function that does some cool stuff.
3 * More stuff here will still go in brief!
4 * @warning This does nothing!
5 */
6 func_name();
7
8 /*
9 * @brief This turns a name into a meme name!
10 *
11 * @param name The name of the user that you want to meme-ify.
12 * @return a meme name!
13 */
14 std::string name_to_meme(const std::string& name) const;
15
16 /* -------------------- .cpp file -------------------- */
17
18 int main() {
19 /* We are now going to do some cool stuff. */
20 func_name();
21
22 /* Going to turn brain into a meme name.
23 * Why?
24 * Because why not. That's why.
25 */
26 std::cout << name_to_meme("Brain") << "\n";
27 }