Use isStatic instead of isStaticStorageClass to properly
handle a out-of-line definitions.
Fixes: #51861
Paths
| Differential D157326
[clang-tidy] Fix handling of out-of-line functions in readability-static-accessed-through-instance ClosedPublic Authored by PiotrZSL on Aug 7 2023, 1:54 PM.
Details Summary Use isStatic instead of isStaticStorageClass to properly Fixes: #51861
Diff Detail
Event TimelineEugene.Zelenko added inline comments.
This revision is now accepted and ready to land.Aug 14 2023, 1:38 PM Closed by commit rG766dd7b80b57: [clang-tidy] Fix handling of out-of-line functions in readability-static… (authored by PiotrZSL). · Explain WhyAug 14 2023, 11:59 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 550200 clang-tools-extra/clang-tidy/readability/StaticAccessedThroughInstanceCheck.cpp
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/test/clang-tidy/checkers/readability/static-accessed-through-instance.cpp
|
Should be const auto *.