Home
last modified time | relevance | path

Searched refs:NumAttrs (Results 1 – 6 of 6) sorted by relevance

/external/llvm/lib/IR/
DAttributeImpl.h141 unsigned NumAttrs; ///< Number of attributes in this node. variable
143 AttributeSetNode(ArrayRef<Attribute> Attrs) : NumAttrs(Attrs.size()) { in AttributeSetNode()
157 bool hasAttributes() const { return NumAttrs != 0; } in hasAttributes()
168 iterator end() const { return begin() + NumAttrs; } in end()
189 unsigned NumAttrs; ///< Number of entries in this set. variable
202 : Context(C), NumAttrs(Attrs.size()) { in AttributeSetImpl()
221 unsigned getNumAttributes() const { return NumAttrs; } in getNumAttributes()
DAttributes.cpp693 uint64_t NumAttrs = pImpl->getNumAttributes(); in addAttributes() local
696 for (unsigned I = 0, E = NumAttrs; I != E; ++I) { in addAttributes()
720 for (unsigned I = LastIndex, E = NumAttrs; I < E; ++I) in addAttributes()
746 uint64_t NumAttrs = pImpl->getNumAttributes(); in removeAttributes() local
749 for (unsigned I = 0, E = NumAttrs; I != E; ++I) { in removeAttributes()
771 for (unsigned I = LastIndex, E = NumAttrs; I < E; ++I) in removeAttributes()
/external/clang/include/clang/AST/
DStmt.h802 unsigned NumAttrs; variable
809 NumAttrs(Attrs.size()) { in AttributedStmt()
813 explicit AttributedStmt(EmptyShell Empty, unsigned NumAttrs) in AttributedStmt() argument
814 : Stmt(AttributedStmtClass, Empty), NumAttrs(NumAttrs) { in AttributedStmt()
815 memset(Attrs, 0, NumAttrs * sizeof(Attr*)); in AttributedStmt()
822 static AttributedStmt *CreateEmpty(ASTContext &C, unsigned NumAttrs);
826 return ArrayRef<const Attr*>(Attrs, NumAttrs); in getAttrs()
/external/clang/lib/AST/
DStmt.cpp294 AttributedStmt *AttributedStmt::CreateEmpty(ASTContext &C, unsigned NumAttrs) { in CreateEmpty() argument
295 assert(NumAttrs > 0 && "NumAttrs should be greater than zero"); in CreateEmpty()
297 sizeof(Attr*) * (NumAttrs - 1), in CreateEmpty()
299 return new (Mem) AttributedStmt(EmptyShell(), NumAttrs); in CreateEmpty()
/external/clang/lib/Serialization/
DASTReaderStmt.cpp173 uint64_t NumAttrs = Record[Idx++]; in VisitAttributedStmt() local
176 (void)NumAttrs; in VisitAttributedStmt()
177 assert(NumAttrs == S->NumAttrs); in VisitAttributedStmt()
178 assert(NumAttrs == Attrs.size()); in VisitAttributedStmt()
/external/clang/tools/c-index-test/
Dc-index-test.c340 unsigned NumAttrs; in DumpCXCommentInternal() local
345 NumAttrs = clang_HTMLStartTag_getNumAttrs(Comment); in DumpCXCommentInternal()
346 if (NumAttrs != 0) { in DumpCXCommentInternal()
348 for (i = 0; i != NumAttrs; ++i) { in DumpCXCommentInternal()