|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
Declarations
gen/tools/clang/include/clang/AST/DeclNodes.inc 99 LABEL(Label, NamedDecl)
tools/clang/include/clang/AST/Stmt.h 50 class LabelDecl;
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h 39 class LabelDecl;
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h 40 class LabelDecl;
tools/clang/lib/CodeGen/CodeGenFunction.h 60 class LabelDecl;
References
gen/tools/clang/include/clang/Sema/AttrParsedAttrImpl.inc 2982 if (!D || (!isa<VarDecl>(D) && !isa<ObjCIvarDecl>(D) && !isa<TypeDecl>(D) && !isa<EnumDecl>(D) && !isa<EnumConstantDecl>(D) && !isa<LabelDecl>(D) && !isa<FieldDecl>(D) && !isa<ObjCMethodDecl>(D) && !isFunctionLike(D))) {
include/llvm/ADT/DenseMapInfo.h 39 static inline T* getEmptyKey() {
41 Val <<= PointerLikeTypeTraits<T*>::NumLowBitsAvailable;
45 static inline T* getTombstoneKey() {
47 Val <<= PointerLikeTypeTraits<T*>::NumLowBitsAvailable;
51 static unsigned getHashValue(const T *PtrVal) {
56 static bool isEqual(const T *LHS, const T *RHS) { return LHS == RHS; }
56 static bool isEqual(const T *LHS, const T *RHS) { return LHS == RHS; }
include/llvm/ADT/STLExtras.h 75 typename std::add_pointer<typename std::add_const<T>::type>::type;
include/llvm/Support/Casting.h 57 static inline bool doit(const From &Val) {
58 return To::classof(&Val);
104 static inline bool doit(const From *Val) {
106 return isa_impl<To, From>::doit(*Val);
106 return isa_impl<To, From>::doit(*Val);
122 return isa_impl_wrap<To, SimpleFrom,
132 return isa_impl_cl<To,FromTy>::doit(Val);
142 return isa_impl_wrap<X, const Y,
172 using ret_type = To *; // Pointer arg case, return Ty*
176 using ret_type = const To *; // Constant pointer arg case, return const Ty*
198 using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
204 using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
210 To, From, typename simplify_type<From>::SimpleType>::ret_type;
227 static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
228 typename cast_retty<To, FromTy>::ret_type Res2
256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
265 return cast_convert_val<X, Y*,
265 return cast_convert_val<X, Y*,
266 typename simplify_type<Y*>::SimpleType>::doit(Val);
305 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type
309 return cast<X>(Val);
337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) {
342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
343 return isa<X>(Val) ? cast<X>(Val) : nullptr;
343 return isa<X>(Val) ? cast<X>(Val) : nullptr;
include/llvm/Support/PointerLikeTypeTraits.h 56 static inline void *getAsVoidPointer(T *P) { return P; }
57 static inline T *getFromVoidPointer(void *P) { return static_cast<T *>(P); }
59 enum { NumLowBitsAvailable = detail::ConstantLog2<alignof(T)>::value };
91 typedef PointerLikeTypeTraits<T *> NonConst;
93 static inline const void *getAsVoidPointer(const T *P) {
96 static inline const T *getFromVoidPointer(const void *P) {
tools/clang/include/clang/AST/ASTTypeTraits.h 65 return ASTNodeKind(KindToKindId<T>::Id);
65 return ASTNodeKind(KindToKindId<T>::Id);
65 return ASTNodeKind(KindToKindId<T>::Id);
tools/clang/include/clang/AST/Decl.h 494 static LabelDecl *Create(ASTContext &C, DeclContext *DC,
496 static LabelDecl *Create(ASTContext &C, DeclContext *DC,
499 static LabelDecl *CreateDeserialized(ASTContext &C, unsigned ID);
tools/clang/include/clang/AST/DeclBase.h 2536 static ::clang::DeclContext *doit(const FromTy *Val) {
2537 return FromTy::castToDeclContext(Val);
tools/clang/include/clang/AST/Expr.h 3884 LabelDecl *Label;
3886 AddrLabelExpr(SourceLocation AALoc, SourceLocation LLoc, LabelDecl *L,
3904 LabelDecl *getLabel() const { return Label; }
3905 void setLabel(LabelDecl *L) { Label = L; }
tools/clang/include/clang/AST/Stmt.h 1721 LabelDecl *TheDecl;
1726 LabelStmt(SourceLocation IL, LabelDecl *D, Stmt *substmt)
1737 LabelDecl *getDecl() const { return TheDecl; }
1738 void setDecl(LabelDecl *D) { TheDecl = D; }
2466 LabelDecl *Label;
2470 GotoStmt(LabelDecl *label, SourceLocation GL, SourceLocation LL)
2478 LabelDecl *getLabel() const { return Label; }
2479 void setLabel(LabelDecl *D) { Label = D; }
2532 LabelDecl *getConstantTarget();
2533 const LabelDecl *getConstantTarget() const {
tools/clang/include/clang/AST/TextNodeDumper.h 297 void VisitLabelDecl(const LabelDecl *D);
tools/clang/include/clang/ASTMatchers/ASTMatchers.h 345 extern const internal::VariadicDynCastAllOfMatcher<Decl, LabelDecl> labelDecl;
tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h 436 return canConvertTo(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
445 template <typename T> Matcher<T> convertTo() const {
447 return unconditionalConvertTo<T>();
499 explicit Matcher(MatcherInterface<T> *Implementation)
507 typename std::enable_if<std::is_base_of<From, T>::value &&
508 !std::is_same<From, T>::value>::type * = nullptr)
520 std::is_same<T, QualType>::value &&
529 static_assert(std::is_base_of<To, T>::value, "Invalid dynCast call.");
534 bool matches(const T &Node,
581 return Other.dynCastTo(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
1243 operator Matcher<T>() const {
1245 ast_type_traits::ASTNodeKind::getFromNodeKind<T>())
1246 .template unconditionalConvertTo<T>();
1255 class BindableMatcher : public Matcher<T> {
1257 explicit BindableMatcher(const Matcher<T> &M) : Matcher<T>(M) {}
1258 explicit BindableMatcher(MatcherInterface<T> *Implementation)
1265 Matcher<T> bind(StringRef ID) const {
1370 inline Matcher<T> DynTypedMatcher::unconditionalConvertTo() const {
1376 BindableMatcher<T> makeAllOfComposite(
1377 ArrayRef<const Matcher<T> *> InnerMatchers) {
1388 using PI = llvm::pointee_iterator<const Matcher<T> *const *>;
1395 ast_type_traits::ASTNodeKind::getFromNodeKind<T>(),
1397 .template unconditionalConvertTo<T>());
1408 ArrayRef<const Matcher<InnerT> *> InnerMatchers) {
1557 : public VariadicFunction<BindableMatcher<SourceT>, Matcher<TargetT>,
1558 makeDynCastAllOfComposite<SourceT, TargetT>> {
tools/clang/include/clang/ASTMatchers/Dynamic/VariantValue.h 199 ast_matchers::internal::Matcher<T> getTypedMatcher() const {
202 ->template convertTo<T>();
227 : MatcherOps(ast_type_traits::ASTNodeKind::getFromNodeKind<T>()) {}
228 typedef ast_matchers::internal::Matcher<T> MatcherT;
232 return DynTypedMatcher(Matcher.convertTo<T>());
tools/clang/include/clang/Sema/Sema.h 3560 LabelDecl *LookupOrCreateLabel(IdentifierInfo *II, SourceLocation IdentLoc,
4094 StmtResult ActOnLabelStmt(SourceLocation IdentLoc, LabelDecl *TheDecl,
4166 LabelDecl *TheDecl);
4233 LabelDecl *GetOrCreateMSAsmLabel(StringRef ExternalLabelName,
4861 LabelDecl *TheDecl);
tools/clang/include/clang/Serialization/ASTReader.h 1887 T *ReadDeclAs(ModuleFile &F, const RecordData &R, unsigned &I) {
1888 return cast_or_null<T>(GetDecl(ReadDeclID(F, R, I)));
2541 T *readDeclAs() {
2542 return Reader->ReadDeclAs<T>(*F, Record, Idx);
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h 500 const LabelDecl *getLabel() const {
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h 576 explicit GotoLabel(const LabelDecl *Label) : Loc(GotoLabelKind, Label) {
580 const LabelDecl *getLabel() const {
tools/clang/lib/AST/ASTImporter.cpp 162 Expected<T *> import(T *From) {
162 Expected<T *> import(T *From) {
166 return cast_or_null<T>(*ToOrErr);
170 Expected<T *> import(const T *From) {
170 Expected<T *> import(const T *From) {
217 -> decltype(ToDeclT::Create(std::forward<Args>(args)...)) {
218 return ToDeclT::Create(std::forward<Args>(args)...);
229 LLVM_NODISCARD bool GetImportedOrCreateDecl(ToDeclT *&ToD, FromDeclT *FromD,
229 LLVM_NODISCARD bool GetImportedOrCreateDecl(ToDeclT *&ToD, FromDeclT *FromD,
234 CallOverloadedCreateFun<ToDeclT> OC;
256 GetImportedOrCreateSpecialDecl(ToDeclT *&ToD, CreateFunT CreateFun,
257 FromDeclT *FromD, Args &&... args) {
262 ToD = cast_or_null<ToDeclT>(Importer.GetAlreadyImportedOrNull(FromD));
460 ExpectedDecl VisitLabelDecl(LabelDecl *D);
2446 ExpectedDecl ASTNodeImporter::VisitLabelDecl(LabelDecl *D) {
2459 LabelDecl *ToLabel;
5806 LabelDecl *ToLabelDecl;
5944 LabelDecl *ToLabel;
6454 LabelDecl *ToLabel;
tools/clang/lib/AST/Decl.cpp 4570 LabelDecl *LabelDecl::Create(ASTContext &C, DeclContext *DC,
4572 return new (C, DC) LabelDecl(DC, IdentL, II, nullptr, IdentL);
4575 LabelDecl *LabelDecl::Create(ASTContext &C, DeclContext *DC,
4579 return new (C, DC) LabelDecl(DC, IdentL, II, nullptr, GnuLabelL);
4582 LabelDecl *LabelDecl::CreateDeserialized(ASTContext &C, unsigned ID) {
4583 return new (C, ID) LabelDecl(nullptr, SourceLocation(), nullptr, nullptr,
tools/clang/lib/AST/DeclPrinter.cpp 72 void VisitLabelDecl(LabelDecl *D);
827 void DeclPrinter::VisitLabelDecl(LabelDecl *D) {
tools/clang/lib/AST/Stmt.cpp 1065 LabelDecl *IndirectGotoStmt::getConstantTarget() {
tools/clang/lib/AST/TextNodeDumper.cpp 1225 void TextNodeDumper::VisitLabelDecl(const LabelDecl *D) { dumpName(D); }
tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp 564 const internal::VariadicDynCastAllOfMatcher<Decl, LabelDecl> labelDecl;
tools/clang/lib/ASTMatchers/Dynamic/Marshallers.h 75 return Value.isMatcher() && Value.getMatcher().hasTypedMatcher<T>();
78 static ast_matchers::internal::Matcher<T> get(const VariantValue &Value) {
79 return Value.getMatcher().getTypedMatcher<T>();
83 return ArgKind(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
466 ast_matchers::internal::VariadicDynCastAllOfMatcher<BaseT, DerivedT> Func,
469 DerivedKind(ast_type_traits::ASTNodeKind::getFromNodeKind<DerivedT>()) {
778 ast_matchers::internal::VariadicDynCastAllOfMatcher<BaseT, DerivedT>
tools/clang/lib/Analysis/CFG.cpp 495 using LabelMapTy = llvm::DenseMap<LabelDecl *, JumpTarget>;
504 using LabelSetTy = llvm::SmallSetVector<LabelDecl *, 8>;
2779 if (isa<LabelDecl>(*DS->decl_begin()))
tools/clang/lib/CodeGen/CGDebugInfo.cpp 4052 void CGDebugInfo::EmitLabel(const LabelDecl *D, CGBuilderTy &Builder) {
tools/clang/lib/CodeGen/CGDebugInfo.h 443 void EmitLabel(const LabelDecl *D, CGBuilderTy &Builder);
tools/clang/lib/CodeGen/CGStmt.cpp 520 CodeGenFunction::getJumpDestForLabel(const LabelDecl *D) {
531 void CodeGenFunction::EmitLabel(const LabelDecl *D) {
575 for (SmallVectorImpl<const LabelDecl*>::const_iterator
612 if (const LabelDecl *Target = S.getConstantTarget()) {
tools/clang/lib/CodeGen/CodeGenFunction.cpp 1691 llvm::BlockAddress *CodeGenFunction::GetAddrOfLabel(const LabelDecl *L) {
tools/clang/lib/CodeGen/CodeGenFunction.h 769 SmallVector<const LabelDecl*, 4> Labels;
784 void addLabel(const LabelDecl *label) {
1243 llvm::DenseMap<const LabelDecl*, JumpDest> LabelMap;
2069 JumpDest getJumpDestForLabel(const LabelDecl *S);
2383 llvm::BlockAddress *GetAddrOfLabel(const LabelDecl *L);
2868 void EmitLabel(const LabelDecl *D); // helper for EmitLabelStmt.
tools/clang/lib/Parse/ParseExpr.cpp 1222 LabelDecl *LD = Actions.LookupOrCreateLabel(Tok.getIdentifierInfo(),
tools/clang/lib/Parse/ParseStmt.cpp 652 LabelDecl *LD = Actions.LookupOrCreateLabel(IdentTok.getIdentifierInfo(),
1958 LabelDecl *LD = Actions.LookupOrCreateLabel(Tok.getIdentifierInfo(),
tools/clang/lib/Parse/ParseStmtAsm.cpp 132 LabelDecl *Label =
839 LabelDecl *LD = Actions.LookupOrCreateLabel(Tok.getIdentifierInfo(),
tools/clang/lib/Sema/JumpDiagnostics.cpp 70 SmallVector<LabelDecl*, 4> IndirectJumpTargets;
71 SmallVector<LabelDecl*, 4> AsmJumpTargets;
83 void DiagnoseIndirectOrAsmJump(Stmt *IG, unsigned IGScope, LabelDecl *Target,
621 LabelDecl *Target = IGS->getConstantTarget();
669 SmallVector<LabelDecl *, 4> JumpTargets =
706 llvm::DenseMap<unsigned, LabelDecl*> TargetScopes;
707 for (SmallVectorImpl<LabelDecl *>::iterator I = JumpTargets.begin(),
710 LabelDecl *TheLabel = *I;
714 LabelDecl *&Target = TargetScopes[LabelScope];
727 for (llvm::DenseMap<unsigned,LabelDecl*>::iterator
730 LabelDecl *TargetLabel = TI->second;
807 LabelDecl *Target, bool &Diagnosed) {
829 LabelDecl *Target,
tools/clang/lib/Sema/SemaDecl.cpp 1463 if (isa<LabelDecl>(D) && !cast<LabelDecl>(D)->isGnuLocal()) {
1463 if (isa<LabelDecl>(D) && !cast<LabelDecl>(D)->isGnuLocal()) {
1743 if (isa<LabelDecl>(D))
1817 if (isa<LabelDecl>(D)) {
1859 else if (isa<LabelDecl>(D))
1867 static void CheckPoppedLabel(LabelDecl *L, Sema &S) {
1904 if (LabelDecl *LD = dyn_cast<LabelDecl>(D))
1904 if (LabelDecl *LD = dyn_cast<LabelDecl>(D))
tools/clang/lib/Sema/SemaLookup.cpp 4058 LabelDecl *Sema::LookupOrCreateLabel(IdentifierInfo *II, SourceLocation Loc,
4065 Res = LabelDecl::Create(Context, CurContext, Loc, II, GnuLabelLoc);
4068 return cast<LabelDecl>(Res);
4079 Res = LabelDecl::Create(Context, CurContext, Loc, II);
4084 return cast<LabelDecl>(Res);
tools/clang/lib/Sema/SemaStmt.cpp 517 Sema::ActOnLabelStmt(SourceLocation IdentLoc, LabelDecl *TheDecl,
2878 LabelDecl *TheDecl) {
tools/clang/lib/Sema/SemaStmtAsm.cpp 893 LabelDecl *Sema::GetOrCreateMSAsmLabel(StringRef ExternalLabelName,
896 LabelDecl* Label = LookupOrCreateLabel(PP.getIdentifierInfo(ExternalLabelName),
tools/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp 681 TemplateDeclInstantiator::VisitLabelDecl(LabelDecl *D) {
682 LabelDecl *Inst = LabelDecl::Create(SemaRef.Context, Owner, D->getLocation(),
682 LabelDecl *Inst = LabelDecl::Create(SemaRef.Context, Owner, D->getLocation(),
5392 return cast<LabelDecl>(Inst);
tools/clang/lib/Sema/TreeTransform.h 1266 StmtResult RebuildLabelStmt(SourceLocation IdentLoc, LabelDecl *L,
1347 LabelDecl *Label) {
6769 cast<LabelDecl>(LD), SourceLocation(),
7002 cast<LabelDecl>(LD));
10170 cast<LabelDecl>(LD));
tools/clang/lib/Serialization/ASTReaderDecl.cpp 327 void VisitLabelDecl(LabelDecl *LD);
1542 void ASTDeclReader::VisitLabelDecl(LabelDecl *D) {
3673 D = LabelDecl::CreateDeserialized(Context, ID);
tools/clang/lib/Serialization/ASTReaderStmt.cpp 95 T *ReadDeclAs() {
96 return Record.readDeclAs<T>();
196 auto *LD = ReadDeclAs<LabelDecl>();
196 auto *LD = ReadDeclAs<LabelDecl>();
307 S->setLabel(ReadDeclAs<LabelDecl>());
1061 E->setLabel(ReadDeclAs<LabelDecl>());
tools/clang/lib/Serialization/ASTWriterDecl.cpp 62 void VisitLabelDecl(LabelDecl *LD);
1188 void ASTDeclWriter::VisitLabelDecl(LabelDecl *D) {
tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp 2225 const LabelDecl *L = LV->getLabel();
tools/clang/tools/libclang/CIndex.cpp 1892 LabelRefVisit(LabelDecl *LD, SourceLocation labelLoc, CXCursor parent)
1899 const LabelDecl *get() const {
3038 const LabelDecl *LS = cast<LabelRefVisit>(&LI)->get();
6161 if (LabelDecl *label = Goto->getLabel())
usr/include/c++/7.4.0/type_traits 215 : public __is_void_helper<typename remove_cv<_Tp>::type>::type
581 : public __or_<is_lvalue_reference<_Tp>,
582 is_rvalue_reference<_Tp>>::type
601 : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
601 : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
602 is_void<_Tp>>>::type
638 : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
638 : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
1554 { typedef _Tp type; };
1558 { typedef _Tp type; };
1563 { typedef _Tp type; };
1574 remove_const<typename remove_volatile<_Tp>::type>::type type;
1580 { typedef _Tp const type; };
1629 { typedef _Tp type; };
1983 { typedef _Up type; };
1999 { typedef typename remove_reference<_Tp>::type* type; };
2003 : public __add_pointer_helper<_Tp>