This is an archive of the discontinued LLVM Phabricator instance.

Enable a few clang-tidy checks in MLIR
ClosedPublic

Authored by mehdi_amini on Dec 22 2021, 12:54 PM.

Details

Summary

This enables a few more "modernize" and "bugprone" checks (mostly).

Diff Detail

Event Timeline

mehdi_amini created this revision.Dec 22 2021, 12:54 PM
mehdi_amini requested review of this revision.Dec 22 2021, 12:54 PM
Mogball accepted this revision.Dec 22 2021, 2:40 PM

I assume all those NFC patches already fixed the issues raised by these? :P

This revision is now accepted and ready to land.Dec 22 2021, 2:40 PM

Are these not things that should be in the parent config?

Mogball added a comment.EditedDec 23 2021, 8:35 AM

Putting them in the parent config would enable it for all llvm-project, wouldn't it?

Are these not things that should be in the parent config?

I can try to do this, it may be harder to reach consensus at the scale of the project though.

I assume all those NFC patches already fixed the issues raised by these? :P

No: I only fixed the existing checks, I wanted the codebase clean before adding more checks. It also helps judging the effect of these new ones.

A sample of the new fixes (I haven't processed the entire codebase yet) is here: D116237

mehdi_amini closed this revision.Jan 2 2022, 3:48 PM

I landed this except the misc-unused-parameters for now.