reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/lib/Sema/SemaType.cpp
 2206   if (ArraySize && ArraySize->hasPlaceholderType()) {
 2206   if (ArraySize && ArraySize->hasPlaceholderType()) {
 2207     ExprResult Result = CheckPlaceholderExpr(ArraySize);
 2209     ArraySize = Result.get();
 2213   if (ArraySize && !ArraySize->isRValue()) {
 2213   if (ArraySize && !ArraySize->isRValue()) {
 2214     ExprResult Result = DefaultLvalueConversion(ArraySize);
 2218     ArraySize = Result.get();
 2224       ArraySize && !ArraySize->isTypeDependent() &&
 2224       ArraySize && !ArraySize->isTypeDependent() &&
 2225       !ArraySize->getType()->isIntegralOrUnscopedEnumerationType()) {
 2226     Diag(ArraySize->getBeginLoc(), diag::err_array_size_non_int)
 2227         << ArraySize->getType() << ArraySize->getSourceRange();
 2227         << ArraySize->getType() << ArraySize->getSourceRange();
 2232   if (!ArraySize) {
 2237   } else if (ArraySize->isTypeDependent() || ArraySize->isValueDependent()) {
 2237   } else if (ArraySize->isTypeDependent() || ArraySize->isValueDependent()) {
 2238     T = Context.getDependentSizedArrayType(T, ArraySize, ASM, Quals, Brackets);
 2241              isArraySizeVLA(*this, ArraySize, ConstVal)) {
 2245         !ArraySize->getType()->isIntegralOrUnscopedEnumerationType()) {
 2246       Diag(ArraySize->getBeginLoc(), diag::err_array_size_non_int)
 2247           << ArraySize->getType() << ArraySize->getSourceRange();
 2247           << ArraySize->getType() << ArraySize->getSourceRange();
 2254     T = Context.getVariableArrayType(T, ArraySize, ASM, Quals, Brackets);
 2260         Diag(ArraySize->getBeginLoc(), diag::err_decl_negative_array_size)
 2261             << getPrintableNameForEntity(Entity) << ArraySize->getSourceRange();
 2263         Diag(ArraySize->getBeginLoc(), diag::err_typecheck_negative_array_size)
 2264             << ArraySize->getSourceRange();
 2270       Diag(ArraySize->getBeginLoc(), isSFINAEContext()
 2273           << ArraySize->getSourceRange();
 2276         Diag(ArraySize->getBeginLoc(),
 2278             << ArraySize->getSourceRange();
 2287         Diag(ArraySize->getBeginLoc(), diag::err_array_too_large)
 2288             << ConstVal.toString(10) << ArraySize->getSourceRange();
 2293     T = Context.getConstantArrayType(T, ConstVal, ArraySize, ASM, Quals);