This is an archive of the discontinued LLVM Phabricator instance.

clang release notes: document the -Wbool-operation improvement
ClosedPublic

Authored by sylvestre.ledru on Oct 6 2021, 2:39 AM.

Diff Detail

Event Timeline

sylvestre.ledru requested review of this revision.Oct 6 2021, 2:39 AM
sylvestre.ledru created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptOct 6 2021, 2:39 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
xbolva00 added inline comments.Oct 6 2021, 2:45 AM
clang/docs/ReleaseNotes.rst
54

-Wbitwise-instead-of-logical (part of -Wbool-operation) warns …

?

Take in account the comment

xbolva00 accepted this revision.Oct 6 2021, 3:00 AM

One small comment about side effects, otherwise LG.

Please wait a +-day for potentional review comments.

clang/docs/ReleaseNotes.rst
54

I think we should mention that with boolean operands which have side effects.

This revision is now accepted and ready to land.Oct 6 2021, 3:00 AM
sylvestre.ledru marked an inline comment as done.Oct 6 2021, 3:00 AM

@xbolva00 sorry but you would like

-Wbitwise-instead-of-logical (part of -Wbool-operation) warns about use of bitwise with boolean operands which have side effects

or
-Wbitwise-instead-of-logical (part of -Wbool-operation) warns about use of bitwise with boolean operands
Be aware that boolean operands might have side effects.

?

First form is better I think.

add "which have side effects"

sylvestre.ledru marked an inline comment as done.Oct 6 2021, 3:15 AM
Quuxplusone added inline comments.
clang/docs/ReleaseNotes.rst
54

s/use of bitwise with/use of bitwise operators with/