forked from OSchip/llvm-project
Only traverse template argument locations if we actually have explicit
template arguments. llvm-svn: 123194
This commit is contained in:
parent
d5bbeba8d0
commit
2083ba400f
|
@ -1822,14 +1822,18 @@ DEF_TRAVERSE_STMT(ShuffleVectorExpr, { })
|
||||||
DEF_TRAVERSE_STMT(StmtExpr, { })
|
DEF_TRAVERSE_STMT(StmtExpr, { })
|
||||||
DEF_TRAVERSE_STMT(UnresolvedLookupExpr, {
|
DEF_TRAVERSE_STMT(UnresolvedLookupExpr, {
|
||||||
TRY_TO(TraverseNestedNameSpecifier(S->getQualifier()));
|
TRY_TO(TraverseNestedNameSpecifier(S->getQualifier()));
|
||||||
TRY_TO(TraverseTemplateArgumentLocsHelper(S->getTemplateArgs(),
|
if (S->hasExplicitTemplateArgs()) {
|
||||||
S->getNumTemplateArgs()));
|
TRY_TO(TraverseTemplateArgumentLocsHelper(S->getTemplateArgs(),
|
||||||
|
S->getNumTemplateArgs()));
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
DEF_TRAVERSE_STMT(UnresolvedMemberExpr, {
|
DEF_TRAVERSE_STMT(UnresolvedMemberExpr, {
|
||||||
TRY_TO(TraverseNestedNameSpecifier(S->getQualifier()));
|
TRY_TO(TraverseNestedNameSpecifier(S->getQualifier()));
|
||||||
TRY_TO(TraverseTemplateArgumentLocsHelper(S->getTemplateArgs(),
|
if (S->hasExplicitTemplateArgs()) {
|
||||||
S->getNumTemplateArgs()));
|
TRY_TO(TraverseTemplateArgumentLocsHelper(S->getTemplateArgs(),
|
||||||
|
S->getNumTemplateArgs()));
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
DEF_TRAVERSE_STMT(CXXOperatorCallExpr, { })
|
DEF_TRAVERSE_STMT(CXXOperatorCallExpr, { })
|
||||||
|
|
Loading…
Reference in New Issue