Skip to content

Conversation

@ktf
Copy link
Contributor

@ktf ktf commented Mar 29, 2017

clang-tidy with modernize-use-bool-literals complains about the fact that 0 is used in place of false. Given I assume there is no particular reason for using 0 rather than false, I suggest to change it to avoid the false positives.

clang-tidy with `modernize-use-bool-literals` complains about the fact that 0 is used in place of false. Given I assume there is no particular reason for using `0` rather than `false`, I suggest to change it to avoid the false positives.
@phsft-bot
Copy link

Can one of the admins verify this patch?

@ktf
Copy link
Contributor Author

ktf commented Mar 29, 2017

Uh? Why is travis failing?

@vgvassilev
Copy link
Member

The changes don't comply with ROOT's coding conventions. Please see the diff (clicking on Details).

@vgvassilev
Copy link
Member

I'd be interested to see this check applied for everything in core (and maybe latter for the other parts of the codebase).

@ktf
Copy link
Contributor Author

ktf commented Mar 30, 2017

Well, to tell the truth it's the current TError code which does not comply to the coding conventions. If I understand correctly, the issue is actually due to the misaligned \ which I do not touch. IMHO, it's not responsibility of people who provide fixes to bring ROOT code up to its own standard. Anyways, given it's trivial I will try to do the change.

@vgvassilev
Copy link
Member

@phsft-bot build!

@ktf, thanks!

@vgvassilev vgvassilev self-assigned this Mar 30, 2017
@phsft-bot
Copy link

Starting build on centos7/gcc49, mac1011/native, slc6/gcc49, slc6/gcc62, ubuntu14/native

@Axel-Naumann
Copy link
Member

...and apologies for Travis claiming that you broke the coding convention. Thanks for fixing it, though! :-) (But next time just complain, please: as you pointed out, this is absolutely not your responsibility to fix existing violations of the coding convention.)

And I'm working on the (unrelated) build fixes...

@vgvassilev
Copy link
Member

The clang-format tool considers a line in the context of C++, so the backslashes told it this was a single line :)

All looks good to me! I will merge this PR.

@vgvassilev vgvassilev merged commit 419c9b2 into root-project:master Mar 30, 2017
@ktf ktf deleted the patch-1 branch March 30, 2017 13:04
@ktf
Copy link
Contributor Author

ktf commented Mar 30, 2017

@vgvassilev ah, right. That explains it.

@Axel-Naumann no worries, fixing these kind of things is kinda relaxing... ;-)

gganis pushed a commit to gganis/root that referenced this pull request Apr 3, 2017
* Keep clang-tidy modernize-use-bool-literals happy

clang-tidy with `modernize-use-bool-literals` complains about the fact that 0 is used in place of false. Given I assume there is no particular reason for using `0` rather than `false`, I suggest to change it to avoid the false positives.

* Align TError.h to ROOT coding conventions
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

Successfully merging this pull request may close these issues.

4 participants