mirror of
https://github.com/intel/llvm.git
synced 2026-01-19 09:31:59 +08:00
[clang][NFC] Spell out DynTypedNode instead of auto (#114427)
This commit is contained in:
@@ -3226,7 +3226,7 @@ AST_MATCHER_P(CXXDependentScopeMemberExpr, memberHasSameNameAsBoundNode,
|
||||
|
||||
return Builder->removeBindings(
|
||||
[this, MemberName](const BoundNodesMap &Nodes) {
|
||||
const auto &BN = Nodes.getNode(this->BindingID);
|
||||
const DynTypedNode &BN = Nodes.getNode(this->BindingID);
|
||||
if (const auto *ND = BN.get<NamedDecl>()) {
|
||||
if (!isa<FieldDecl, CXXMethodDecl, VarDecl>(ND))
|
||||
return true;
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace clang {
|
||||
namespace ast_matchers {
|
||||
AST_MATCHER_P(StringLiteral, mentionsBoundType, std::string, BindingID) {
|
||||
return Builder->removeBindings([this, &Node](const BoundNodesMap &Nodes) {
|
||||
const auto &BN = Nodes.getNode(this->BindingID);
|
||||
const DynTypedNode &BN = Nodes.getNode(this->BindingID);
|
||||
if (const auto *ND = BN.get<NamedDecl>()) {
|
||||
return ND->getName() != Node.getString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user