This is an archive of the discontinued LLVM Phabricator instance.

[analyzer][NFC] Pass the diagnostic message to the TrackConstraintBRVisitor
ClosedPublic

Authored by donat.nagy on Jun 6 2023, 4:21 AM.

Details

Summary

The TrackConstraintBRVisitor should accept a message for the note instead of creating one.
It would let us inject domain-specific knowledge in a non-intrusive way, leading to a more generic visitor.

Meta: This small NFC commit was added to our internal fork by @gamesh411 (although if I understand it correctly @steakhal was also involved in its creation). I'd like to upstream it because I'm planning to release one of our internal checkers (which reports invalid use of bitwise shifts) and it depends on this commit.

Diff Detail

Event Timeline

donat.nagy created this revision.Jun 6 2023, 4:21 AM
Herald added a project: Restricted Project. · View Herald Transcript
donat.nagy requested review of this revision.Jun 6 2023, 4:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 6 2023, 4:21 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
donat.nagy edited the summary of this revision. (Show Details)Jun 6 2023, 4:22 AM
steakhal accepted this revision.Jun 6 2023, 5:34 AM

LGTM

This revision is now accepted and ready to land.Jun 6 2023, 5:34 AM
This revision was landed with ongoing or failed builds.Jun 6 2023, 7:31 AM
This revision was automatically updated to reflect the committed changes.