Home
last modified time | relevance | path

Searched refs:EnumDecl (Results 1 – 25 of 168) sorted by relevance

1234567

/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DSuspiciousEnumUsageCheck.cpp40 ValueRange(const EnumDecl *EnumDec) { in ValueRange()
53 static int enumLength(const EnumDecl *EnumDec) { in enumLength()
57 static bool hasDisjointValueRange(const EnumDecl *Enum1, in hasDisjointValueRange()
58 const EnumDecl *Enum2) { in hasDisjointValueRange()
74 static bool isMaxValAllBitSetLiteral(const EnumDecl *EnumDec) { in isMaxValAllBitSetLiteral()
89 static int countNonPowOfTwoLiteralNum(const EnumDecl *EnumDec) { in countNonPowOfTwoLiteralNum()
100 static bool isPossiblyBitMask(const EnumDecl *EnumDec) { in isPossiblyBitMask()
154 const Expr *NodeExpr, const EnumDecl *EnumDec) { in checkSuspiciousBitmaskUsage()
174 const auto *EnumDec = Result.Nodes.getNodeAs<EnumDecl>("enumDecl"); in check()
176 Result.Nodes.getNodeAs<EnumDecl>("otherEnumDecl"); in check()
[all …]
DSuspiciousEnumUsageCheck.h30 void checkSuspiciousBitmaskUsage(const Expr*, const EnumDecl*);
/external/llvm-project/clang-tools-extra/clang-include-fixer/find-all-symbols/
DFindAllSymbols.cpp29 if (const auto *ED = dyn_cast<EnumDecl>(Node.getDeclContext())) in AST_MATCHER()
60 } else if (const auto *ED = dyn_cast<EnumDecl>(Context)) { in GetContexts()
61 Contexts.emplace_back(SymbolInfo::ContextType::EnumDecl, in GetContexts()
84 } else if (llvm::isa<EnumDecl>(ND)) { in CreateSymbolInfo()
85 Type = SymbolInfo::SymbolKind::EnumDecl; in CreateSymbolInfo()
DSymbolInfo.cpp43 io.enumCase(value, "EnumDecl", ContextType::EnumDecl); in enumeration()
53 io.enumCase(value, "EnumDecl", SymbolKind::EnumDecl); in enumeration()
91 if (Context.first == ContextType::EnumDecl) in getQualifiedName()
DSymbolInfo.h35 EnumDecl, enumerator
45 EnumDecl, // Enum constants declared in a enum declaration. enumerator
/external/clang/include/clang/AST/
DDecl.h321 if (isa<EnumDecl>(DC)) in isCXXClassMember()
2492 static EnumConstantDecl *Create(ASTContext &C, EnumDecl *DC,
3013 class EnumDecl : public TagDecl {
3043 EnumDecl(ASTContext &C, DeclContext *DC, SourceLocation StartLoc, in EnumDecl() function
3044 SourceLocation IdLoc, IdentifierInfo *Id, EnumDecl *PrevDecl, in EnumDecl()
3057 void setInstantiationOfMemberEnum(ASTContext &C, EnumDecl *ED,
3060 EnumDecl *getCanonicalDecl() override { in getCanonicalDecl()
3061 return cast<EnumDecl>(TagDecl::getCanonicalDecl()); in getCanonicalDecl()
3063 const EnumDecl *getCanonicalDecl() const { in getCanonicalDecl()
3064 return const_cast<EnumDecl*>(this)->getCanonicalDecl(); in getCanonicalDecl()
[all …]
/external/llvm-project/clang/include/clang/AST/
DDecl.h59 class EnumDecl; variable
349 if (isa<EnumDecl>(DC)) in isCXXClassMember()
3004 static EnumConstantDecl *Create(ASTContext &C, EnumDecl *DC,
3531 class EnumDecl : public TagDecl {
3567 EnumDecl(ASTContext &C, DeclContext *DC, SourceLocation StartLoc,
3568 SourceLocation IdLoc, IdentifierInfo *Id, EnumDecl *PrevDecl,
3573 void setInstantiationOfMemberEnum(ASTContext &C, EnumDecl *ED,
3612 EnumDecl *getCanonicalDecl() override { in getCanonicalDecl()
3613 return cast<EnumDecl>(TagDecl::getCanonicalDecl()); in getCanonicalDecl()
3615 const EnumDecl *getCanonicalDecl() const { in getCanonicalDecl()
[all …]
DODRHash.h65 void AddEnumDecl(const EnumDecl *Enum);
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DEnumCastOutOfRangeChecker.cpp70 EnumValueVector getDeclValuesForEnum(const EnumDecl *ED) { in getDeclValuesForEnum()
128 const EnumDecl *ED = T->castAs<EnumType>()->getDecl(); in checkPreStmt()
/external/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
DClangPersistentVariables.cpp90 if (clang::EnumDecl *enum_decl = llvm::dyn_cast<clang::EnumDecl>(decl)) { in RegisterPersistentDecl()
/external/llvm-project/clang/lib/AST/
DDecl.cpp1357 return getLVForDecl(cast<EnumDecl>(D->getDeclContext()), computation); in computeLVForDecl()
1666 } else if (const auto *ED = dyn_cast<EnumDecl>(DC)) { in printNestedNameSpecifier()
4333 EnumDecl::EnumDecl(ASTContext &C, DeclContext *DC, SourceLocation StartLoc, in EnumDecl() function in EnumDecl
4334 SourceLocation IdLoc, IdentifierInfo *Id, EnumDecl *PrevDecl, in EnumDecl()
4348 void EnumDecl::anchor() {} in anchor()
4350 EnumDecl *EnumDecl::Create(ASTContext &C, DeclContext *DC, in Create()
4353 EnumDecl *PrevDecl, bool IsScoped, in Create()
4355 auto *Enum = new (C, DC) EnumDecl(C, DC, StartLoc, IdLoc, Id, PrevDecl, in Create()
4362 EnumDecl *EnumDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized()
4363 EnumDecl *Enum = in CreateDeserialized()
[all …]
/external/clang/lib/AST/
DDecl.cpp1256 return getLVForDecl(cast<EnumDecl>(D->getDeclContext()), computation); in computeLVForDecl()
1469 } else if (const auto *ED = dyn_cast<EnumDecl>(DC)) { in printQualifiedName()
2941 if (const EnumDecl *ED = ET->getDecl()) { in getUnusedResultAttr()
3624 void EnumDecl::anchor() { } in anchor()
3626 EnumDecl *EnumDecl::Create(ASTContext &C, DeclContext *DC, in Create()
3629 EnumDecl *PrevDecl, bool IsScoped, in Create()
3631 auto *Enum = new (C, DC) EnumDecl(C, DC, StartLoc, IdLoc, Id, PrevDecl, in Create()
3638 EnumDecl *EnumDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized()
3639 EnumDecl *Enum = in CreateDeserialized()
3640 new (C, ID) EnumDecl(C, nullptr, SourceLocation(), SourceLocation(), in CreateDeserialized()
[all …]
DASTImporter.cpp117 bool ImportDefinition(EnumDecl *From, EnumDecl *To,
133 bool IsStructuralMatch(EnumDecl *FromEnum, EnumDecl *ToRecord);
145 Decl *VisitEnumDecl(EnumDecl *D);
1231 EnumDecl *D1, EnumDecl *D2) { in IsStructurallyEquivalent()
1232 EnumDecl::enumerator_iterator EC2 = D2->enumerator_begin(), in IsStructurallyEquivalent()
1234 for (EnumDecl::enumerator_iterator EC1 = D1->enumerator_begin(), in IsStructurallyEquivalent()
1460 } else if (EnumDecl *Enum1 = dyn_cast<EnumDecl>(D1)) { in Finish()
1461 if (EnumDecl *Enum2 = dyn_cast<EnumDecl>(D2)) { in Finish()
1868 EnumDecl *ToDecl in VisitEnumType()
1869 = dyn_cast_or_null<EnumDecl>(Importer.Import(T->getDecl())); in VisitEnumType()
[all …]
/external/bcc/src/cc/
Djson_map_decl_visitor.cc45 bool VisitEnumDecl(clang::EnumDecl *D);
102 bool BMapDeclVisitor::VisitEnumDecl(EnumDecl *D) { in VisitEnumDecl()
/external/llvm-project/clang/lib/Index/
DIndexingContext.cpp162 } else if (const auto *ED = dyn_cast<EnumDecl>(D)) { in isTemplateImplicitInstantiation()
225 } else if (const auto *ED = dyn_cast<EnumDecl>(D)) { in adjustTemplateImplicitInstantiation()
239 if (const auto *ED = dyn_cast<EnumDecl>(ECD->getDeclContext())) { in adjustTemplateImplicitInstantiation()
240 if (const EnumDecl *Pattern = ED->getInstantiatedFromMemberEnum()) { in adjustTemplateImplicitInstantiation()
/external/clang/include/clang/Edit/
DRewriters.h20 class EnumDecl; variable
/external/llvm-project/clang/include/clang/Edit/
DRewriters.h18 class EnumDecl; variable
/external/llvm-project/clang-tools-extra/clang-doc/
DSerialize.cpp282 if (const auto *N = dyn_cast<EnumDecl>(T)) { in parseFields()
302 static void parseEnumerators(EnumInfo &I, const EnumDecl *D) { in parseEnumerators()
310 if (const auto *N = dyn_cast<EnumDecl>(T)) { in parseParameters()
377 else if (const auto *N = dyn_cast<EnumDecl>(DC)) in populateParentNamespaces()
422 if (dyn_cast<EnumDecl>(T)) in populateFunctionInfo()
618 emitInfo(const EnumDecl *D, const FullComment *FC, int LineNumber, in emitInfo()
DMapper.h39 bool VisitEnumDecl(const EnumDecl *D);
DSerialize.h46 emitInfo(const EnumDecl *D, const FullComment *FC, int LineNumber,
/external/llvm-project/clang/include/clang/Sema/
DTemplate.h36 class EnumDecl; variable
617 void InstantiateEnumDefinition(EnumDecl *Enum, EnumDecl *Pattern);
/external/clang/test/Index/
Dc-index-getCursor-test.m105 // CHECK: [40:1 - 41:3] EnumDecl=:40:1 (Definition)
107 // CHECK: [41:11 - 42:2] EnumDecl=:40:1 (Definition)
/external/llvm-project/clang/test/Index/
Dc-index-getCursor-test.m105 // CHECK: [40:1 - 41:3] EnumDecl=:40:1 (Definition)
107 // CHECK: [41:11 - 42:2] EnumDecl=:40:1 (Definition)
/external/clang/lib/Sema/
DSemaLambda.cpp497 static EnumDecl *findEnumForBlockReturn(Expr *E) { in findEnumForBlockReturn()
506 return cast<EnumDecl>(D->getDeclContext()); in findEnumForBlockReturn()
531 if (EnumDecl *ED = findEnumForBlockReturn(CO->getTrueExpr())) in findEnumForBlockReturn()
560 static EnumDecl *findEnumForBlockReturn(ReturnStmt *ret) { in findEnumForBlockReturn()
569 static EnumDecl *findCommonEnumForBlockReturns(ArrayRef<ReturnStmt*> returns) { in findCommonEnumForBlockReturns()
573 EnumDecl *ED = findEnumForBlockReturn(*i); in findCommonEnumForBlockReturns()
665 const EnumDecl *ED = findCommonEnumForBlockReturns(CSI.Returns); in deduceClosureReturnType()
/external/clang/include/clang/Sema/
DTemplate.h515 void InstantiateEnumDefinition(EnumDecl *Enum, EnumDecl *Pattern);

1234567