Home
last modified time | relevance | path

Searched refs:EnumConst (Results 1 – 8 of 8) sorted by relevance

/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DSuspiciousEnumUsageCheck.cpp64 static bool isNonPowerOf2NorNullLiteral(const EnumConstantDecl *EnumConst) { in isNonPowerOf2NorNullLiteral() argument
65 llvm::APSInt Val = EnumConst->getInitVal(); in isNonPowerOf2NorNullLiteral()
68 const Expr *InitExpr = EnumConst->getInitExpr(); in isNonPowerOf2NorNullLiteral()
75 auto EnumConst = std::max_element( in isMaxValAllBitSetLiteral() local
81 if (const Expr *InitExpr = EnumConst->getInitExpr()) { in isMaxValAllBitSetLiteral()
82 return EnumConst->getInitVal().countTrailingOnes() == in isMaxValAllBitSetLiteral()
83 EnumConst->getInitVal().getActiveBits() && in isMaxValAllBitSetLiteral()
156 const auto *EnumConst = in checkSuspiciousBitmaskUsage() local
160 if (!EnumConst) { in checkSuspiciousBitmaskUsage()
164 } else if (isNonPowerOf2NorNullLiteral(EnumConst)) { in checkSuspiciousBitmaskUsage()
[all …]
/external/llvm-project/lldb/test/Shell/SymbolFile/PDB/Inputs/
DSimpleTypesTest.cpp22 enum EnumConst { LOW, NORMAL = 10, HIGH }; enum
23 EnumConst EnumConstVar;
/external/llvm-project/lldb/test/Shell/SymbolFile/PDB/
Denums-layout.test19 …NST: Type{{.*}} , name = "EnumConst", size = 4, decl = simpletypestest.cpp:22, compiler_type…
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DIdentifierNamingCheck.cpp445 if (const auto *EnumConst = dyn_cast<EnumConstantDecl>(D)) { in findStyleKind() local
446 if (cast<EnumDecl>(EnumConst->getDeclContext())->isScoped() && in findStyleKind()
/external/clang/lib/Sema/
DSemaTemplateInstantiateDecl.cpp993 EnumConstantDecl *EnumConst in InstantiateEnumDefinition() local
999 if (EnumConst) in InstantiateEnumDefinition()
1000 EnumConst->setInvalidDecl(); in InstantiateEnumDefinition()
1004 if (EnumConst) { in InstantiateEnumDefinition()
1005 SemaRef.InstantiateAttrs(TemplateArgs, EC, EnumConst); in InstantiateEnumDefinition()
1007 EnumConst->setAccess(Enum->getAccess()); in InstantiateEnumDefinition()
1008 Enum->addDecl(EnumConst); in InstantiateEnumDefinition()
1009 Enumerators.push_back(EnumConst); in InstantiateEnumDefinition()
1010 LastEnumConst = EnumConst; in InstantiateEnumDefinition()
1016 SemaRef.CurrentInstantiationScope->InstantiatedLocal(EC, EnumConst); in InstantiateEnumDefinition()
/external/llvm-project/clang/lib/Sema/
DSemaTemplateInstantiateDecl.cpp1375 EnumConstantDecl *EnumConst in InstantiateEnumDefinition() local
1381 if (EnumConst) in InstantiateEnumDefinition()
1382 EnumConst->setInvalidDecl(); in InstantiateEnumDefinition()
1386 if (EnumConst) { in InstantiateEnumDefinition()
1387 SemaRef.InstantiateAttrs(TemplateArgs, EC, EnumConst); in InstantiateEnumDefinition()
1389 EnumConst->setAccess(Enum->getAccess()); in InstantiateEnumDefinition()
1390 Enum->addDecl(EnumConst); in InstantiateEnumDefinition()
1391 Enumerators.push_back(EnumConst); in InstantiateEnumDefinition()
1392 LastEnumConst = EnumConst; in InstantiateEnumDefinition()
1398 SemaRef.CurrentInstantiationScope->InstantiatedLocal(EC, EnumConst); in InstantiateEnumDefinition()
/external/clang/tools/libclang/
DCIndex.cpp6967 if (const EnumConstantDecl *EnumConst = dyn_cast<EnumConstantDecl>(D)) in getCursorAvailabilityForDecl() local
6969 cast<Decl>(EnumConst->getDeclContext())); in getCursorAvailabilityForDecl()
7058 if (const EnumConstantDecl *EnumConst = dyn_cast<EnumConstantDecl>(D)) in getCursorPlatformAvailabilityForDecl() local
7060 cast<Decl>(EnumConst->getDeclContext()), in getCursorPlatformAvailabilityForDecl()
/external/llvm-project/clang/tools/libclang/
DCIndex.cpp7896 if (const EnumConstantDecl *EnumConst = dyn_cast<EnumConstantDecl>(D)) in getCursorAvailabilityForDecl() local
7898 cast<Decl>(EnumConst->getDeclContext())); in getCursorAvailabilityForDecl()
7974 if (const EnumConstantDecl *EnumConst = dyn_cast<EnumConstantDecl>(D)) in getCursorPlatformAvailabilityForDecl() local
7976 cast<Decl>(EnumConst->getDeclContext()), always_deprecated, in getCursorPlatformAvailabilityForDecl()