Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Semicolons after references to functions in comments #73

Closed
sdutoit opened this issue Apr 15, 2013 · 1 comment
Closed

Semicolons after references to functions in comments #73

sdutoit opened this issue Apr 15, 2013 · 1 comment

Comments

@sdutoit
Copy link
Contributor

sdutoit commented Apr 15, 2013

Via cxxeditor@:

E.g. in [over.load]

void f(int i);
void f(Int i); // OK: redeclaration of f(int) <-- no semicolon
void f(int i) { /* ... */ }
void f(Int i) { /* ... */ } // error: redefinition of f(int) <-- no semicolon

when few lines down you have

int f(char*);
int f(char[]); // same as f(char*);
int f(char[7]); // same as f(char*);
int f(char[9]); // same as f(char*); <-- semicolon
@sdutoit
Copy link
Contributor Author

sdutoit commented Apr 15, 2013

After actually reading this I decided it's NAD. One is talking about a function declaration/definition, the other is about a statement.

@sdutoit sdutoit closed this as completed Apr 15, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant