This will fix a false positive where a ParamVarDecl happend to be the
same name of some C standard symbol and has a global namespace.
using A = int(int time); // we suggest <ctime> for the `int time`.
Paths
| Differential D153330
[include-cleaner] Ignore the ParmVarDecl itself in WalkAST.cpp ClosedPublic Authored by hokein on Jun 20 2023, 4:14 AM.
Details Summary This will fix a false positive where a ParamVarDecl happend to be the using A = int(int time); // we suggest <ctime> for the `int time`.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jun 20 2023, 5:13 AM Closed by commit rG149f309f50cd: [include-cleaner] Ignore the ParmVarDecl itself in WalkAST.cpp (authored by hokein). · Explain WhyJun 20 2023, 5:33 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 532863 clang-tools-extra/include-cleaner/lib/WalkAST.cpp
clang-tools-extra/include-cleaner/unittests/AnalysisTest.cpp
|
s/isa/llvm::isa/