Ignore static variables declared within the scope of class/struct.
Those variables should be covered by I.3 rule.
Fixes: #47384
Paths
| Differential D157180
[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. Fixes: #47384
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Aug 5 2023, 8:04 AM Closed by commit rG3e2ed5701b7e: [clang-tidy] Exclude class/struct scope variables from cppcoreguidelines-avoid… (authored by PiotrZSL). · Explain WhyAug 5 2023, 9:49 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 547499 clang-tools-extra/clang-tidy/cppcoreguidelines/AvoidNonConstGlobalVariablesCheck.cpp
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/avoid-non-const-global-variables.cpp
|