This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Fix the potential infinite loop in recordIsTriviallyDefaultConstructible.
ClosedPublic

Authored by hokein on Aug 28 2019, 6:10 AM.

Details

Diff Detail

Repository
rL LLVM

Event Timeline

hokein created this revision.Aug 28 2019, 6:10 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 28 2019, 6:10 AM
hokein updated this revision to Diff 217617.Aug 28 2019, 6:11 AM
hokein removed a subscriber: wuzish.

Add newline at end of tile.

gribozavr accepted this revision.Aug 28 2019, 6:14 AM
gribozavr added inline comments.
clang-tools-extra/clang-tidy/utils/TypeTraits.cpp
57 ↗(On Diff #217617)

I'd suggest to not mention the infinite loop. Just say that it is impossible to determine whether the decl is trivially constructible if there was an error.

This revision is now accepted and ready to land.Aug 28 2019, 6:14 AM
hokein updated this revision to Diff 217628.Aug 28 2019, 6:39 AM
hokein marked an inline comment as done.

Tweak the comment

This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptAug 28 2019, 6:44 AM