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
Fixing -Wmisleading-indentation #31
Comments
Why not just fix it, if it is only one line? The thing about clang-format is that it also changes the structure of a lot of files. And of everything, I just can't accept the fact that spaces are used instead of tabs - it's grounds for messy files, IMO. For example, the number of times to press the TAB key equals to the level of identation, but that is not the same as using spaces; you may have to press the space key 8 times, just for one level. But you can accidentally miss one or two spaces, and it could still look correct (but is misaligned). Unless, you can change those settings to fit the current coding standard that is roughly used by the existing developers? I don't use OSX, so I don't know about this clang-format tool. The other way, is that someone else agrees that it's okay - then it probably is... |
There isn't really any coding standard... currently. I can change the You can learn more about clang-format at http://clang.llvm.org/docs/ClangFormat.html |
If you could, that would be great. |
Exactly this file I left not changed cause I was not completely sure if it is indentation or real error (missing brackets) |
(from GCC 6.2.0)
Clang-format could be a solution to this warning...
Any other suggestions? If not, I'll create a PR later.
The text was updated successfully, but these errors were encountered: