Searched refs:EnumConst (Results 1 – 6 of 6) sorted by relevance
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | SuspiciousEnumUsageCheck.cpp | 64 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() 154 const auto *EnumConst = in checkSuspiciousBitmaskUsage() local 158 if (!EnumConst) { in checkSuspiciousBitmaskUsage() 162 } else if (isNonPowerOf2NorNullLiteral(EnumConst)) { in checkSuspiciousBitmaskUsage() [all …]
|
| /llvm-project-15.0.7/lldb/test/Shell/SymbolFile/PDB/Inputs/ |
| H A D | SimpleTypesTest.cpp | 22 enum EnumConst { LOW, NORMAL = 10, HIGH }; enum 23 EnumConst EnumConstVar;
|
| /llvm-project-15.0.7/lldb/test/Shell/SymbolFile/PDB/ |
| H A D | enums-layout.test | 19 …ype{{.*}} , name = "EnumConst", size = 4, decl = {{[Ss]}}imple{{[Tt]}}ypes{{[Tt]}}est.cpp:22, com…
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaTemplateInstantiateDecl.cpp | 1516 EnumConstantDecl *EnumConst in InstantiateEnumDefinition() local 1522 if (EnumConst) in InstantiateEnumDefinition() 1523 EnumConst->setInvalidDecl(); in InstantiateEnumDefinition() 1527 if (EnumConst) { in InstantiateEnumDefinition() 1528 SemaRef.InstantiateAttrs(TemplateArgs, EC, EnumConst); in InstantiateEnumDefinition() 1530 EnumConst->setAccess(Enum->getAccess()); in InstantiateEnumDefinition() 1531 Enum->addDecl(EnumConst); in InstantiateEnumDefinition() 1532 Enumerators.push_back(EnumConst); in InstantiateEnumDefinition() 1533 LastEnumConst = EnumConst; in InstantiateEnumDefinition() 1539 SemaRef.CurrentInstantiationScope->InstantiatedLocal(EC, EnumConst); in InstantiateEnumDefinition()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | IdentifierNamingCheck.cpp | 1099 if (const auto *EnumConst = dyn_cast<EnumConstantDecl>(D)) { in findStyleKind() local 1100 if (cast<EnumDecl>(EnumConst->getDeclContext())->isScoped() && in findStyleKind()
|
| /llvm-project-15.0.7/clang/tools/libclang/ |
| H A D | CIndex.cpp | 8177 if (const EnumConstantDecl *EnumConst = dyn_cast<EnumConstantDecl>(D)) in getCursorAvailabilityForDecl() local 8179 cast<Decl>(EnumConst->getDeclContext())); in getCursorAvailabilityForDecl() 8255 if (const EnumConstantDecl *EnumConst = dyn_cast<EnumConstantDecl>(D)) in getCursorPlatformAvailabilityForDecl() local 8257 cast<Decl>(EnumConst->getDeclContext()), always_deprecated, in getCursorPlatformAvailabilityForDecl()
|