This is an archive of the discontinued LLVM Phabricator instance.

Disable misc-no-recursion checking in Clang
ClosedPublic

Authored by aaron.ballman on May 26 2021, 4:59 AM.

Details

Summary

We currently enable misc-no-recursion, but Clang uses recursion intentionally in a fair number of places (like RecursiveASTVisitor). Disabling this check reduces a noise in reviews that add new AST nodes, like https://reviews.llvm.org/D103112#2780747 which has five CI warnings that the author can do nothing about.

Diff Detail

Event Timeline

aaron.ballman requested review of this revision.May 26 2021, 4:59 AM
aaron.ballman created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptMay 26 2021, 4:59 AM
Herald added a subscriber: aheejin. · View Herald Transcript
erichkeane accepted this revision.May 26 2021, 11:00 AM
erichkeane added a subscriber: erichkeane.

I like this, since the entire CFE does a ton of recursion on purpose for all AST related things. Please give others time to disagree however :)

This revision is now accepted and ready to land.May 26 2021, 11:00 AM