This is an archive of the discontinued LLVM Phabricator instance.

Add -misc-const-correctness to .clang-tidy
ClosedPublic

Authored by aeubanks on Aug 8 2022, 10:18 AM.

Details

Summary

I keep getting suggestions from clangd to add 'const' to a bunch of local variables, which is not LLVM's style. This suppresses those.

Diff Detail

Event Timeline

aeubanks created this revision.Aug 8 2022, 10:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 8 2022, 10:18 AM
aeubanks requested review of this revision.Aug 8 2022, 10:18 AM
kadircet accepted this revision.Aug 8 2022, 10:31 AM

thanks, this also came up in D54943. people are definitely annoyed by this and LLVM codebase needs to be cleaned for it if we want to enable it.

This revision is now accepted and ready to land.Aug 8 2022, 10:31 AM
aaron.ballman accepted this revision.Aug 8 2022, 11:05 AM
aaron.ballman added a subscriber: aaron.ballman.

LGTM!

This revision was landed with ongoing or failed builds.Aug 8 2022, 1:01 PM
This revision was automatically updated to reflect the committed changes.