Home
last modified time | relevance | path

Searched refs:to_underlying (Results 1 – 25 of 54) sorted by relevance

123

/freebsd-14.2/contrib/llvm-project/clang/include/clang/Basic/
H A DVisibility.h61 : linkage_(llvm::to_underlying(Linkage::External)), in LinkageInfo()
64 : linkage_(llvm::to_underlying(L)), visibility_(V), explicit_(E) { in LinkageInfo()
89 void setLinkage(Linkage L) { linkage_ = llvm::to_underlying(L); } in setLinkage()
/freebsd-14.2/contrib/llvm-project/lldb/source/Plugins/Platform/NetBSD/
H A DPlatformNetBSD.cpp231 llvm::to_underlying(clang::TagTypeKind::Union), lldb::eLanguageTypeC); in GetSiginfoType()
241 llvm::to_underlying(clang::TagTypeKind::Union), lldb::eLanguageTypeC); in GetSiginfoType()
252 llvm::to_underlying(clang::TagTypeKind::Union), lldb::eLanguageTypeC); in GetSiginfoType()
258 llvm::to_underlying(clang::TagTypeKind::Struct), lldb::eLanguageTypeC); in GetSiginfoType()
275 llvm::to_underlying(clang::TagTypeKind::Union), lldb::eLanguageTypeC); in GetSiginfoType()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/DebugInfo/CodeView/
H A DCodeView.h55 return static_cast<Class>(llvm::to_underlying(a) | \
56 llvm::to_underlying(b)); \
59 return static_cast<Class>(llvm::to_underlying(a) & \
60 llvm::to_underlying(b)); \
63 return static_cast<Class>(~llvm::to_underlying(a)); \
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCall.h410 return static_cast<FnInfoOpts>(llvm::to_underlying(A) |
411 llvm::to_underlying(B));
415 return static_cast<FnInfoOpts>(llvm::to_underlying(A) &
416 llvm::to_underlying(B));
/freebsd-14.2/contrib/llvm-project/lldb/source/Plugins/Platform/FreeBSD/
H A DPlatformFreeBSD.cpp209 llvm::to_underlying(clang::TagTypeKind::Union), lldb::eLanguageTypeC); in GetSiginfoType()
220 llvm::to_underlying(clang::TagTypeKind::Struct), lldb::eLanguageTypeC); in GetSiginfoType()
242 llvm::to_underlying(clang::TagTypeKind::Union), lldb::eLanguageTypeC); in GetSiginfoType()
/freebsd-14.2/contrib/llvm-project/libcxx/modules/std/
H A Dutility.inc43 // [utility.underlying], to_underlying
44 using std::to_underlying;
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ADT/
H A DBitmaskEnum.h130 auto U = llvm::to_underlying(Val);
192 uint64_t{llvm::to_underlying(E::LLVM_BITMASK_LARGEST_ENUMERATOR)});
H A DSTLForwardCompat.h66 [[nodiscard]] constexpr std::underlying_type_t<Enum> to_underlying(Enum E) { in to_underlying() function
/freebsd-14.2/contrib/llvm-project/libcxx/include/__utility/
H A Dto_underlying.h31 _LIBCPP_NODISCARD_EXT _LIBCPP_HIDE_FROM_ABI constexpr underlying_type_t<_Tp> to_underlying(_Tp __va… in to_underlying() function
/freebsd-14.2/contrib/llvm-project/lldb/source/Plugins/RegisterTypeBuilder/
H A DRegisterTypeBuilderClang.cpp63 register_type_name, llvm::to_underlying(clang::TagTypeKind::Struct), in GetRegisterType()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/
H A DSwapByteOrder.h57 return static_cast<T>(llvm::byteswap(llvm::to_underlying(C))); in getSwappedBytes()
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/
H A DODRHash.cpp387 ID.AddInteger(llvm::to_underlying(Method->getImplementationControl())); in VisitObjCMethodDecl()
392 ID.AddInteger(llvm::to_underlying(Cmd->getParameterKind())); in VisitObjCMethodDecl()
397 ID.AddInteger(llvm::to_underlying(Self->getParameterKind())); in VisitObjCMethodDecl()
938 ID.AddInteger(llvm::to_underlying(T->getSizeModifier())); in VisitArrayType()
1188 ID.AddInteger(llvm::to_underlying(T->getKeyword())); in VisitTypeWithKeyword()
1229 ID.AddInteger(llvm::to_underlying(T->getVectorKind())); in VisitVectorType()
H A DType.cpp159 ArrayTypeBits.SizeModifier = llvm::to_underlying(sm); in ArrayType()
221 ID.AddInteger(llvm::to_underlying(SizeMod)); in Profile()
242 ID.AddInteger(llvm::to_underlying(SizeMod)); in Profile()
256 VectorTypeBits.VecKind = llvm::to_underlying(VecKind); in DependentVectorType()
264 ID.AddInteger(llvm::to_underlying(VecKind)); in Profile()
360 VectorTypeBits.VecKind = llvm::to_underlying(vecKind); in VectorType()
3186 ID.AddInteger(llvm::to_underlying(Keyword)); in Profile()
4230 T->TypeBits.CachedLinkage = llvm::to_underlying(Result.getLinkage()); in ensure()
4819 AutoTypeBits.Keyword = llvm::to_underlying(Keyword); in AutoType()
H A DStmtProfile.cpp1333 ID.AddInteger(llvm::to_underlying(S->getIdentKind())); in VisitPredefinedExpr()
1358 ID.AddInteger(llvm::to_underlying(S->getKind())); in VisitCharacterLiteral()
1376 ID.AddInteger(llvm::to_underlying(S->getKind())); in VisitStringLiteral()
2101 ID.AddInteger(llvm::to_underlying(S->getInitializationStyle())); in VisitCXXNewExpr()
/freebsd-14.2/contrib/llvm-project/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/
H A DAppleObjCTypeEncodingParser.cpp84 llvm::to_underlying(clang::TagTypeKind::Struct)); in BuildStruct()
90 llvm::to_underlying(clang::TagTypeKind::Union)); in BuildUnion()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/
H A DComment.h230 CommentBits.Kind = llvm::to_underlying(K);
347 InlineCommandCommentBits.RenderKind = llvm::to_underlying(RK);
728 llvm::to_underlying(ParamCommandPassDirection::In);
748 ParamCommandCommentBits.Direction = llvm::to_underlying(Direction);
H A DDeclBase.h400 CacheValidAndLinkage(llvm::to_underlying(Linkage::Invalid)) { in Decl()
409 CacheValidAndLinkage(llvm::to_underlying(Linkage::Invalid)) { in Decl()
423 CacheValidAndLinkage = llvm::to_underlying(L); in setCachedLinkage()
H A DDeclOpenMP.h254 OMPDeclareReductionDeclBits.InitializerKind = llvm::to_underlying(IK); in setInitializer()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/DebugInfo/PDB/Native/
H A DFormatUtil.h38 return formatv("unknown ({0})", llvm::to_underlying(Value)).str(); in formatUnknownEnum()
/freebsd-14.2/contrib/llvm-project/libcxx/include/
H A Dutility241 // [utility.underlying], to_underlying
243 constexpr underlying_type_t<T> to_underlying( T value ) noexcept; // C++23
268 #include <__utility/to_underlying.h>
/freebsd-14.2/contrib/llvm-project/lldb/source/Plugins/SymbolFile/PDB/
H A DPDBASTParser.cpp52 return llvm::to_underlying(clang::TagTypeKind::Class); in TranslateUdtKind()
54 return llvm::to_underlying(clang::TagTypeKind::Struct); in TranslateUdtKind()
56 return llvm::to_underlying(clang::TagTypeKind::Union); in TranslateUdtKind()
58 return llvm::to_underlying(clang::TagTypeKind::Interface); in TranslateUdtKind()
1392 record_kind == llvm::to_underlying(clang::TagTypeKind::Class)); in AddRecordBases()
/freebsd-14.2/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/
H A DFormatUtil.cpp123 return formatv("UNKNOWN RECORD ({0:X})", llvm::to_underlying(K)).str(); in formatTypeLeafKind()
/freebsd-14.2/contrib/llvm-project/clang/lib/Serialization/
H A DASTWriterDecl.cpp457 TagDeclBits.addBits(llvm::to_underlying(D->getTagKind()), /*BitWidth=*/3); in VisitTagDecl()
543 RecordDeclBits.addBits(llvm::to_underlying(D->getArgPassingRestrictions()), 2); in VisitRecordDecl()
681 FunctionDeclBits.addBits(llvm::to_underlying(D->getLinkageInternal()), 3); in VisitFunctionDecl()
781 Record.push_back(llvm::to_underlying(D->getImplementationControl())); in VisitObjCMethodDecl()
1073 VarDeclBits.addBits(llvm::to_underlying(D->getLinkageInternal()), in VisitVarDecl()
1114 VarDeclBits.addBits(llvm::to_underlying(IPD->getParameterKind()), in VisitVarDecl()
1309 Record.push_back(llvm::to_underlying(D->getLanguage())); in VisitLinkageSpecDecl()
2049 Record.push_back(llvm::to_underlying(D->getInitializerKind())); in VisitOMPDeclareReductionDecl()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DSVals.h96 ID.AddInteger(llvm::to_underlying(getKind())); in Profile()
/freebsd-14.2/contrib/llvm-project/lldb/source/Plugins/SymbolFile/CTF/
H A DSymbolFileCTF.cpp508 llvm::to_underlying(tag_kind), eLanguageTypeC); in CreateRecord()
565 llvm::to_underlying(clang::TagTypeKind::Struct), eLanguageTypeC); in CreateForward()

123