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

References

include/llvm/Support/CommandLine.h
  530     assert(Valid && "invalid option value");
  813     assert(findOption(Name) == Values.size() && "Option already exists!");
  823     assert(N != Values.size() && "Option not found!");
 1209     assert((MF != Grouping || O.ArgStr.size() == 1) &&
 1239     assert(Location && "cl::location(...) not specified for a command "
 1442     assert(Location != 0 && "cl::location(...) not specified for a command "
 1584     assert(optnum < this->size() && "Invalid option index");
 1621     assert(BitPos < sizeof(unsigned) * CHAR_BIT &&
 1637     assert(Location != 0 && "cl::location(...) not specified for a command "
 1657     assert(BitPos < sizeof(unsigned) * CHAR_BIT &&
 1727     assert(optnum < this->size() && "Invalid option index");
lib/Support/regcomp.c
  429 	assert(!MORE() || SEE(stop));
  446 	assert(MORE());		/* caller should have ensured this */
  462 			assert(p->pend[subno] != 0);
  525 			assert(backrefnum <= p->g->nsub);
  527 			assert(p->pbegin[backrefnum] != 0);
  528 			assert(OP(p->strip[p->pbegin[backrefnum]]) != OLPAREN);
  529 			assert(OP(p->strip[p->pend[backrefnum]]) != ORPAREN);
  673         assert(MORE()); /* caller should have ensured this */
  703 			assert(p->pend[subno] != 0);
  722 		assert(i < NPAREN);
  724 			assert(i <= p->g->nsub);
  726 			assert(p->pbegin[i] != 0);
  727 			assert(OP(p->strip[p->pbegin[i]]) == OLPAREN);
  728 			assert(OP(p->strip[p->pend[i]]) == ORPAREN);
  863 	assert(cs->multis == NULL);		/* xxx */
 1032 	assert(isalpha(ch));
 1054 	assert(othercase(ch) != ch);	/* p_bracket() would recurse */
 1061 	assert(p->next == bracket+2);
 1102 	assert(p->next == bracket+3);
 1126 	assert(from <= to);
 1156 		assert(copy == finish+4);
 1210 		assert(nc % CHAR_BIT == 0);
 1316 	assert(never);
 1369 	assert(cs->multis == NULL);	/* xxx */
 1382 	assert(cs->multis == NULL);	/* xxx */
 1456 	assert(finish >= start);
 1460 	assert(p->ssize >= p->slen + len);
 1482 	assert(opnd < 1<<OPSHIFT);
 1487 	assert(p->slen < p->ssize);
 1509 	assert(HERE() == sn+1);
 1513 	assert(pos > 0);
 1538 	assert(value < 1<<OPSHIFT);
 1664 		assert(cp < g->must + g->mlen);
 1667 	assert(cp == g->must + g->mlen);
lib/Support/regengine.inc
  196 		assert(m->coldp != NULL);
  202 			assert(m->coldp < m->endp);
  237 		assert(g->backrefs);	/* must be back references doing it */
  238 		assert(g->nplus == 0 || m->lastpos != NULL);
  256 		assert(dp == NULL || dp == endp);
  273 		assert(m->pmatch != NULL);
  331 			assert(nope);
  347 			assert(nope);
  355 				assert(rest != NULL);	/* it did match */
  362 				assert(stp >= sp);	/* it did work */
  370 				assert(dp == rest);
  372 				assert(sp == rest);
  380 				assert(rest != NULL);	/* it did match */
  387 				assert(stp >= sp);	/* it did work */
  405 			assert(sep == rest);	/* must exhaust substring */
  406 			assert(slow(m, ssp, sep, ssub, esub) == rest);
  410 				assert(dp == sep);
  419 				assert(rest != NULL);	/* it did match */
  426 				assert(stp >= sp);	/* it did work */
  430 			assert(OP(m->g->strip[esub]) == OOR1);
  435 				assert(OP(m->g->strip[esub]) == OOR1);
  437 				assert(OP(m->g->strip[esub]) == OOR2);
  443 					assert(OP(m->g->strip[esub]) == O_CH);
  448 				assert(dp == rest);
  457 			assert(nope);
  461 			assert(0 < i && i <= m->g->nsub);
  466 			assert(0 < i && i <= m->g->nsub);
  470 			assert(nope);
  475 	assert(sp == stop);
  563 				assert(OP(s) == OOR2);
  585 		assert(0 < i && i <= m->g->nsub);
  588 		assert(m->pmatch[i].rm_so != -1);
  592 		assert(stop - m->beginp >= len);
  609 		assert(m->lastpos != NULL);
  610 		assert(lev+1 <= m->g->nplus);
  628 		assert(OP(m->g->strip[esub]) == OOR1);
  637 			assert(OP(m->g->strip[esub]) == OOR2);
  643 				assert(OP(m->g->strip[esub]) == O_CH);
  648 		assert(0 < i && i <= m->g->nsub);
  659 		assert(0 < i && i <= m->g->nsub);
  669 		assert(nope);
  674 	assert(nope);
  749 		assert(c != OUT);
  752 		assert(EQ(step(m->g, startst, stopst, st, NOTHING, st), st));
  756 	assert(coldp != NULL);
  834 		assert(c != OUT);
  837 		assert(EQ(step(m->g, startst, stopst, st, NOTHING, st), st));
  867 			assert(pc == stop-1);
  871 			assert(!NONCHAR(ch) || ch != (char)OPND(s));
  930 			assert(OP(g->strip[pc+OPND(s)]) == OOR2);
  938 					assert(OP(s) == OOR2);
  945 				assert(OP(g->strip[pc+OPND(s)]) == OOR2);
  953 			assert(nope);
lib/Support/regerror.c
  101 				assert(strlen(r->name) < sizeof(convbuf));
lib/Support/regexec.c
  153 	assert(!(g->iflags&REGEX_BAD));
tools/clang/include/clang/AST/ASTUnresolvedSet.h
  108     assert(Impl.empty() || Impl.Decls.isLazy());
tools/clang/include/clang/AST/DeclCXX.h
  435     assert(DD && "queried property of class with no definition");
  443     assert(DD && DD->IsLambda && "queried lambda property of non-lambda class");
  525       assert(Recent->getPreviousDecl());
  679     assert((!needsOverloadResolutionForCopyConstructor() ||
  688     assert((!needsOverloadResolutionForMoveConstructor() ||
  696     assert((!needsOverloadResolutionForDestructor() ||
  828     assert((data().DefaultedCopyConstructorIsDeleted ||
  837     assert((data().DefaultedMoveConstructorIsDeleted ||
  846     assert((data().DefaultedDestructorIsDeleted ||
  918     assert((data().DefaultedMoveAssignmentIsDeleted ||
  999     assert(isLambda());
 1668     assert(DeclAccess != AS_none);
 1707     assert(isLambda() && "Not a lambda closure type!");
 1714     assert(isLambda() && "Not a lambda closure type!");
 1733     assert(isLambda() && "Not a lambda closure type!");
 2245     assert(isPackExpansion() && "Initializer is not a pack expansion");
 2260     assert(isBaseInitializer() && "Must call this on base initializer!");
 2321     assert(!IsWritten &&
 2323     assert(SourceOrder == 0 &&
 2325     assert(Pos >= 0 &&
 2402     assert((!ES.getExpr() ||
 2508     assert(CXXConstructorDeclBits.NumCtorInitializers ==
 2799     assert(!RBraceLoc.isValid() || LinkageSpecDeclBits.HasBraces);
 3135     assert(ND && "Target decl is null!");
tools/clang/include/clang/AST/DeclObjC.h
   94     assert(Idx < NumElts && "Invalid access");
  295     assert(Index < getNumSelectorLocs() && "Index out of range!");
  372     assert(Idx < NumParams && "Index out of bounds!");
  690     assert(size() > 0 && "empty Objective-C type parameter list");
  695     assert(size() > 0 && "empty Objective-C type parameter list");
 1262     assert(Data.getPointer() && "Declaration has no definition!");
 1341     assert(hasDefinition() && "Caller did not check for forward reference!");
 2087     assert(Data.getPointer() && "Objective-C protocol has no definition!");
 2121     assert(hasDefinition() && "No definition available!");
 2178     assert(hasDefinition() && "Protocol is not defined");
 2673     assert(getIdentifier() && "Name is not a simple identifier");
 2797     assert(PK == Dynamic || PropertyIvarDecl);
tools/clang/include/clang/AST/DeclTemplate.h
  133     assert(Idx < size() && "Template parameter index out-of-range");
  137     assert(Idx < size() && "Template parameter index out-of-range");
  217             (assert(N == Params.size()),
  218              assert(HasRequiresClause == static_cast<bool>(RequiresClause)),
  270     assert(Idx < NumArguments && "Invalid template argument index");
  318     assert(!Parm->getDefaultArgStorage()
  357     assert(!isSet() && "default argument already set");
  363     assert(!isInherited() && "default argument already inherited");
  445     assert(!TemplatedDecl && "TemplatedDecl already set!");
  446     assert(!TemplateParams && "TemplateParams already set!");
  535     assert(TSK != TSK_Undeclared &&
  620     assert(TSK != TSK_Undeclared &&
  639     assert(TSK != TSK_Undeclared &&
  708     assert(I < getNumTemplates() && "template index out of range");
  722     assert(I < getNumTemplateArgs() && "template arg index out of range");
  878     assert(getCommonPtr()->InstantiatedFromMember.getPointer() &&
  924     assert(!getCommonPtr()->InstantiatedFromMember.getPointer());
 1404     assert(ExpandedParameterPack && "Not an expansion parameter pack");
 1411     assert(I < NumExpandedTypes && "Out-of-range expansion type index");
 1420     assert(I < NumExpandedTypes && "Out-of-range expansion type index");
 1541     assert(ExpandedParameterPack && "Not an expansion parameter pack");
 1548     assert(I < NumExpandedParams && "Out-of-range expansion type index");
 1774     assert(Loc.isValid() && "point of instantiation must be valid!");
 1828     assert(!SpecializedTemplate.is<SpecializedPartialSpecialization*>() &&
 1839     assert(!SpecializedTemplate.is<SpecializedPartialSpecialization*>() &&
 2045     assert(First->InstantiatedFromMember.getPointer() &&
 2054     assert(getTypeForDecl() && "partial specialization has no type set!");
 2322     assert(i <= NumParams);
 2618     assert(Loc.isValid() && "point of instantiation must be valid!");
 2672     assert(!SpecializedTemplate.is<SpecializedPartialSpecialization *>() &&
 2683     assert(!SpecializedTemplate.is<SpecializedPartialSpecialization *>() &&
 2878     assert(First->InstantiatedFromMember.getPointer() &&
tools/clang/include/clang/AST/ExprCXX.h
  812     assert(isTypeOperand() && "Cannot call getTypeOperand for typeid(expr)");
  817     assert(isTypeOperand() && "Cannot call getTypeOperand for typeid(expr)");
  822     assert(!isTypeOperand() && "Cannot call getExprOperand for typeid(type)");
  827     assert(!isTypeOperand() && "Cannot call getExprOperand for typeid(type)");
 1037     assert(isTypeOperand() && "Cannot call getTypeOperand for __uuidof(expr)");
 1042     assert(isTypeOperand() && "Cannot call getTypeOperand for __uuidof(expr)");
 1047     assert(!isTypeOperand() && "Cannot call getExprOperand for __uuidof(type)");
 1052     assert(!isTypeOperand() && "Cannot call getExprOperand for __uuidof(type)");
 1308     assert(Field->getInClassInitializer() && "initializer hasn't been parsed");
 1312     assert(Field->getInClassInitializer() && "initializer hasn't been parsed");
 1574     assert(Arg < getNumArgs() && "Arg access out of range!");
 1578     assert(Arg < getNumArgs() && "Arg access out of range!");
 1584     assert(Arg < getNumArgs() && "Arg access out of range!");
 1639     assert(!T->isDependentType());
 1792   assert((getStmtClass() == CXXConstructExprClass) &&
 2246     assert((I < getNumPlacementArgs()) && "Index out of range!");
 2671     assert(!isValueDependent());
 2680     assert(I < getNumArgs() && "Argument out-of-range");
 2760   uint64_t getValue() const { assert(!isTypeDependent()); return Value; }
 2905     assert(E->getType()->isSpecificBuiltinType(BuiltinType::Overload));
 2911       assert(cast<UnaryOperator>(E)->getOpcode() == UO_AddrOf);
 3340     assert(i < getNumObjects() && "Index out of range");
 3466     assert(I < arg_size() && "Argument index out-of-range");
 3471     assert(I < arg_size() && "Argument index out-of-range");
 3476     assert(I < arg_size() && "Argument index out-of-range");
 3610     assert(!isImplicitAccess());
 3849     assert(!isImplicitAccess());
 3853     assert(!isImplicitAccess());
 4133     assert((!Length || PartialArgs.empty()) &&
 4169     assert(!isValueDependent() &&
 4185     assert(isPartiallySubstituted());
 4648     assert(Common->isTypeDependent() && Ty->isDependentType() &&
 4757     assert(Ty->isDependentType() &&
 4936     assert(!isValueDependent()
tools/clang/include/clang/AST/ExprObjC.h
  231     assert((Index < NumElements) && "Arg access out of range!");
  235     assert((Index < NumElements) && "Arg access out of range!");
  361     assert((Index < NumElements) && "Arg access out of range!");
  656     assert(t->isSpecificPlaceholderType(BuiltinType::PseudoObject));
  667     assert(t->isSpecificPlaceholderType(BuiltinType::PseudoObject));
  678     assert(T->isSpecificPlaceholderType(BuiltinType::PseudoObject));
  688     assert(T->isSpecificPlaceholderType(BuiltinType::PseudoObject));
  698     assert(T->isSpecificPlaceholderType(BuiltinType::PseudoObject));
  708     assert(!isImplicitProperty());
  713     assert(isImplicitProperty());
  718     assert(isImplicitProperty());
 1039     assert((Num >> NumArgsBitWidth) == 0 && "Num of args is out of range!");
 1396     assert(Arg < NumArgs && "Arg access out of range!");
 1400     assert(Arg < NumArgs && "Arg access out of range!");
 1406     assert(Arg < NumArgs && "Arg access out of range!");
 1426     assert(Index < getNumSelectorLocs() && "Index out of range!");
tools/clang/include/clang/AST/GlobalDecl.h
   45     assert(!isa<CXXConstructorDecl>(D) && "Use other ctor with ctor decls!");
   46     assert(!isa<CXXDestructorDecl>(D) && "Use other ctor with dtor decls!");
   80     assert(isa<CXXConstructorDecl>(getDecl()) && "Decl is not a ctor!");
   85     assert(isa<CXXDestructorDecl>(getDecl()) && "Decl is not a dtor!");
   90     assert(isa<VarDecl>(getDecl()) &&
   97     assert(isa<FunctionDecl>(getDecl()) &&
  124     assert(isa<CXXConstructorDecl>(getDecl()));
  131     assert(isa<CXXDestructorDecl>(getDecl()));
  138     assert(isa<FunctionDecl>(getDecl()) &&
tools/clang/include/clang/AST/LambdaCapture.h
  105     assert(capturesVariable() && "No variable available for capture");
  134     assert(isPackExpansion() && "No ellipsis location for a non-expansion");
tools/clang/include/clang/AST/LocInfoType.h
   42     assert(getTypeClass() == (TypeClass)LocInfo && "LocInfo didn't fit in TC?");
tools/clang/include/clang/AST/RecordLayout.h
  203     assert(CXXInfo && "Record layout does not have C++ specific info!");
  211     assert(CXXInfo && "Record layout does not have C++ specific info!");
  218     assert(CXXInfo && "Record layout does not have C++ specific info!");
  226     assert(CXXInfo && "Record layout does not have C++ specific info!");
  233     assert(CXXInfo && "Record layout does not have C++ specific info!");
  234     assert(CXXInfo->BaseOffsets.count(Base) && "Did not find base!");
  241     assert(CXXInfo && "Record layout does not have C++ specific info!");
  242     assert(CXXInfo->VBaseOffsets.count(VBase) && "Did not find base!");
  248     assert(CXXInfo && "Record layout does not have C++ specific info!");
  260     assert(CXXInfo && "Record layout does not have C++ specific info!");
  268     assert(CXXInfo && "Record layout does not have C++ specific info!");
  280     assert(CXXInfo && "Record layout does not have C++ specific info!");
  286     assert(CXXInfo && "Record layout does not have C++ specific info!");
  299     assert(CXXInfo && "Record layout does not have C++ specific info!");
  306     assert(CXXInfo && "Record layout does not have C++ specific info!");
  311     assert(CXXInfo && "Record layout does not have C++ specific info!");
  316     assert(CXXInfo && "Record layout does not have C++ specific info!");
tools/clang/include/clang/AST/VTableBuilder.h
   71     assert(!isa<CXXDestructorDecl>(MD) &&
   89     assert(!isa<CXXDestructorDecl>(MD) &&
  101     assert(getKind() == CK_VCallOffset && "Invalid component kind!");
  107     assert(getKind() == CK_VBaseOffset && "Invalid component kind!");
  113     assert(getKind() == CK_OffsetToTop && "Invalid component kind!");
  119     assert(isRTTIKind() && "Invalid component kind!");
  124     assert(isFunctionPointerKind() && "Invalid component kind!");
  131     assert(isDestructorKind() && "Invalid component kind!");
  136     assert(getKind() == CK_UnusedFunctionPointer && "Invalid component kind!");
  153     assert(isUsedFunctionPointerKind() &&
  192     assert((ComponentKind == CK_VCallOffset ||
  195     assert(Offset.getQuantity() < (1LL << 56) && "Offset is too big!");
  196     assert(Offset.getQuantity() >= -(1LL << 56) && "Offset is too small!");
  202     assert((isRTTIKind(ComponentKind) || isFunctionPointerKind(ComponentKind)) &&
  205     assert((Ptr & 7) == 0 && "Pointer not sufficiently aligned!");
  211     assert((getKind() == CK_VCallOffset || getKind() == CK_VBaseOffset ||
  218     assert((getKind() == CK_RTTI || isFunctionPointerKind()) &&
  272     assert(AddressPoints.count(Base) && "Did not find address point!");
  288       assert(i == 0);
  296       assert(i == 0);
  379     assert(VTableLayouts.count(RD) && "No layout for this record decl!");
  500       assert(VBase != other.VBase);
tools/clang/include/clang/Frontend/FrontendOptions.h
  216     assert(isFile());
  221     assert(isBuffer());
tools/clang/include/clang/Lex/Token.h
  130     assert(!isAnnotation() && "Annotation tokens have no length field");
  136     assert(!isAnnotation() && "Annotation tokens have no length field");
  141     assert(isAnnotation() && "Used AnnotEndLocID on non-annotation token");
  145     assert(isAnnotation() && "Used AnnotEndLocID on non-annotation token");
  180     assert(isNot(tok::raw_identifier) &&
  182     assert(!isAnnotation() &&
  193     assert(is(tok::eof));
  197     assert(is(tok::eof));
  198     assert(!PtrData);
  206     assert(is(tok::raw_identifier));
  210     assert(is(tok::raw_identifier));
  218     assert(isLiteral() && "Cannot get literal data of non-literal");
  222     assert(isLiteral() && "Cannot set literal data of non-literal");
  227     assert(isAnnotation() && "Used AnnotVal on non-annotation token");
  231     assert(isAnnotation() && "Used AnnotVal on non-annotation token");
tools/clang/include/clang/Sema/DeclSpec.h
  200     assert(R.isValid() && "Must have a valid source range");
  483     assert(isTypeRep((TST) TypeSpecType) && "DeclSpec does not store a type");
  487     assert(isDeclRep((TST) TypeSpecType) && "DeclSpec does not store a decl");
  491     assert(isExprRep((TST) TypeSpecType) && "DeclSpec does not store an expr");
  510     assert(isDeclRep((TST) TypeSpecType) || TypeSpecType == TST_typename);
  689     assert(isDeclRep((TST) TypeSpecType));
  693     assert(isTypeRep((TST) TypeSpecType));
  697     assert(isExprRep((TST) TypeSpecType));
  862     assert(((getObjCDeclQualifier() & DQ_CSNullability) ||
  869     assert(((getObjCDeclQualifier() & DQ_CSNullability) ||
  876     assert(((getObjCDeclQualifier() & DQ_CSNullability) ||
 1432       assert(MethodQualifiers);
 1438       assert(MethodQualifiers);
 1444       assert(MethodQualifiers);
 1474       assert(ExceptionSpecType != EST_None);
 1481       assert(ExceptionSpecType == EST_None);
 2190     assert(i < DeclTypeInfo.size() && "Invalid type chunk");
 2194     assert(i < DeclTypeInfo.size() && "Invalid type chunk");
 2207     assert(!DeclTypeInfo.empty() && "No type chunks to drop.");
 2279     assert(isFunctionDeclarator() && "Not a function declarator!");
tools/clang/include/clang/Sema/IdentifierResolver.h
   89       assert((Ptr & 0x1) == 0 && "Invalid Ptr!");
  101       assert(isIterator() && "Ptr not an iterator!");
  196     assert((reinterpret_cast<uintptr_t>(Ptr) & 0x1) == 1
tools/clang/include/clang/Sema/Ownership.h
  199       assert((PtrWithInvalid & 0x01) == 0 && "Badly aligned pointer");
  222       assert((PtrWithInvalid & 0x01) == 0 && "Badly aligned pointer");
  228       assert((PtrWithInvalid & 0x01) == 0 && "Badly aligned pointer");
  289     assert(!R.isInvalid() && "operation was asserted to never fail!");
  294     assert(!R.isInvalid() && "operation was asserted to never fail!");
tools/clang/include/clang/Sema/ParsedAttr.h
  318     assert(IsProperty);
  322     assert(IsProperty);
  350     assert(hasProcessingCache());
  375     assert(Arg < NumArgs && "Arg access out of range!");
  396     assert(getParsedKind() == AT_Availability &&
  402     assert(getParsedKind() == AT_Availability &&
  408     assert(getParsedKind() == AT_Availability &&
  414     assert(getParsedKind() == AT_Availability &&
  420     assert(getParsedKind() == AT_Availability &&
  426     assert(getParsedKind() == AT_Availability &&
  432     assert(getParsedKind() == AT_Availability &&
  438     assert(getParsedKind() == AT_TypeTagForDatatype &&
  444     assert(getParsedKind() == AT_TypeTagForDatatype &&
  450     assert(getParsedKind() == AT_TypeTagForDatatype &&
  456     assert(HasParsedType && "Not a type attribute");
  461     assert(isDeclspecPropertyAttribute() &&
  467     assert(isDeclspecPropertyAttribute() &&
  488     assert(hasMacroIdentifier() && "Can only get the macro expansion location "
  616     assert(llvm::is_contained(Attrs, attr) &&
  739     assert(newAttr);
  744     assert(is_contained(AttrList, ToBeRemoved) &&
  792     assert(!empty());
  796     assert(!empty());
  800     assert(!empty());
  804     assert(!empty());
tools/clang/include/clang/Sema/Scope.h
  277     assert(isFunctionPrototypeScope());
  348       assert(FnS->getParent() && "TUScope not created?");
  416       assert(isOpenMPDirectiveScope() &&
tools/clang/include/clang/Sema/Sema.h
  355       assert(Old->isExternallyDeclarable() &&
  491       assert((Action == PSK_Push || Action == PSK_Pop) &&
  773       assert(CurPool == nullptr);
  792       assert(ContextToPush && "pushing null context");
  836         assert(isa<ObjCMethodDecl>(DC));
  840       assert(!PushedCodeSynthesisContext);
 1671       assert(DiagID != 0 && "no diagnostic for type diagnoser");
 1985       assert(Kind == NC_ContextIndependentExpr);
 1990       assert(Kind == NC_Type);
 1995       assert(Kind == NC_NonType);
 2000       assert(Kind == NC_TypeTemplate || Kind == NC_FunctionTemplate ||
 5187       assert(!isComputedNoexcept(ComputedEST) &&
 7791       assert(Kind != DeclaringSpecialMember);
 8100     assert(!ExprEvalContexts.empty() &&
 8226       assert(S.VTableUses.empty() &&
 8231       assert(S.PendingInstantiations.empty() &&
 8262       assert(S.PendingLocalImplicitInstantiations.empty() &&
 8283       assert(Infos.size() <= index);
11548       assert(S.DelayedOverridingExceptionSpecChecks.empty() &&
11550       assert(S.DelayedEquivalentExceptionSpecChecks.empty() &&
11552       assert(S.DelayedDllExportClasses.empty() &&