-
-
Save Rapptz/d992aecfe93bf356524a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Number of errors found: 0 | |
Cool -- Cool | |
Comment for cursor found: /** | |
* Represents a cool object. | |
*/ | |
x -- x | |
Comment for cursor found: ///< The x value | |
y -- y | |
Comment for cursor found: ///< The y value | |
Cool -- Cool(int, int) | |
Comment for cursor found: /** | |
* Constructs a cool object. | |
* | |
* :param x: The x value. | |
* :param y: The y value. | |
*/ | |
add -- add() | |
Comment for cursor found: /** | |
* Returns the addition result of :var:`x` and :var;`y`. | |
*/ | |
subtract -- subtract() | |
Comment for cursor found: /** | |
* Returns the subtraction of :var:`x` - :var:`y`. | |
*/ | |
foo -- foo() | |
Comment for cursor found: /** | |
* A templated thing. | |
*/ | |
[Finished in 0.1s] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Represents a cool object. | |
*/ | |
class Cool { | |
int x; ///< The x value | |
int y; ///< The y value | |
/** | |
* Constructs a cool object. | |
* | |
* :param x: The x value. | |
* :param y: The y value. | |
*/ | |
Cool(int x, int y): x(x), y(y) {} | |
/** | |
* Returns the addition result of :var:`x` and :var;`y`. | |
*/ | |
auto add() const -> decltype(x + y) { | |
return x + y; | |
} | |
/** | |
* Returns the subtraction of :var:`x` - :var:`y`. | |
*/ | |
int subtract() const noexcept { | |
return x - y; | |
} | |
/** | |
* A templated thing. | |
*/ | |
template<typename T> | |
void foo() const { | |
// do nothing | |
// tests out internal comments | |
} | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment