projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7d0cc7
)
[include-cleaner] Fix a missing review comment.
author
Haojian Wu
<hokein.wu@gmail.com>
Mon, 19 Dec 2022 08:12:35 +0000
(09:12 +0100)
committer
Haojian Wu
<hokein.wu@gmail.com>
Mon, 19 Dec 2022 08:14:33 +0000
(09:14 +0100)
I forgot to add the change to the commit when committing.
clang-tools-extra/include-cleaner/lib/WalkAST.cpp
patch
|
blob
|
history
diff --git
a/clang-tools-extra/include-cleaner/lib/WalkAST.cpp
b/clang-tools-extra/include-cleaner/lib/WalkAST.cpp
index
cf2f0d7
..
639add8
100644
(file)
--- a/
clang-tools-extra/include-cleaner/lib/WalkAST.cpp
+++ b/
clang-tools-extra/include-cleaner/lib/WalkAST.cpp
@@
-42,10
+42,10
@@
class ASTWalker : public RecursiveASTVisitor<ASTWalker> {
}
NamedDecl *getMemberProvider(QualType Base) {
if (Base->isPointerType())
-
Base = Base->getPointeeType(
);
+
return getMemberProvider(Base->getPointeeType()
);
// Unwrap the sugar ElaboratedType.
if (const auto *ElTy = dyn_cast<ElaboratedType>(Base))
-
Base = ElTy->getNamedType(
);
+
return getMemberProvider(ElTy->getNamedType()
);
if (const auto *TT = dyn_cast<TypedefType>(Base))
return TT->getDecl();