-
Notifications
You must be signed in to change notification settings - Fork 62
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
Clang tidy #362
base: master
Are you sure you want to change the base?
Clang tidy #362
Conversation
About time this was being done. Thanks! I checked all replacements and found one instance of where a comment said that iteratiors should not be used there (see in-line comment). Otherwise they should be all good. |
Should be ok now. ;) |
Removing empty destructors from cpp files and using default in h files could increase executable size because of inlining and that could cause performance drop because of instruction cache miss. |
Because Furthermore inlining is just clue for compiler, and if compiler generates nasty code, I would say it's a bug. |
I'd tend to agree with @ShFil119, there is no guarantee that the compiler is going to inline anything here; in fact, it may well decide that if the ctor/dtor is used often around the program it is not a good fit for inline. On the contrary, it might improve performance in the case where a ctor/dtor is used sparingly (once or twice) around the codebase and it could not have been inlined before because the source was not available. |
Small cleanup problems found by clang-tidy. ;)