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

Insists on Semicolons where not needed #10

Open
phresnel opened this issue Nov 17, 2014 · 3 comments
Open

Insists on Semicolons where not needed #10

phresnel opened this issue Nov 17, 2014 · 3 comments

Comments

@phresnel
Copy link

Consider the following code:

class Foo {
    void foo() {}
};

This is a valid C++ class. However:

insists-on-semicolon

@phresnel
Copy link
Author

(More of a sidenote)

Likewise, you have a superfluous, empty statement in

you logo image

and I don't think that c++.starting.kit looks aesthetically pleasing, even though that is valid syntax.

@Will-ALVIDI
Copy link
Owner

If I do exactly what you've done I also have an error at the same place.

See the screenshots :

Issue10-screen_0001

Issue10-screen_0002

I use SublimeLinter-cppcheck and it says : 4 style:Unused private function 'Foo::Foo' >> void foo() {}

Which means that you have to use the function inside this class.

I think and I hope it comes from here.

If not install SublimeLinter-cppcheck by following the documentation and you will only have it linted.

@Will-ALVIDI
Copy link
Owner

For your second message I invite you to read this part of the documentation and you may understand why everything in this package is far to be perfect. ;)

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

2 participants