This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Exclude class/struct scope variables from cppcoreguidelines-avoid-non-const-global-variables
ClosedPublic

Authored by PiotrZSL on Aug 5 2023, 12:24 AM.

Details

Summary

Ignore static variables declared within the scope of class/struct.
Those variables should be covered by I.3 rule.

Fixes: #47384

Diff Detail

Event Timeline

PiotrZSL created this revision.Aug 5 2023, 12:24 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 5 2023, 12:24 AM
PiotrZSL requested review of this revision.Aug 5 2023, 12:24 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 5 2023, 12:24 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
This revision is now accepted and ready to land.Aug 5 2023, 8:04 AM