|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
gen/tools/clang/include/clang/AST/AttrImpl.inc 3222 DiagnoseIfAttr *DiagnoseIfAttr::clone(ASTContext &C) const {
3223 auto *A = new (C) DiagnoseIfAttr(C, *this, cond, getMessage(), diagnosticType, argDependent, parent);
3223 auto *A = new (C) DiagnoseIfAttr(C, *this, cond, getMessage(), diagnosticType, argDependent, parent);
3236 OS << " __attribute__((diagnose_if(" << getCond() << ", \"" << getMessage() << "\", \"" << DiagnoseIfAttr::ConvertDiagnosticTypeToStr(getDiagnosticType()) << "\")))";
11650 return cast<DiagnoseIfAttr>(this)->getSpelling();
12230 return cast<DiagnoseIfAttr>(this)->clone(C);
12810 return cast<DiagnoseIfAttr>(this)->printPretty(OS, Policy);
gen/tools/clang/include/clang/AST/AttrNodeTraverse.inc 68 void VisitDiagnoseIfAttr(const DiagnoseIfAttr *A) {
69 const auto *SA = cast<DiagnoseIfAttr>(A); (void)SA;
69 const auto *SA = cast<DiagnoseIfAttr>(A); (void)SA;
gen/tools/clang/include/clang/AST/AttrTextNodeDump.inc 199 void VisitDiagnoseIfAttr(const DiagnoseIfAttr *A) {
200 const auto *SA = cast<DiagnoseIfAttr>(A); (void)SA;
200 const auto *SA = cast<DiagnoseIfAttr>(A); (void)SA;
203 case DiagnoseIfAttr::DT_Error:
206 case DiagnoseIfAttr::DT_Warning:
gen/tools/clang/include/clang/AST/AttrVisitor.inc 319 bool TraverseDiagnoseIfAttr(DiagnoseIfAttr *A);
320 bool VisitDiagnoseIfAttr(DiagnoseIfAttr *A) {
1929 bool VISITORCLASS<Derived>::TraverseDiagnoseIfAttr(DiagnoseIfAttr *A) {
4110 return getDerived().TraverseDiagnoseIfAttr(cast<DiagnoseIfAttr>(A));
gen/tools/clang/include/clang/AST/Attrs.inc 4275 static DiagnoseIfAttr *CreateImplicit(ASTContext &Ctx, Expr * Cond, llvm::StringRef Message, DiagnosticType DiagnosticType, bool ArgDependent, NamedDecl * Parent, const AttributeCommonInfo &CommonInfo = {SourceRange{}}) {
4276 auto *A = new (Ctx) DiagnoseIfAttr(Ctx, CommonInfo, Cond, Message, DiagnosticType, ArgDependent, Parent);
4276 auto *A = new (Ctx) DiagnoseIfAttr(Ctx, CommonInfo, Cond, Message, DiagnosticType, ArgDependent, Parent);
4283 static DiagnoseIfAttr *Create(ASTContext &Ctx, Expr * Cond, llvm::StringRef Message, DiagnosticType DiagnosticType, bool ArgDependent, NamedDecl * Parent, const AttributeCommonInfo &CommonInfo = {SourceRange{}}) {
4284 auto *A = new (Ctx) DiagnoseIfAttr(Ctx, CommonInfo, Cond, Message, DiagnosticType, ArgDependent, Parent);
4284 auto *A = new (Ctx) DiagnoseIfAttr(Ctx, CommonInfo, Cond, Message, DiagnosticType, ArgDependent, Parent);
4290 static DiagnoseIfAttr *CreateImplicit(ASTContext &Ctx, Expr * Cond, llvm::StringRef Message, DiagnosticType DiagnosticType, bool ArgDependent, NamedDecl * Parent, SourceRange Range, AttributeCommonInfo::Syntax Syntax) {
4294 static DiagnoseIfAttr *Create(ASTContext &Ctx, Expr * Cond, llvm::StringRef Message, DiagnosticType DiagnosticType, bool ArgDependent, NamedDecl * Parent, SourceRange Range, AttributeCommonInfo::Syntax Syntax) {
4298 static DiagnoseIfAttr *CreateImplicit(ASTContext &Ctx, Expr * Cond, llvm::StringRef Message, DiagnosticType DiagnosticType, const AttributeCommonInfo &CommonInfo = {SourceRange{}}) {
4299 auto *A = new (Ctx) DiagnoseIfAttr(Ctx, CommonInfo, Cond, Message, DiagnosticType);
4299 auto *A = new (Ctx) DiagnoseIfAttr(Ctx, CommonInfo, Cond, Message, DiagnosticType);
4306 static DiagnoseIfAttr *Create(ASTContext &Ctx, Expr * Cond, llvm::StringRef Message, DiagnosticType DiagnosticType, const AttributeCommonInfo &CommonInfo = {SourceRange{}}) {
4307 auto *A = new (Ctx) DiagnoseIfAttr(Ctx, CommonInfo, Cond, Message, DiagnosticType);
4307 auto *A = new (Ctx) DiagnoseIfAttr(Ctx, CommonInfo, Cond, Message, DiagnosticType);
4313 static DiagnoseIfAttr *CreateImplicit(ASTContext &Ctx, Expr * Cond, llvm::StringRef Message, DiagnosticType DiagnosticType, SourceRange Range, AttributeCommonInfo::Syntax Syntax) {
4317 static DiagnoseIfAttr *Create(ASTContext &Ctx, Expr * Cond, llvm::StringRef Message, DiagnosticType DiagnosticType, SourceRange Range, AttributeCommonInfo::Syntax Syntax) {
4355 DiagnoseIfAttr *clone(ASTContext &C) const;
4382 .Case("error", DiagnoseIfAttr::DT_Error)
4383 .Case("warning", DiagnoseIfAttr::DT_Warning)
4394 case DiagnoseIfAttr::DT_Error: return "error";
4395 case DiagnoseIfAttr::DT_Warning: return "warning";
gen/tools/clang/include/clang/Sema/AttrTemplateInstantiate.inc 390 const auto *A = cast<DiagnoseIfAttr>(At);
390 const auto *A = cast<DiagnoseIfAttr>(At);
397 return new (C) DiagnoseIfAttr(C, *A, tempInstCond, A->getMessage(), A->getDiagnosticType(), A->getArgDependent(), A->getParent());
gen/tools/clang/include/clang/Serialization/AttrPCHRead.inc 731 DiagnoseIfAttr::DiagnosticType diagnosticType(static_cast<DiagnoseIfAttr::DiagnosticType>(Record.readInt()));
734 New = new (Context) DiagnoseIfAttr(Context, Info, cond, message, diagnosticType, argDependent, parent);
gen/tools/clang/include/clang/Serialization/AttrPCHWrite.inc 550 const auto *SA = cast<DiagnoseIfAttr>(A);
550 const auto *SA = cast<DiagnoseIfAttr>(A);
include/llvm/ADT/STLExtras.h 75 typename std::add_pointer<typename std::add_const<T>::type>::type;
include/llvm/Support/Casting.h 58 return To::classof(&Val);
66 static inline bool doit(const From &) { return true; }
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) {
265 return cast_convert_val<X, Y*,
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) {
343 return isa<X>(Val) ? cast<X>(Val) : nullptr;
343 return isa<X>(Val) ? cast<X>(Val) : nullptr;
tools/clang/include/clang/AST/AttrIterator.h 47 while (!isa<SpecificAttr>(*Current))
52 while (Current != I && !isa<SpecificAttr>(*Current))
57 using value_type = SpecificAttr *;
58 using reference = SpecificAttr *;
59 using pointer = SpecificAttr *;
68 return cast<SpecificAttr>(*Current);
tools/clang/include/clang/AST/DeclBase.h 524 llvm::iterator_range<specific_attr_iterator<T>> specific_attrs() const {
525 return llvm::make_range(specific_attr_begin<T>(), specific_attr_end<T>());
525 return llvm::make_range(specific_attr_begin<T>(), specific_attr_end<T>());
529 specific_attr_iterator<T> specific_attr_begin() const {
534 specific_attr_iterator<T> specific_attr_end() const {
tools/clang/lib/CodeGen/Address.h 108 template <class U> inline U cast(CodeGen::Address addr) {
tools/clang/lib/Sema/SemaDeclAttr.cpp 1058 DiagnoseIfAttr::DiagnosticType DiagType;
1059 if (!DiagnoseIfAttr::ConvertStrToDiagnosticType(DiagTypeStr, DiagType)) {
1068 D->addAttr(::new (S.Context) DiagnoseIfAttr(
tools/clang/lib/Sema/SemaOverload.cpp 6495 SmallVector<const DiagnoseIfAttr *, 8> Attrs;
6496 for (const auto *DIA : ND->specific_attrs<DiagnoseIfAttr>()) {
6496 for (const auto *DIA : ND->specific_attrs<DiagnoseIfAttr>()) {
6514 const DiagnoseIfAttr *DIA = *ErrAttr;
6521 for (const auto *DIA : llvm::make_range(WarningBegin, Attrs.end()))
tools/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp 225 const DiagnoseIfAttr *DIA, const Decl *Tmpl, FunctionDecl *New) {
230 New->addAttr(new (S.getASTContext()) DiagnoseIfAttr(
546 if (const auto *DiagnoseIf = dyn_cast<DiagnoseIfAttr>(TmplAttr)) {
546 if (const auto *DiagnoseIf = dyn_cast<DiagnoseIfAttr>(TmplAttr)) {
usr/include/c++/7.4.0/type_traits 1558 { typedef _Tp type; };
1580 { typedef _Tp const type; };