reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
62 if (CastExpr->getExprLoc().isMacroID()) 67 if (CastExpr->getCastKind() == CK_ToVoid) 77 CastExpr->getTypeAsWritten().getUnqualifiedType(); 79 CastExpr->getSubExprAsWritten()->getType().getUnqualifiedType(); 84 CastExpr->getLParenLoc(), CastExpr->getSubExprAsWritten()->getBeginLoc()); 84 CastExpr->getLParenLoc(), CastExpr->getSubExprAsWritten()->getBeginLoc()); 89 const bool ConstructorCast = !CastExpr->getTypeAsWritten().hasQualifiers() && 93 if (CastExpr->getCastKind() == CK_NoOp && !FnToFnCast) { 99 diag(CastExpr->getBeginLoc(), "redundant cast to the same type") 110 if (!match(expr(hasAncestor(linkageSpecDecl())), *CastExpr, *Result.Context) 122 if (SM.getFilename(SM.getSpellingLoc(CastExpr->getBeginLoc())).endswith(".c")) 129 CastExpr->getLParenLoc().getLocWithOffset(1), 130 CastExpr->getRParenLoc().getLocWithOffset(-1)), 134 diag(CastExpr->getBeginLoc(), "C-style casts are discouraged; use %0"); 137 const Expr *SubExpr = CastExpr->getSubExprAsWritten()->IgnoreImpCasts(); 157 switch (CastExpr->getCastKind()) {