Skip to content

Instantly share code, notes, and snippets.

@Rapptz

Rapptz/output Secret

Created September 9, 2015 02:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Rapptz/d992aecfe93bf356524a to your computer and use it in GitHub Desktop.
Save Rapptz/d992aecfe93bf356524a to your computer and use it in GitHub Desktop.
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]
/**
* 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