Home
last modified time | relevance | path

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

/external/llvm-project/clang-tools-extra/clang-tidy/misc/
DRedundantExpressionCheck.cpp780 static bool areExprsFromDifferentMacros(const Expr *LhsExpr, in areExprsFromDifferentMacros() argument
783 if (!LhsExpr || !RhsExpr) in areExprsFromDifferentMacros()
785 SourceRange Lsr = LhsExpr->getSourceRange(); in areExprsFromDifferentMacros()
819 static bool areExprsMacroAndNonMacro(const Expr *&LhsExpr, in areExprsMacroAndNonMacro() argument
821 if (!LhsExpr || !RhsExpr) in areExprsMacroAndNonMacro()
824 SourceLocation LhsLoc = LhsExpr->getExprLoc(); in areExprsMacroAndNonMacro()
1143 const Expr *LhsExpr = nullptr, *RhsExpr = nullptr; in checkRelationalExpr() local
1150 Result, "lhs", LhsExpr, LhsOpcode, LhsSymbol, LhsValue, LhsConst) || in checkRelationalExpr()
1158 std::swap(LhsExpr, RhsExpr); in checkRelationalExpr()
1181 diag(LhsExpr->getExprLoc(), "expression is redundant"); in checkRelationalExpr()
[all …]
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DSuspiciousEnumUsageCheck.cpp208 const auto *LhsExpr = Result.Nodes.getNodeAs<Expr>("lhsExpr"); in check() local
209 checkSuspiciousBitmaskUsage(LhsExpr, EnumDec); in check()
DNotNullTerminatedResultCheck.cpp328 const Expr *LhsExpr = BO->getLHS()->IgnoreImpCasts(); in lengthExprHandle() local
331 if (const auto *LhsIL = dyn_cast<IntegerLiteral>(LhsExpr)) { in lengthExprHandle()
343 {LhsExpr->getEndLoc().getLocWithOffset(1), RhsIL->getEndLoc()}); in lengthExprHandle()