forked from OSchip/llvm-project
Remove ignoringImplicit from clang-tidy.
llvm-svn: 273660
This commit is contained in:
parent
8a02efb143
commit
998fb5c28b
|
@ -142,7 +142,7 @@ StatementMatcher makeIteratorLoopMatcher() {
|
||||||
StatementMatcher IteratorComparisonMatcher = expr(
|
StatementMatcher IteratorComparisonMatcher = expr(
|
||||||
ignoringParenImpCasts(declRefExpr(to(varDecl().bind(ConditionVarName)))));
|
ignoringParenImpCasts(declRefExpr(to(varDecl().bind(ConditionVarName)))));
|
||||||
|
|
||||||
auto OverloadedNEQMatcher = matchers::ignoringImplicit(
|
auto OverloadedNEQMatcher = ignoringImplicit(
|
||||||
cxxOperatorCallExpr(hasOverloadedOperatorName("!="), argumentCountIs(2),
|
cxxOperatorCallExpr(hasOverloadedOperatorName("!="), argumentCountIs(2),
|
||||||
hasArgument(0, IteratorComparisonMatcher),
|
hasArgument(0, IteratorComparisonMatcher),
|
||||||
hasArgument(1, IteratorBoundMatcher)));
|
hasArgument(1, IteratorBoundMatcher)));
|
||||||
|
|
|
@ -17,11 +17,6 @@ namespace clang {
|
||||||
namespace tidy {
|
namespace tidy {
|
||||||
namespace matchers {
|
namespace matchers {
|
||||||
|
|
||||||
AST_MATCHER_P(Expr, ignoringImplicit,
|
|
||||||
ast_matchers::internal::Matcher<Expr>, InnerMatcher) {
|
|
||||||
return InnerMatcher.matches(*Node.IgnoreImplicit(), Finder, Builder);
|
|
||||||
}
|
|
||||||
|
|
||||||
AST_MATCHER(BinaryOperator, isRelationalOperator) {
|
AST_MATCHER(BinaryOperator, isRelationalOperator) {
|
||||||
return Node.isRelationalOp();
|
return Node.isRelationalOp();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue