Lines Matching defs:Context
32 bool isNULLMacroExpansion(const Stmt *Statement, ASTContext &Context) {
33 SourceManager &SM = Context.getSourceManager();
34 const LangOptions &LO = Context.getLangOpts();
46 ASTContext &Context) {
52 return Context.hasSameType(Type, Context.FloatTy) ? "0.0f" : "0.0";
56 return (Context.getLangOpts().CPlusPlus11 || Context.getLangOpts().C23)
72 ASTContext &Context,
85 Parent = Context.getParents(*Parent)[0].get<Stmt>();
120 Cast->getCastKind(), SubExpr->getType(), Context);
132 Cast->getEndLoc(), 0, Context.getSourceManager(), Context.getLangOpts());
137 ASTContext &Context) {
138 if (isNULLMacroExpansion(Expression, Context)) {
164 bool needsSpacePrefix(SourceLocation Loc, ASTContext &Context) {
167 CharSourceRange::getCharRange(PrefixRange), Context.getSourceManager(),
168 Context.getLangOpts(), nullptr);
178 ASTContext &Context, StringRef OtherType) {
179 if (!Context.getLangOpts().CPlusPlus) {
187 const bool NeedSpace = needsSpacePrefix(Cast->getBeginLoc(), Context);
196 Cast->getEndLoc(), 0, Context.getSourceManager(),
197 Context.getLangOpts());
204 QualType DestType, ASTContext &Context) {
206 if (!Context.getLangOpts().CPlusPlus11 &&
213 if (Context.hasSameType(DestType, Context.FloatTy)) {
226 ASTContext &Context) {
230 TraversalKindScope RAII(Context, TK_AsIs);
233 for (const auto &N : Context.getParents(*Q.front())) {
257 StringRef Name, ClangTidyContext *Context)
258 : ClangTidyCheck(Name, Context),
364 return handleCastToBool(CastToBool, Parent, *Result.Context);
371 return handleCastFromBool(CastFromBool, NextImplicitCast, *Result.Context);
377 ASTContext &Context) {
381 isCastAllowedInCondition(Cast, Context)) {
386 isCastAllowedInCondition(Cast, Context)) {
394 getEquivalentBoolLiteralForExpr(Cast->getSubExpr(), Context);
398 fixGenericExprCastToBool(Diag, Cast, Parent, Context,
405 ASTContext &Context) {
415 getEquivalentForBoolLiteral(BoolLiteral, DestType, Context);
424 fixGenericExprCastFromBool(Diag, Cast, Context, DestType.getAsString());