Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DNotNullTerminatedResultCheck.cpp200 const auto *LengthExpr = in isStringDataAndLength() local
212 if (LengthExpr) in isStringDataAndLength()
213 if (const CXXMethodDecl *LengthMD = LengthExpr->getMethodDecl()) in isStringDataAndLength()
235 if (isa<BinaryOperator>(LengthExpr->IgnoreParenImpCasts())) in isGivenLengthEqualToSrcLength()
291 static void lengthExprHandle(const Expr *LengthExpr, in lengthExprHandle() argument
295 LengthExpr = LengthExpr->IgnoreParenImpCasts(); in lengthExprHandle()
299 StringRef LengthExprStr = exprToStr(LengthExpr, Result); in lengthExprHandle()
310 if (const auto *LengthIL = dyn_cast<IntegerLiteral>(LengthExpr)) { in lengthExprHandle()
325 const auto *BO = dyn_cast<BinaryOperator>(LengthExpr); in lengthExprHandle()
353 Diag << FixItHint::CreateInsertion(LengthExpr->getBeginLoc(), "("); in lengthExprHandle()
[all …]