Home
last modified time | relevance | path

Searched refs:OpCall (Results 1 – 8 of 8) sorted by relevance

/external/llvm-project/clang-tools-extra/clang-tidy/abseil/
DDurationDivisionCheck.cpp39 const auto *OpCall = result.Nodes.getNodeAs<CXXOperatorCallExpr>("OpCall"); in check() local
40 diag(OpCall->getOperatorLoc(), in check()
43 << FixItHint::CreateInsertion(OpCall->getBeginLoc(), in check()
46 SourceRange(OpCall->getOperatorLoc(), OpCall->getOperatorLoc()), in check()
50 result.SourceManager->getSpellingLoc(OpCall->getEndLoc()), 0, in check()
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DLoopConvertUtils.cpp223 if (const auto *OpCall = dyn_cast<CXXOperatorCallExpr>(E)) { in getDereferenceOperand() local
224 return OpCall->getOperator() == OO_Star && OpCall->getNumArgs() == 1 in getDereferenceOperand()
225 ? OpCall->getArg(0) in getDereferenceOperand()
313 static bool isDereferenceOfOpCall(const CXXOperatorCallExpr *OpCall, in isDereferenceOfOpCall() argument
315 return OpCall->getOperator() == OO_Star && OpCall->getNumArgs() == 1 && in isDereferenceOfOpCall()
316 exprReferencesVariable(IndexVar, OpCall->getArg(0)); in isDereferenceOfOpCall()
391 const auto *OpCall = cast<CXXOperatorCallExpr>(Init); in isAliasDecl() local
392 if (OpCall->getOperator() == OO_Star) in isAliasDecl()
393 return isDereferenceOfOpCall(OpCall, IndexVar); in isAliasDecl()
394 if (OpCall->getOperator() == OO_Subscript) { in isAliasDecl()
[all …]
DLoopConvertUtils.h350 bool TraverseCXXOperatorCallExpr(CXXOperatorCallExpr *OpCall);
/external/clang/unittests/ASTMatchers/
DASTMatchersNodeTest.cpp300 StatementMatcher OpCall = cxxOperatorCallExpr(); in TEST() local
304 "Y y; bool c = !y;", OpCall)); in TEST()
314 "void a() {Y *y = new Y; delete y;}", OpCall)); in TEST()
319 OpCall)); in TEST()
321 EXPECT_TRUE(notMatches("bool x = true, y = true; bool t = x && y;", OpCall)); in TEST()
322 EXPECT_TRUE(notMatches("int t = 5 << 2;", OpCall)); in TEST()
/external/llvm-project/clang/unittests/ASTMatchers/
DASTMatchersNodeTest.cpp447 StatementMatcher OpCall = cxxOperatorCallExpr(); in TEST_P() local
452 OpCall)); in TEST_P()
463 OpCall)); in TEST_P()
468 OpCall)); in TEST_P()
470 EXPECT_TRUE(notMatches("bool x = true, y = true; bool t = x && y;", OpCall)); in TEST_P()
471 EXPECT_TRUE(notMatches("int t = 5 << 2;", OpCall)); in TEST_P()
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DSimplifyBooleanExprCheck.cpp131 StringRef negatedOperator(const CXXOperatorCallExpr *OpCall) { in negatedOperator() argument
132 const OverloadedOperatorKind Opcode = OpCall->getOperator(); in negatedOperator()
/external/clang/lib/Sema/
DSemaExprCXX.cpp5994 if (CXXOperatorCallExpr *OpCall = dyn_cast<CXXOperatorCallExpr>(Base)) in ActOnStartCXXMemberReference() local
5995 OperatorArrows.push_back(OpCall->getDirectCallee()); in ActOnStartCXXMemberReference()
/external/llvm-project/clang/lib/Sema/
DSemaExprCXX.cpp7201 if (CXXOperatorCallExpr *OpCall = dyn_cast<CXXOperatorCallExpr>(Base)) in ActOnStartCXXMemberReference() local
7202 OperatorArrows.push_back(OpCall->getDirectCallee()); in ActOnStartCXXMemberReference()