This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Fix segfault in bugprone-standalone-empty
ClosedPublic

Authored by denik on Jan 23 2023, 5:10 PM.

Details

Summary

The check incorrectly identified empty() method call in the template
class definition as a stand-alone function call.
This led to a crash because the checker did not expect empty() function
calls without arguments.

Fixes: https://github.com/llvm/llvm-project/issues/59487

Diff Detail

Event Timeline

denik created this revision.Jan 23 2023, 5:10 PM
Herald added a project: Restricted Project. · View Herald Transcript
denik requested review of this revision.Jan 23 2023, 5:10 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 23 2023, 5:10 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
denik added a reviewer: cjdb.Jan 23 2023, 5:11 PM
cjdb accepted this revision.Jan 24 2023, 3:30 PM
This revision is now accepted and ready to land.Jan 24 2023, 3:30 PM
This revision was automatically updated to reflect the committed changes.