Searched refs:DefVD (Results 1 – 5 of 5) sorted by relevance
45 const VarDecl *DefVD = nullptr; in IsVariableAConstantExpression() local48 Var->getAnyInitializer(DefVD) && DefVD->checkInitIsICE(); in IsVariableAConstantExpression()
2346 const VarDecl *DefVD = nullptr; in isUsableInConstantExpressions() local2347 const Expr *Init = getAnyInitializer(DefVD); in isUsableInConstantExpressions()2352 if (!DefVD->mightBeUsableInConstantExpressions(Context)) in isUsableInConstantExpressions()2355 if (Context.getLangOpts().CPlusPlus && !DefVD->hasConstantInitialization()) in isUsableInConstantExpressions()2362 !Context.getLangOpts().CPlusPlus11 && !DefVD->hasICEInitializer(Context)) in isUsableInConstantExpressions()
6561 const VarDecl *DefVD = nullptr; in VariableCanNeverBeAConstantExpression() local6564 if (!Var->getAnyInitializer(DefVD)) return true; in VariableCanNeverBeAConstantExpression()6565 assert(DefVD); in VariableCanNeverBeAConstantExpression()6566 if (DefVD->isWeak()) return false; in VariableCanNeverBeAConstantExpression()6567 EvaluatedStmt *Eval = DefVD->ensureEvaluatedStmt(); in VariableCanNeverBeAConstantExpression()
13785 const VarDecl *DefVD = nullptr; in IsVariableNonDependentAndAConstantExpression() local13786 Var->getAnyInitializer(DefVD); in IsVariableNonDependentAndAConstantExpression()13787 if (!DefVD) in IsVariableNonDependentAndAConstantExpression()13789 EvaluatedStmt *Eval = DefVD->ensureEvaluatedStmt(); in IsVariableNonDependentAndAConstantExpression()
7805 const VarDecl *DefVD = nullptr; in VariableCanNeverBeAConstantExpression() local7808 if (!Var->getAnyInitializer(DefVD)) return true; in VariableCanNeverBeAConstantExpression()7809 assert(DefVD); in VariableCanNeverBeAConstantExpression()7810 if (DefVD->isWeak()) return false; in VariableCanNeverBeAConstantExpression()7811 EvaluatedStmt *Eval = DefVD->ensureEvaluatedStmt(); in VariableCanNeverBeAConstantExpression()