This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Add support for long double in bugprone-incorrect-roundings
ClosedPublic

Authored by PiotrZSL on Apr 10 2023, 12:09 AM.

Details

Summary

Support all floating point representations for an 0.5 floating const.
Added missing tests.

Depend on D147906.

Diff Detail

Event Timeline

PiotrZSL created this revision.Apr 10 2023, 12:09 AM
Herald added a project: Restricted Project. · View Herald Transcript
PiotrZSL requested review of this revision.Apr 10 2023, 12:09 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 10 2023, 12:09 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
PiotrZSL edited the summary of this revision. (Show Details)Apr 10 2023, 12:10 AM
PiotrZSL updated this revision to Diff 512082.Apr 10 2023, 12:13 AM
PiotrZSL edited the summary of this revision. (Show Details)

Update dependency

PiotrZSL updated this revision to Diff 512085.Apr 10 2023, 12:16 AM

iDependency fix.

carlosgalvezp accepted this revision.Apr 10 2023, 4:39 AM

Nice cleanup and increased generality, thank you!

This revision is now accepted and ready to land.Apr 10 2023, 4:39 AM
PiotrZSL updated this revision to Diff 512119.Apr 10 2023, 5:16 AM

Remove local variables

carlosgalvezp accepted this revision.Apr 15 2023, 1:09 AM