Coverage Report

Created: 2022-07-16 07:03

/Users/buildslave/jenkins/workspace/coverage/llvm-project/clang/include/clang/AST/DeclBase.h
Line
Count
Source (jump to first uncovered line)
1
//===- DeclBase.h - Base Classes for representing declarations --*- C++ -*-===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
//
9
//  This file defines the Decl and DeclContext interfaces.
10
//
11
//===----------------------------------------------------------------------===//
12
13
#ifndef LLVM_CLANG_AST_DECLBASE_H
14
#define LLVM_CLANG_AST_DECLBASE_H
15
16
#include "clang/AST/ASTDumperUtils.h"
17
#include "clang/AST/AttrIterator.h"
18
#include "clang/AST/DeclarationName.h"
19
#include "clang/Basic/IdentifierTable.h"
20
#include "clang/Basic/LLVM.h"
21
#include "clang/Basic/SourceLocation.h"
22
#include "clang/Basic/Specifiers.h"
23
#include "llvm/ADT/ArrayRef.h"
24
#include "llvm/ADT/PointerIntPair.h"
25
#include "llvm/ADT/PointerUnion.h"
26
#include "llvm/ADT/iterator.h"
27
#include "llvm/ADT/iterator_range.h"
28
#include "llvm/Support/Casting.h"
29
#include "llvm/Support/Compiler.h"
30
#include "llvm/Support/PrettyStackTrace.h"
31
#include "llvm/Support/VersionTuple.h"
32
#include <algorithm>
33
#include <cassert>
34
#include <cstddef>
35
#include <iterator>
36
#include <string>
37
#include <type_traits>
38
#include <utility>
39
40
namespace clang {
41
42
class ASTContext;
43
class ASTMutationListener;
44
class Attr;
45
class BlockDecl;
46
class DeclContext;
47
class ExternalSourceSymbolAttr;
48
class FunctionDecl;
49
class FunctionType;
50
class IdentifierInfo;
51
enum Linkage : unsigned char;
52
class LinkageSpecDecl;
53
class Module;
54
class NamedDecl;
55
class ObjCContainerDecl;
56
class ObjCMethodDecl;
57
struct PrintingPolicy;
58
class RecordDecl;
59
class SourceManager;
60
class Stmt;
61
class StoredDeclsMap;
62
class TemplateDecl;
63
class TemplateParameterList;
64
class TranslationUnitDecl;
65
class UsingDirectiveDecl;
66
67
/// Captures the result of checking the availability of a
68
/// declaration.
69
enum AvailabilityResult {
70
  AR_Available = 0,
71
  AR_NotYetIntroduced,
72
  AR_Deprecated,
73
  AR_Unavailable
74
};
75
76
/// Decl - This represents one declaration (or definition), e.g. a variable,
77
/// typedef, function, struct, etc.
78
///
79
/// Note: There are objects tacked on before the *beginning* of Decl
80
/// (and its subclasses) in its Decl::operator new(). Proper alignment
81
/// of all subclasses (not requiring more than the alignment of Decl) is
82
/// asserted in DeclBase.cpp.
83
class alignas(8) Decl {
84
public:
85
  /// Lists the kind of concrete classes of Decl.
86
  enum Kind {
87
#define DECL(DERIVED, BASE) DERIVED,
88
#define ABSTRACT_DECL(DECL)
89
#define DECL_RANGE(BASE, START, END) \
90
        first##BASE = START, last##BASE = END,
91
#define LAST_DECL_RANGE(BASE, START, END) \
92
        first##BASE = START, last##BASE = END
93
#include "clang/AST/DeclNodes.inc"
94
  };
95
96
  /// A placeholder type used to construct an empty shell of a
97
  /// decl-derived type that will be filled in later (e.g., by some
98
  /// deserialization method).
99
  struct EmptyShell {};
100
101
  /// IdentifierNamespace - The different namespaces in which
102
  /// declarations may appear.  According to C99 6.2.3, there are
103
  /// four namespaces, labels, tags, members and ordinary
104
  /// identifiers.  C++ describes lookup completely differently:
105
  /// certain lookups merely "ignore" certain kinds of declarations,
106
  /// usually based on whether the declaration is of a type, etc.
107
  ///
108
  /// These are meant as bitmasks, so that searches in
109
  /// C++ can look into the "tag" namespace during ordinary lookup.
110
  ///
111
  /// Decl currently provides 15 bits of IDNS bits.
112
  enum IdentifierNamespace {
113
    /// Labels, declared with 'x:' and referenced with 'goto x'.
114
    IDNS_Label               = 0x0001,
115
116
    /// Tags, declared with 'struct foo;' and referenced with
117
    /// 'struct foo'.  All tags are also types.  This is what
118
    /// elaborated-type-specifiers look for in C.
119
    /// This also contains names that conflict with tags in the
120
    /// same scope but that are otherwise ordinary names (non-type
121
    /// template parameters and indirect field declarations).
122
    IDNS_Tag                 = 0x0002,
123
124
    /// Types, declared with 'struct foo', typedefs, etc.
125
    /// This is what elaborated-type-specifiers look for in C++,
126
    /// but note that it's ill-formed to find a non-tag.
127
    IDNS_Type                = 0x0004,
128
129
    /// Members, declared with object declarations within tag
130
    /// definitions.  In C, these can only be found by "qualified"
131
    /// lookup in member expressions.  In C++, they're found by
132
    /// normal lookup.
133
    IDNS_Member              = 0x0008,
134
135
    /// Namespaces, declared with 'namespace foo {}'.
136
    /// Lookup for nested-name-specifiers find these.
137
    IDNS_Namespace           = 0x0010,
138
139
    /// Ordinary names.  In C, everything that's not a label, tag,
140
    /// member, or function-local extern ends up here.
141
    IDNS_Ordinary            = 0x0020,
142
143
    /// Objective C \@protocol.
144
    IDNS_ObjCProtocol        = 0x0040,
145
146
    /// This declaration is a friend function.  A friend function
147
    /// declaration is always in this namespace but may also be in
148
    /// IDNS_Ordinary if it was previously declared.
149
    IDNS_OrdinaryFriend      = 0x0080,
150
151
    /// This declaration is a friend class.  A friend class
152
    /// declaration is always in this namespace but may also be in
153
    /// IDNS_Tag|IDNS_Type if it was previously declared.
154
    IDNS_TagFriend           = 0x0100,
155
156
    /// This declaration is a using declaration.  A using declaration
157
    /// *introduces* a number of other declarations into the current
158
    /// scope, and those declarations use the IDNS of their targets,
159
    /// but the actual using declarations go in this namespace.
160
    IDNS_Using               = 0x0200,
161
162
    /// This declaration is a C++ operator declared in a non-class
163
    /// context.  All such operators are also in IDNS_Ordinary.
164
    /// C++ lexical operator lookup looks for these.
165
    IDNS_NonMemberOperator   = 0x0400,
166
167
    /// This declaration is a function-local extern declaration of a
168
    /// variable or function. This may also be IDNS_Ordinary if it
169
    /// has been declared outside any function. These act mostly like
170
    /// invisible friend declarations, but are also visible to unqualified
171
    /// lookup within the scope of the declaring function.
172
    IDNS_LocalExtern         = 0x0800,
173
174
    /// This declaration is an OpenMP user defined reduction construction.
175
    IDNS_OMPReduction        = 0x1000,
176
177
    /// This declaration is an OpenMP user defined mapper.
178
    IDNS_OMPMapper           = 0x2000,
179
  };
180
181
  /// ObjCDeclQualifier - 'Qualifiers' written next to the return and
182
  /// parameter types in method declarations.  Other than remembering
183
  /// them and mangling them into the method's signature string, these
184
  /// are ignored by the compiler; they are consumed by certain
185
  /// remote-messaging frameworks.
186
  ///
187
  /// in, inout, and out are mutually exclusive and apply only to
188
  /// method parameters.  bycopy and byref are mutually exclusive and
189
  /// apply only to method parameters (?).  oneway applies only to
190
  /// results.  All of these expect their corresponding parameter to
191
  /// have a particular type.  None of this is currently enforced by
192
  /// clang.
193
  ///
194
  /// This should be kept in sync with ObjCDeclSpec::ObjCDeclQualifier.
195
  enum ObjCDeclQualifier {
196
    OBJC_TQ_None = 0x0,
197
    OBJC_TQ_In = 0x1,
198
    OBJC_TQ_Inout = 0x2,
199
    OBJC_TQ_Out = 0x4,
200
    OBJC_TQ_Bycopy = 0x8,
201
    OBJC_TQ_Byref = 0x10,
202
    OBJC_TQ_Oneway = 0x20,
203
204
    /// The nullability qualifier is set when the nullability of the
205
    /// result or parameter was expressed via a context-sensitive
206
    /// keyword.
207
    OBJC_TQ_CSNullability = 0x40
208
  };
209
210
  /// The kind of ownership a declaration has, for visibility purposes.
211
  /// This enumeration is designed such that higher values represent higher
212
  /// levels of name hiding.
213
  enum class ModuleOwnershipKind : unsigned {
214
    /// This declaration is not owned by a module.
215
    Unowned,
216
217
    /// This declaration has an owning module, but is globally visible
218
    /// (typically because its owning module is visible and we know that
219
    /// modules cannot later become hidden in this compilation).
220
    /// After serialization and deserialization, this will be converted
221
    /// to VisibleWhenImported.
222
    Visible,
223
224
    /// This declaration has an owning module, and is visible when that
225
    /// module is imported.
226
    VisibleWhenImported,
227
228
    /// This declaration has an owning module, and is visible to lookups
229
    /// that occurs within that module. And it is reachable in other module
230
    /// when the owning module is transitively imported.
231
    ReachableWhenImported,
232
233
    /// This declaration has an owning module, but is only visible to
234
    /// lookups that occur within that module.
235
    /// The discarded declarations in global module fragment belongs
236
    /// to this group too.
237
    ModulePrivate
238
  };
239
240
protected:
241
  /// The next declaration within the same lexical
242
  /// DeclContext. These pointers form the linked list that is
243
  /// traversed via DeclContext's decls_begin()/decls_end().
244
  ///
245
  /// The extra three bits are used for the ModuleOwnershipKind.
246
  llvm::PointerIntPair<Decl *, 3, ModuleOwnershipKind> NextInContextAndBits;
247
248
private:
249
  friend class DeclContext;
250
251
  struct MultipleDC {
252
    DeclContext *SemanticDC;
253
    DeclContext *LexicalDC;
254
  };
255
256
  /// DeclCtx - Holds either a DeclContext* or a MultipleDC*.
257
  /// For declarations that don't contain C++ scope specifiers, it contains
258
  /// the DeclContext where the Decl was declared.
259
  /// For declarations with C++ scope specifiers, it contains a MultipleDC*
260
  /// with the context where it semantically belongs (SemanticDC) and the
261
  /// context where it was lexically declared (LexicalDC).
262
  /// e.g.:
263
  ///
264
  ///   namespace A {
265
  ///      void f(); // SemanticDC == LexicalDC == 'namespace A'
266
  ///   }
267
  ///   void A::f(); // SemanticDC == namespace 'A'
268
  ///                // LexicalDC == global namespace
269
  llvm::PointerUnion<DeclContext*, MultipleDC*> DeclCtx;
270
271
9.04G
  bool isInSemaDC() const { return DeclCtx.is<DeclContext*>(); }
272
0
  bool isOutOfSemaDC() const { return DeclCtx.is<MultipleDC*>(); }
273
274
175M
  MultipleDC *getMultipleDC() const {
275
175M
    return DeclCtx.get<MultipleDC*>();
276
175M
  }
277
278
8.86G
  DeclContext *getSemanticDC() const {
279
8.86G
    return DeclCtx.get<DeclContext*>();
280
8.86G
  }
281
282
  /// Loc - The location of this decl.
283
  SourceLocation Loc;
284
285
  /// DeclKind - This indicates which class this is.
286
  unsigned DeclKind : 7;
287
288
  /// InvalidDecl - This indicates a semantic error occurred.
289
  unsigned InvalidDecl :  1;
290
291
  /// HasAttrs - This indicates whether the decl has attributes or not.
292
  unsigned HasAttrs : 1;
293
294
  /// Implicit - Whether this declaration was implicitly generated by
295
  /// the implementation rather than explicitly written by the user.
296
  unsigned Implicit : 1;
297
298
  /// Whether this declaration was "used", meaning that a definition is
299
  /// required.
300
  unsigned Used : 1;
301
302
  /// Whether this declaration was "referenced".
303
  /// The difference with 'Used' is whether the reference appears in a
304
  /// evaluated context or not, e.g. functions used in uninstantiated templates
305
  /// are regarded as "referenced" but not "used".
306
  unsigned Referenced : 1;
307
308
  /// Whether this declaration is a top-level declaration (function,
309
  /// global variable, etc.) that is lexically inside an objc container
310
  /// definition.
311
  unsigned TopLevelDeclInObjCContainer : 1;
312
313
  /// Whether statistic collection is enabled.
314
  static bool StatisticsEnabled;
315
316
protected:
317
  friend class ASTDeclReader;
318
  friend class ASTDeclWriter;
319
  friend class ASTNodeImporter;
320
  friend class ASTReader;
321
  friend class CXXClassMemberWrapper;
322
  friend class LinkageComputer;
323
  friend class RecordDecl;
324
  template<typename decl_type> friend class Redeclarable;
325
326
  /// Access - Used by C++ decls for the access specifier.
327
  // NOTE: VC++ treats enums as signed, avoid using the AccessSpecifier enum
328
  unsigned Access : 2;
329
330
  /// Whether this declaration was loaded from an AST file.
331
  unsigned FromASTFile : 1;
332
333
  /// IdentifierNamespace - This specifies what IDNS_* namespace this lives in.
334
  unsigned IdentifierNamespace : 14;
335
336
  /// If 0, we have not computed the linkage of this declaration.
337
  /// Otherwise, it is the linkage + 1.
338
  mutable unsigned CacheValidAndLinkage : 3;
339
340
  /// Allocate memory for a deserialized declaration.
341
  ///
342
  /// This routine must be used to allocate memory for any declaration that is
343
  /// deserialized from a module file.
344
  ///
345
  /// \param Size The size of the allocated object.
346
  /// \param Ctx The context in which we will allocate memory.
347
  /// \param ID The global ID of the deserialized declaration.
348
  /// \param Extra The amount of extra space to allocate after the object.
349
  void *operator new(std::size_t Size, const ASTContext &Ctx, unsigned ID,
350
                     std::size_t Extra = 0);
351
352
  /// Allocate memory for a non-deserialized declaration.
353
  void *operator new(std::size_t Size, const ASTContext &Ctx,
354
                     DeclContext *Parent, std::size_t Extra = 0);
355
356
private:
357
  bool AccessDeclContextCheck() const;
358
359
  /// Get the module ownership kind to use for a local lexical child of \p DC,
360
  /// which may be either a local or (rarely) an imported declaration.
361
150M
  static ModuleOwnershipKind getModuleOwnershipKindForChildOf(DeclContext *DC) {
362
150M
    if (DC) {
363
140M
      auto *D = cast<Decl>(DC);
364
140M
      auto MOK = D->getModuleOwnershipKind();
365
140M
      if (MOK != ModuleOwnershipKind::Unowned &&
366
140M
          
(3.12M
!D->isFromASTFile()3.12M
||
D->hasLocalOwningModuleStorage()170k
))
367
2.99M
        return MOK;
368
      // If D is not local and we have no local module storage, then we don't
369
      // need to track module ownership at all.
370
140M
    }
371
147M
    return ModuleOwnershipKind::Unowned;
372
150M
  }
373
374
public:
375
  Decl() = delete;
376
  Decl(const Decl&) = delete;
377
  Decl(Decl &&) = delete;
378
  Decl &operator=(const Decl&) = delete;
379
  Decl &operator=(Decl&&) = delete;
380
381
protected:
382
  Decl(Kind DK, DeclContext *DC, SourceLocation L)
383
      : NextInContextAndBits(nullptr, getModuleOwnershipKindForChildOf(DC)),
384
        DeclCtx(DC), Loc(L), DeclKind(DK), InvalidDecl(false), HasAttrs(false),
385
        Implicit(false), Used(false), Referenced(false),
386
        TopLevelDeclInObjCContainer(false), Access(AS_none), FromASTFile(0),
387
        IdentifierNamespace(getIdentifierNamespaceForKind(DK)),
388
149M
        CacheValidAndLinkage(0) {
389
149M
    if (StatisticsEnabled) 
add(DK)82
;
390
149M
  }
391
392
  Decl(Kind DK, EmptyShell Empty)
393
      : DeclKind(DK), InvalidDecl(false), HasAttrs(false), Implicit(false),
394
        Used(false), Referenced(false), TopLevelDeclInObjCContainer(false),
395
        Access(AS_none), FromASTFile(0),
396
        IdentifierNamespace(getIdentifierNamespaceForKind(DK)),
397
106k
        CacheValidAndLinkage(0) {
398
106k
    if (StatisticsEnabled) 
add(DK)0
;
399
106k
  }
400
401
  virtual ~Decl();
402
403
  /// Update a potentially out-of-date declaration.
404
  void updateOutOfDate(IdentifierInfo &II) const;
405
406
103M
  Linkage getCachedLinkage() const {
407
103M
    return Linkage(CacheValidAndLinkage - 1);
408
103M
  }
409
410
36.5M
  void setCachedLinkage(Linkage L) const {
411
36.5M
    CacheValidAndLinkage = L + 1;
412
36.5M
  }
413
414
176M
  bool hasCachedLinkage() const {
415
176M
    return CacheValidAndLinkage;
416
176M
  }
417
418
public:
419
  /// Source range that this declaration covers.
420
4.37k
  virtual SourceRange getSourceRange() const LLVM_READONLY {
421
4.37k
    return SourceRange(getLocation(), getLocation());
422
4.37k
  }
423
424
2.66M
  SourceLocation getBeginLoc() const LLVM_READONLY {
425
2.66M
    return getSourceRange().getBegin();
426
2.66M
  }
427
428
3.01M
  SourceLocation getEndLoc() const LLVM_READONLY {
429
3.01M
    return getSourceRange().getEnd();
430
3.01M
  }
431
432
346M
  SourceLocation getLocation() const { return Loc; }
433
10.8M
  void setLocation(SourceLocation L) { Loc = L; }
434
435
20.7G
  Kind getKind() const { return static_cast<Kind>(DeclKind); }
436
  const char *getDeclKindName() const;
437
438
410M
  Decl *getNextDeclInContext() { return NextInContextAndBits.getPointer(); }
439
4.07k
  const Decl *getNextDeclInContext() const {return NextInContextAndBits.getPointer();}
440
441
8.57G
  DeclContext *getDeclContext() {
442
8.57G
    if (isInSemaDC())
443
8.42G
      return getSemanticDC();
444
151M
    return getMultipleDC()->SemanticDC;
445
8.57G
  }
446
1.76G
  const DeclContext *getDeclContext() const {
447
1.76G
    return const_cast<Decl*>(this)->getDeclContext();
448
1.76G
  }
449
450
  /// Find the innermost non-closure ancestor of this declaration,
451
  /// walking up through blocks, lambdas, etc.  If that ancestor is
452
  /// not a code context (!isFunctionOrMethod()), returns null.
453
  ///
454
  /// A declaration may be its own non-closure context.
455
  Decl *getNonClosureContext();
456
305k
  const Decl *getNonClosureContext() const {
457
305k
    return const_cast<Decl*>(this)->getNonClosureContext();
458
305k
  }
459
460
  TranslationUnitDecl *getTranslationUnitDecl();
461
3.05G
  const TranslationUnitDecl *getTranslationUnitDecl() const {
462
3.05G
    return const_cast<Decl*>(this)->getTranslationUnitDecl();
463
3.05G
  }
464
465
  bool isInAnonymousNamespace() const;
466
467
  bool isInStdNamespace() const;
468
469
  ASTContext &getASTContext() const LLVM_READONLY;
470
471
  /// Helper to get the language options from the ASTContext.
472
  /// Defined out of line to avoid depending on ASTContext.h.
473
  const LangOptions &getLangOpts() const LLVM_READONLY;
474
475
35.3M
  void setAccess(AccessSpecifier AS) {
476
35.3M
    Access = AS;
477
35.3M
    assert(AccessDeclContextCheck());
478
35.3M
  }
479
480
310M
  AccessSpecifier getAccess() const {
481
310M
    assert(AccessDeclContextCheck());
482
0
    return AccessSpecifier(Access);
483
310M
  }
484
485
  /// Retrieve the access specifier for this declaration, even though
486
  /// it may not yet have been properly set.
487
37.5k
  AccessSpecifier getAccessUnsafe() const {
488
37.5k
    return AccessSpecifier(Access);
489
37.5k
  }
490
491
3.56G
  bool hasAttrs() const { return HasAttrs; }
492
493
31.0M
  void setAttrs(const AttrVec& Attrs) {
494
31.0M
    return setAttrsImpl(Attrs, getASTContext());
495
31.0M
  }
496
497
82.4M
  AttrVec &getAttrs() {
498
82.4M
    return const_cast<AttrVec&>(const_cast<const Decl*>(this)->getAttrs());
499
82.4M
  }
500
501
  const AttrVec &getAttrs() const;
502
  void dropAttrs();
503
  void addAttr(Attr *A);
504
505
  using attr_iterator = AttrVec::const_iterator;
506
  using attr_range = llvm::iterator_range<attr_iterator>;
507
508
150M
  attr_range attrs() const {
509
150M
    return attr_range(attr_begin(), attr_end());
510
150M
  }
511
512
303M
  attr_iterator attr_begin() const {
513
303M
    return hasAttrs() ? 
getAttrs().begin()45.2M
:
nullptr258M
;
514
303M
  }
515
303M
  attr_iterator attr_end() const {
516
303M
    return hasAttrs() ? 
getAttrs().end()45.2M
:
nullptr258M
;
517
303M
  }
518
519
  template <typename T>
520
12.2k
  void dropAttr() {
521
12.2k
    if (!HasAttrs) 
return9.36k
;
522
523
2.89k
    AttrVec &Vec = getAttrs();
524
3.44k
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
void clang::Decl::dropAttr<clang::DLLImportAttr>()::'lambda'(clang::Attr*)::operator()(clang::Attr*) const
Line
Count
Source
524
2.35k
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
void clang::Decl::dropAttr<clang::WeakAttr>()::'lambda'(clang::Attr*)::operator()(clang::Attr*) const
Line
Count
Source
524
10
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
void clang::Decl::dropAttr<clang::WeakRefAttr>()::'lambda'(clang::Attr*)::operator()(clang::Attr*) const
Line
Count
Source
524
8
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
void clang::Decl::dropAttr<clang::SelectAnyAttr>()::'lambda'(clang::Attr*)::operator()(clang::Attr*) const
Line
Count
Source
524
19
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
void clang::Decl::dropAttr<clang::ConstInitAttr>()::'lambda'(clang::Attr*)::operator()(clang::Attr*) const
Line
Count
Source
524
12
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
void clang::Decl::dropAttr<clang::InternalLinkageAttr>()::'lambda'(clang::Attr*)::operator()(clang::Attr*) const
Line
Count
Source
524
3
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
void clang::Decl::dropAttr<clang::ErrorAttr>()::'lambda'(clang::Attr*)::operator()(clang::Attr*) const
Line
Count
Source
524
16
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
void clang::Decl::dropAttr<clang::OverloadableAttr>()::'lambda'(clang::Attr*)::operator()(clang::Attr*) const
Line
Count
Source
524
4
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
void clang::Decl::dropAttr<clang::WeakImportAttr>()::'lambda'(clang::Attr*)::operator()(clang::Attr*) const
Line
Count
Source
524
2
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
void clang::Decl::dropAttr<clang::AliasAttr>()::'lambda'(clang::Attr*)::operator()(clang::Attr*) const
Line
Count
Source
524
5
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
void clang::Decl::dropAttr<clang::SectionAttr>()::'lambda'(clang::Attr*)::operator()(clang::Attr*) const
Line
Count
Source
524
2
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
void clang::Decl::dropAttr<clang::UsedAttr>()::'lambda'(clang::Attr*)::operator()(clang::Attr*) const
Line
Count
Source
524
4
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
void clang::Decl::dropAttr<clang::RetainAttr>()::'lambda'(clang::Attr*)::operator()(clang::Attr*) const
Line
Count
Source
524
2
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
void clang::Decl::dropAttr<clang::IFuncAttr>()::'lambda'(clang::Attr*)::operator()(clang::Attr*) const
Line
Count
Source
524
1
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
Unexecuted instantiation: void clang::Decl::dropAttr<clang::CUDAConstantAttr>()::'lambda'(clang::Attr*)::operator()(clang::Attr*) const
void clang::Decl::dropAttr<clang::NoBuiltinAttr>()::'lambda'(clang::Attr*)::operator()(clang::Attr*) const
Line
Count
Source
524
8
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
void clang::Decl::dropAttr<clang::CUDADeviceAttr>()::'lambda'(clang::Attr*)::operator()(clang::Attr*) const
Line
Count
Source
524
12
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
void clang::Decl::dropAttr<clang::CodeSegAttr>()::'lambda'(clang::Attr*)::operator()(clang::Attr*) const
Line
Count
Source
524
11
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
Unexecuted instantiation: void clang::Decl::dropAttr<clang::ZeroCallUsedRegsAttr>()::'lambda'(clang::Attr*)::operator()(clang::Attr*) const
void clang::Decl::dropAttr<clang::FunctionReturnThunksAttr>()::'lambda'(clang::Attr*)::operator()(clang::Attr*) const
Line
Count
Source
524
48
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
void clang::Decl::dropAttr<clang::EnforceTCBAttr>()::'lambda'(clang::Attr*)::operator()(clang::Attr*) const
Line
Count
Source
524
12
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
void clang::Decl::dropAttr<clang::VisibilityAttr>()::'lambda'(clang::Attr*)::operator()(clang::Attr*) const
Line
Count
Source
524
6
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
Unexecuted instantiation: void clang::Decl::dropAttr<clang::TypeVisibilityAttr>()::'lambda'(clang::Attr*)::operator()(clang::Attr*) const
void clang::Decl::dropAttr<clang::SwiftNameAttr>()::'lambda'(clang::Attr*)::operator()(clang::Attr*) const
Line
Count
Source
524
9
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
void clang::Decl::dropAttr<clang::AlwaysInlineAttr>()::'lambda'(clang::Attr*)::operator()(clang::Attr*) const
Line
Count
Source
524
7
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
void clang::Decl::dropAttr<clang::MinSizeAttr>()::'lambda'(clang::Attr*)::operator()(clang::Attr*) const
Line
Count
Source
524
3
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
void clang::Decl::dropAttr<clang::UuidAttr>()::'lambda'(clang::Attr*)::operator()(clang::Attr*) const
Line
Count
Source
524
16
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
void clang::Decl::dropAttr<clang::MSInheritanceAttr>()::'lambda'(clang::Attr*)::operator()(clang::Attr*) const
Line
Count
Source
524
3
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
void clang::Decl::dropAttr<clang::ObjCDesignatedInitializerAttr>()::'lambda'(clang::Attr*)::operator()(clang::Attr*) const
Line
Count
Source
524
2
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
void clang::Decl::dropAttr<clang::TrivialABIAttr>()::'lambda'(clang::Attr*)::operator()(clang::Attr*) const
Line
Count
Source
524
36
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
void clang::Decl::dropAttr<clang::OverrideAttr>()::'lambda'(clang::Attr*)::operator()(clang::Attr*) const
Line
Count
Source
524
10
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
void clang::Decl::dropAttr<clang::FinalAttr>()::'lambda'(clang::Attr*)::operator()(clang::Attr*) const
Line
Count
Source
524
6
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
void clang::Decl::dropAttr<clang::DLLExportAttr>()::'lambda'(clang::Attr*)::operator()(clang::Attr*) const
Line
Count
Source
524
803
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
void clang::Decl::dropAttr<clang::AvailabilityAttr>()::'lambda'(clang::Attr*)::operator()(clang::Attr*) const
Line
Count
Source
524
10
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
525
526
2.89k
    if (Vec.empty())
527
2.02k
      HasAttrs = false;
528
2.89k
  }
void clang::Decl::dropAttr<clang::DLLImportAttr>()
Line
Count
Source
520
6.59k
  void dropAttr() {
521
6.59k
    if (!HasAttrs) 
return4.50k
;
522
523
2.09k
    AttrVec &Vec = getAttrs();
524
2.09k
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
525
526
2.09k
    if (Vec.empty())
527
1.58k
      HasAttrs = false;
528
2.09k
  }
void clang::Decl::dropAttr<clang::WeakAttr>()
Line
Count
Source
520
10
  void dropAttr() {
521
10
    if (!HasAttrs) 
return0
;
522
523
10
    AttrVec &Vec = getAttrs();
524
10
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
525
526
10
    if (Vec.empty())
527
10
      HasAttrs = false;
528
10
  }
void clang::Decl::dropAttr<clang::WeakRefAttr>()
Line
Count
Source
520
5
  void dropAttr() {
521
5
    if (!HasAttrs) 
return0
;
522
523
5
    AttrVec &Vec = getAttrs();
524
5
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
525
526
5
    if (Vec.empty())
527
2
      HasAttrs = false;
528
5
  }
void clang::Decl::dropAttr<clang::SelectAnyAttr>()
Line
Count
Source
520
19
  void dropAttr() {
521
19
    if (!HasAttrs) 
return0
;
522
523
19
    AttrVec &Vec = getAttrs();
524
19
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
525
526
19
    if (Vec.empty())
527
19
      HasAttrs = false;
528
19
  }
void clang::Decl::dropAttr<clang::ConstInitAttr>()
Line
Count
Source
520
12
  void dropAttr() {
521
12
    if (!HasAttrs) 
return0
;
522
523
12
    AttrVec &Vec = getAttrs();
524
12
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
525
526
12
    if (Vec.empty())
527
12
      HasAttrs = false;
528
12
  }
void clang::Decl::dropAttr<clang::InternalLinkageAttr>()
Line
Count
Source
520
3
  void dropAttr() {
521
3
    if (!HasAttrs) 
return0
;
522
523
3
    AttrVec &Vec = getAttrs();
524
3
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
525
526
3
    if (Vec.empty())
527
3
      HasAttrs = false;
528
3
  }
void clang::Decl::dropAttr<clang::ErrorAttr>()
Line
Count
Source
520
16
  void dropAttr() {
521
16
    if (!HasAttrs) 
return0
;
522
523
16
    AttrVec &Vec = getAttrs();
524
16
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
525
526
16
    if (Vec.empty())
527
16
      HasAttrs = false;
528
16
  }
void clang::Decl::dropAttr<clang::OverloadableAttr>()
Line
Count
Source
520
3
  void dropAttr() {
521
3
    if (!HasAttrs) 
return0
;
522
523
3
    AttrVec &Vec = getAttrs();
524
3
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
525
526
3
    if (Vec.empty())
527
2
      HasAttrs = false;
528
3
  }
void clang::Decl::dropAttr<clang::WeakImportAttr>()
Line
Count
Source
520
2
  void dropAttr() {
521
2
    if (!HasAttrs) 
return0
;
522
523
2
    AttrVec &Vec = getAttrs();
524
2
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
525
526
2
    if (Vec.empty())
527
2
      HasAttrs = false;
528
2
  }
void clang::Decl::dropAttr<clang::AliasAttr>()
Line
Count
Source
520
5
  void dropAttr() {
521
5
    if (!HasAttrs) 
return0
;
522
523
5
    AttrVec &Vec = getAttrs();
524
5
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
525
526
5
    if (Vec.empty())
527
5
      HasAttrs = false;
528
5
  }
void clang::Decl::dropAttr<clang::SectionAttr>()
Line
Count
Source
520
2
  void dropAttr() {
521
2
    if (!HasAttrs) 
return0
;
522
523
2
    AttrVec &Vec = getAttrs();
524
2
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
525
526
2
    if (Vec.empty())
527
2
      HasAttrs = false;
528
2
  }
void clang::Decl::dropAttr<clang::UsedAttr>()
Line
Count
Source
520
4
  void dropAttr() {
521
4
    if (!HasAttrs) 
return0
;
522
523
4
    AttrVec &Vec = getAttrs();
524
4
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
525
526
4
    if (Vec.empty())
527
4
      HasAttrs = false;
528
4
  }
void clang::Decl::dropAttr<clang::RetainAttr>()
Line
Count
Source
520
2
  void dropAttr() {
521
2
    if (!HasAttrs) 
return0
;
522
523
2
    AttrVec &Vec = getAttrs();
524
2
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
525
526
2
    if (Vec.empty())
527
2
      HasAttrs = false;
528
2
  }
void clang::Decl::dropAttr<clang::IFuncAttr>()
Line
Count
Source
520
1
  void dropAttr() {
521
1
    if (!HasAttrs) 
return0
;
522
523
1
    AttrVec &Vec = getAttrs();
524
1
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
525
526
1
    if (Vec.empty())
527
1
      HasAttrs = false;
528
1
  }
Unexecuted instantiation: void clang::Decl::dropAttr<clang::CUDAConstantAttr>()
void clang::Decl::dropAttr<clang::NoBuiltinAttr>()
Line
Count
Source
520
8
  void dropAttr() {
521
8
    if (!HasAttrs) 
return0
;
522
523
8
    AttrVec &Vec = getAttrs();
524
8
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
525
526
8
    if (Vec.empty())
527
8
      HasAttrs = false;
528
8
  }
void clang::Decl::dropAttr<clang::CUDADeviceAttr>()
Line
Count
Source
520
6
  void dropAttr() {
521
6
    if (!HasAttrs) 
return0
;
522
523
6
    AttrVec &Vec = getAttrs();
524
6
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
525
526
6
    if (Vec.empty())
527
0
      HasAttrs = false;
528
6
  }
void clang::Decl::dropAttr<clang::CodeSegAttr>()
Line
Count
Source
520
8
  void dropAttr() {
521
8
    if (!HasAttrs) 
return0
;
522
523
8
    AttrVec &Vec = getAttrs();
524
8
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
525
526
8
    if (Vec.empty())
527
5
      HasAttrs = false;
528
8
  }
void clang::Decl::dropAttr<clang::ZeroCallUsedRegsAttr>()
Line
Count
Source
520
90
  void dropAttr() {
521
90
    if (!HasAttrs) return;
522
523
0
    AttrVec &Vec = getAttrs();
524
0
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
525
526
0
    if (Vec.empty())
527
0
      HasAttrs = false;
528
0
  }
void clang::Decl::dropAttr<clang::FunctionReturnThunksAttr>()
Line
Count
Source
520
197
  void dropAttr() {
521
197
    if (!HasAttrs) 
return149
;
522
523
48
    AttrVec &Vec = getAttrs();
524
48
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
525
526
48
    if (Vec.empty())
527
48
      HasAttrs = false;
528
48
  }
void clang::Decl::dropAttr<clang::EnforceTCBAttr>()
Line
Count
Source
520
10
  void dropAttr() {
521
10
    if (!HasAttrs) 
return0
;
522
523
10
    AttrVec &Vec = getAttrs();
524
10
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
525
526
10
    if (Vec.empty())
527
6
      HasAttrs = false;
528
10
  }
void clang::Decl::dropAttr<clang::VisibilityAttr>()
Line
Count
Source
520
6
  void dropAttr() {
521
6
    if (!HasAttrs) 
return0
;
522
523
6
    AttrVec &Vec = getAttrs();
524
6
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
525
526
6
    if (Vec.empty())
527
6
      HasAttrs = false;
528
6
  }
Unexecuted instantiation: void clang::Decl::dropAttr<clang::TypeVisibilityAttr>()
void clang::Decl::dropAttr<clang::SwiftNameAttr>()
Line
Count
Source
520
9
  void dropAttr() {
521
9
    if (!HasAttrs) 
return0
;
522
523
9
    AttrVec &Vec = getAttrs();
524
9
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
525
526
9
    if (Vec.empty())
527
9
      HasAttrs = false;
528
9
  }
void clang::Decl::dropAttr<clang::AlwaysInlineAttr>()
Line
Count
Source
520
7
  void dropAttr() {
521
7
    if (!HasAttrs) 
return0
;
522
523
7
    AttrVec &Vec = getAttrs();
524
7
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
525
526
7
    if (Vec.empty())
527
7
      HasAttrs = false;
528
7
  }
void clang::Decl::dropAttr<clang::MinSizeAttr>()
Line
Count
Source
520
3
  void dropAttr() {
521
3
    if (!HasAttrs) 
return0
;
522
523
3
    AttrVec &Vec = getAttrs();
524
3
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
525
526
3
    if (Vec.empty())
527
3
      HasAttrs = false;
528
3
  }
void clang::Decl::dropAttr<clang::UuidAttr>()
Line
Count
Source
520
16
  void dropAttr() {
521
16
    if (!HasAttrs) 
return0
;
522
523
16
    AttrVec &Vec = getAttrs();
524
16
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
525
526
16
    if (Vec.empty())
527
16
      HasAttrs = false;
528
16
  }
void clang::Decl::dropAttr<clang::MSInheritanceAttr>()
Line
Count
Source
520
3
  void dropAttr() {
521
3
    if (!HasAttrs) 
return0
;
522
523
3
    AttrVec &Vec = getAttrs();
524
3
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
525
526
3
    if (Vec.empty())
527
3
      HasAttrs = false;
528
3
  }
void clang::Decl::dropAttr<clang::ObjCDesignatedInitializerAttr>()
Line
Count
Source
520
2
  void dropAttr() {
521
2
    if (!HasAttrs) 
return0
;
522
523
2
    AttrVec &Vec = getAttrs();
524
2
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
525
526
2
    if (Vec.empty())
527
2
      HasAttrs = false;
528
2
  }
void clang::Decl::dropAttr<clang::TrivialABIAttr>()
Line
Count
Source
520
36
  void dropAttr() {
521
36
    if (!HasAttrs) 
return0
;
522
523
36
    AttrVec &Vec = getAttrs();
524
36
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
525
526
36
    if (Vec.empty())
527
36
      HasAttrs = false;
528
36
  }
void clang::Decl::dropAttr<clang::OverrideAttr>()
Line
Count
Source
520
10
  void dropAttr() {
521
10
    if (!HasAttrs) 
return0
;
522
523
10
    AttrVec &Vec = getAttrs();
524
10
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
525
526
10
    if (Vec.empty())
527
10
      HasAttrs = false;
528
10
  }
void clang::Decl::dropAttr<clang::FinalAttr>()
Line
Count
Source
520
6
  void dropAttr() {
521
6
    if (!HasAttrs) 
return0
;
522
523
6
    AttrVec &Vec = getAttrs();
524
6
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
525
526
6
    if (Vec.empty())
527
6
      HasAttrs = false;
528
6
  }
void clang::Decl::dropAttr<clang::DLLExportAttr>()
Line
Count
Source
520
5.16k
  void dropAttr() {
521
5.16k
    if (!HasAttrs) 
return4.63k
;
522
523
539
    AttrVec &Vec = getAttrs();
524
539
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
525
526
539
    if (Vec.empty())
527
197
      HasAttrs = false;
528
539
  }
void clang::Decl::dropAttr<clang::AvailabilityAttr>()
Line
Count
Source
520
6
  void dropAttr() {
521
6
    if (!HasAttrs) 
return0
;
522
523
6
    AttrVec &Vec = getAttrs();
524
6
    llvm::erase_if(Vec, [](Attr *A) { return isa<T>(A); });
525
526
6
    if (Vec.empty())
527
2
      HasAttrs = false;
528
6
  }
529
530
  template <typename T>
531
152M
  llvm::iterator_range<specific_attr_iterator<T>> specific_attrs() const {
532
152M
    return llvm::make_range(specific_attr_begin<T>(), specific_attr_end<T>());
533
152M
  }
llvm::iterator_range<clang::specific_attr_iterator<clang::EnableIfAttr, llvm::SmallVector<clang::Attr*, 4u> > > clang::Decl::specific_attrs<clang::EnableIfAttr>() const
Line
Count
Source
531
5.57M
  llvm::iterator_range<specific_attr_iterator<T>> specific_attrs() const {
532
5.57M
    return llvm::make_range(specific_attr_begin<T>(), specific_attr_end<T>());
533
5.57M
  }
llvm::iterator_range<clang::specific_attr_iterator<clang::OMPDeclareTargetDeclAttr, llvm::SmallVector<clang::Attr*, 4u> > > clang::Decl::specific_attrs<clang::OMPDeclareTargetDeclAttr>() const
Line
Count
Source
531
88.6k
  llvm::iterator_range<specific_attr_iterator<T>> specific_attrs() const {
532
88.6k
    return llvm::make_range(specific_attr_begin<T>(), specific_attr_end<T>());
533
88.6k
  }
llvm::iterator_range<clang::specific_attr_iterator<clang::AlignedAttr, llvm::SmallVector<clang::Attr*, 4u> > > clang::Decl::specific_attrs<clang::AlignedAttr>() const
Line
Count
Source
531
2.52M
  llvm::iterator_range<specific_attr_iterator<T>> specific_attrs() const {
532
2.52M
    return llvm::make_range(specific_attr_begin<T>(), specific_attr_end<T>());
533
2.52M
  }
llvm::iterator_range<clang::specific_attr_iterator<clang::NonNullAttr, llvm::SmallVector<clang::Attr*, 4u> > > clang::Decl::specific_attrs<clang::NonNullAttr>() const
Line
Count
Source
531
3.99M
  llvm::iterator_range<specific_attr_iterator<T>> specific_attrs() const {
532
3.99M
    return llvm::make_range(specific_attr_begin<T>(), specific_attr_end<T>());
533
3.99M
  }
llvm::iterator_range<clang::specific_attr_iterator<clang::PreferredNameAttr, llvm::SmallVector<clang::Attr*, 4u> > > clang::Decl::specific_attrs<clang::PreferredNameAttr>() const
Line
Count
Source
531
834k
  llvm::iterator_range<specific_attr_iterator<T>> specific_attrs() const {
532
834k
    return llvm::make_range(specific_attr_begin<T>(), specific_attr_end<T>());
533
834k
  }
llvm::iterator_range<clang::specific_attr_iterator<clang::FormatArgAttr, llvm::SmallVector<clang::Attr*, 4u> > > clang::Decl::specific_attrs<clang::FormatArgAttr>() const
Line
Count
Source
531
22
  llvm::iterator_range<specific_attr_iterator<T>> specific_attrs() const {
532
22
    return llvm::make_range(specific_attr_begin<T>(), specific_attr_end<T>());
533
22
  }
llvm::iterator_range<clang::specific_attr_iterator<clang::ArgumentWithTypeTagAttr, llvm::SmallVector<clang::Attr*, 4u> > > clang::Decl::specific_attrs<clang::ArgumentWithTypeTagAttr>() const
Line
Count
Source
531
3.81M
  llvm::iterator_range<specific_attr_iterator<T>> specific_attrs() const {
532
3.81M
    return llvm::make_range(specific_attr_begin<T>(), specific_attr_end<T>());
533
3.81M
  }
llvm::iterator_range<clang::specific_attr_iterator<clang::EnforceTCBAttr, llvm::SmallVector<clang::Attr*, 4u> > > clang::Decl::specific_attrs<clang::EnforceTCBAttr>() const
Line
Count
Source
531
115
  llvm::iterator_range<specific_attr_iterator<T>> specific_attrs() const {
532
115
    return llvm::make_range(specific_attr_begin<T>(), specific_attr_end<T>());
533
115
  }
llvm::iterator_range<clang::specific_attr_iterator<clang::EnforceTCBLeafAttr, llvm::SmallVector<clang::Attr*, 4u> > > clang::Decl::specific_attrs<clang::EnforceTCBLeafAttr>() const
Line
Count
Source
531
103
  llvm::iterator_range<specific_attr_iterator<T>> specific_attrs() const {
532
103
    return llvm::make_range(specific_attr_begin<T>(), specific_attr_end<T>());
533
103
  }
llvm::iterator_range<clang::specific_attr_iterator<clang::AnnotateAttr, llvm::SmallVector<clang::Attr*, 4u> > > clang::Decl::specific_attrs<clang::AnnotateAttr>() const
Line
Count
Source
531
8.51k
  llvm::iterator_range<specific_attr_iterator<T>> specific_attrs() const {
532
8.51k
    return llvm::make_range(specific_attr_begin<T>(), specific_attr_end<T>());
533
8.51k
  }
llvm::iterator_range<clang::specific_attr_iterator<clang::InheritableParamAttr, llvm::SmallVector<clang::Attr*, 4u> > > clang::Decl::specific_attrs<clang::InheritableParamAttr>() const
Line
Count
Source
531
5.07k
  llvm::iterator_range<specific_attr_iterator<T>> specific_attrs() const {
532
5.07k
    return llvm::make_range(specific_attr_begin<T>(), specific_attr_end<T>());
533
5.07k
  }
llvm::iterator_range<clang::specific_attr_iterator<clang::InheritableAttr, llvm::SmallVector<clang::Attr*, 4u> > > clang::Decl::specific_attrs<clang::InheritableAttr>() const
Line
Count
Source
531
387k
  llvm::iterator_range<specific_attr_iterator<T>> specific_attrs() const {
532
387k
    return llvm::make_range(specific_attr_begin<T>(), specific_attr_end<T>());
533
387k
  }
llvm::iterator_range<clang::specific_attr_iterator<clang::TypeTagForDatatypeAttr, llvm::SmallVector<clang::Attr*, 4u> > > clang::Decl::specific_attrs<clang::TypeTagForDatatypeAttr>() const
Line
Count
Source
531
102
  llvm::iterator_range<specific_attr_iterator<T>> specific_attrs() const {
532
102
    return llvm::make_range(specific_attr_begin<T>(), specific_attr_end<T>());
533
102
  }
llvm::iterator_range<clang::specific_attr_iterator<clang::BTFDeclTagAttr, llvm::SmallVector<clang::Attr*, 4u> > > clang::Decl::specific_attrs<clang::BTFDeclTagAttr>() const
Line
Count
Source
531
94
  llvm::iterator_range<specific_attr_iterator<T>> specific_attrs() const {
532
94
    return llvm::make_range(specific_attr_begin<T>(), specific_attr_end<T>());
533
94
  }
llvm::iterator_range<clang::specific_attr_iterator<clang::OwnershipAttr, llvm::SmallVector<clang::Attr*, 4u> > > clang::Decl::specific_attrs<clang::OwnershipAttr>() const
Line
Count
Source
531
2.34k
  llvm::iterator_range<specific_attr_iterator<T>> specific_attrs() const {
532
2.34k
    return llvm::make_range(specific_attr_begin<T>(), specific_attr_end<T>());
533
2.34k
  }
llvm::iterator_range<clang::specific_attr_iterator<clang::FormatAttr, llvm::SmallVector<clang::Attr*, 4u> > > clang::Decl::specific_attrs<clang::FormatAttr>() const
Line
Count
Source
531
4.13M
  llvm::iterator_range<specific_attr_iterator<T>> specific_attrs() const {
532
4.13M
    return llvm::make_range(specific_attr_begin<T>(), specific_attr_end<T>());
533
4.13M
  }
llvm::iterator_range<clang::specific_attr_iterator<clang::OMPDeclareVariantAttr, llvm::SmallVector<clang::Attr*, 4u> > > clang::Decl::specific_attrs<clang::OMPDeclareVariantAttr>() const
Line
Count
Source
531
2.60k
  llvm::iterator_range<specific_attr_iterator<T>> specific_attrs() const {
532
2.60k
    return llvm::make_range(specific_attr_begin<T>(), specific_attr_end<T>());
533
2.60k
  }
llvm::iterator_range<clang::specific_attr_iterator<clang::DiagnoseIfAttr, llvm::SmallVector<clang::Attr*, 4u> > > clang::Decl::specific_attrs<clang::DiagnoseIfAttr>() const
Line
Count
Source
531
130M
  llvm::iterator_range<specific_attr_iterator<T>> specific_attrs() const {
532
130M
    return llvm::make_range(specific_attr_begin<T>(), specific_attr_end<T>());
533
130M
  }
llvm::iterator_range<clang::specific_attr_iterator<clang::PtGuardedByAttr, llvm::SmallVector<clang::Attr*, 4u> > > clang::Decl::specific_attrs<clang::PtGuardedByAttr>() const
Line
Count
Source
531
462
  llvm::iterator_range<specific_attr_iterator<T>> specific_attrs() const {
532
462
    return llvm::make_range(specific_attr_begin<T>(), specific_attr_end<T>());
533
462
  }
llvm::iterator_range<clang::specific_attr_iterator<clang::GuardedByAttr, llvm::SmallVector<clang::Attr*, 4u> > > clang::Decl::specific_attrs<clang::GuardedByAttr>() const
Line
Count
Source
531
2.66k
  llvm::iterator_range<specific_attr_iterator<T>> specific_attrs() const {
532
2.66k
    return llvm::make_range(specific_attr_begin<T>(), specific_attr_end<T>());
533
2.66k
  }
llvm::iterator_range<clang::specific_attr_iterator<clang::AssumptionAttr, llvm::SmallVector<clang::Attr*, 4u> > > clang::Decl::specific_attrs<clang::AssumptionAttr>() const
Line
Count
Source
531
677k
  llvm::iterator_range<specific_attr_iterator<T>> specific_attrs() const {
532
677k
    return llvm::make_range(specific_attr_begin<T>(), specific_attr_end<T>());
533
677k
  }
llvm::iterator_range<clang::specific_attr_iterator<clang::OMPDeclareSimdDeclAttr, llvm::SmallVector<clang::Attr*, 4u> > > clang::Decl::specific_attrs<clang::OMPDeclareSimdDeclAttr>() const
Line
Count
Source
531
229
  llvm::iterator_range<specific_attr_iterator<T>> specific_attrs() const {
532
229
    return llvm::make_range(specific_attr_begin<T>(), specific_attr_end<T>());
533
229
  }
llvm::iterator_range<clang::specific_attr_iterator<clang::NoSanitizeAttr, llvm::SmallVector<clang::Attr*, 4u> > > clang::Decl::specific_attrs<clang::NoSanitizeAttr>() const
Line
Count
Source
531
305k
  llvm::iterator_range<specific_attr_iterator<T>> specific_attrs() const {
532
305k
    return llvm::make_range(specific_attr_begin<T>(), specific_attr_end<T>());
533
305k
  }
llvm::iterator_range<clang::specific_attr_iterator<clang::AvailabilityAttr, llvm::SmallVector<clang::Attr*, 4u> > > clang::Decl::specific_attrs<clang::AvailabilityAttr>() const
Line
Count
Source
531
65
  llvm::iterator_range<specific_attr_iterator<T>> specific_attrs() const {
532
65
    return llvm::make_range(specific_attr_begin<T>(), specific_attr_end<T>());
533
65
  }
534
535
  template <typename T>
536
153M
  specific_attr_iterator<T> specific_attr_begin() const {
537
153M
    return specific_attr_iterator<T>(attr_begin());
538
153M
  }
clang::specific_attr_iterator<clang::EnableIfAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_begin<clang::EnableIfAttr>() const
Line
Count
Source
536
6.23M
  specific_attr_iterator<T> specific_attr_begin() const {
537
6.23M
    return specific_attr_iterator<T>(attr_begin());
538
6.23M
  }
clang::specific_attr_iterator<clang::OMPDeclareTargetDeclAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_begin<clang::OMPDeclareTargetDeclAttr>() const
Line
Count
Source
536
88.6k
  specific_attr_iterator<T> specific_attr_begin() const {
537
88.6k
    return specific_attr_iterator<T>(attr_begin());
538
88.6k
  }
clang::specific_attr_iterator<clang::AlignedAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_begin<clang::AlignedAttr>() const
Line
Count
Source
536
2.52M
  specific_attr_iterator<T> specific_attr_begin() const {
537
2.52M
    return specific_attr_iterator<T>(attr_begin());
538
2.52M
  }
clang::specific_attr_iterator<clang::NonNullAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_begin<clang::NonNullAttr>() const
Line
Count
Source
536
3.99M
  specific_attr_iterator<T> specific_attr_begin() const {
537
3.99M
    return specific_attr_iterator<T>(attr_begin());
538
3.99M
  }
clang::specific_attr_iterator<clang::PreferredNameAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_begin<clang::PreferredNameAttr>() const
Line
Count
Source
536
834k
  specific_attr_iterator<T> specific_attr_begin() const {
537
834k
    return specific_attr_iterator<T>(attr_begin());
538
834k
  }
clang::specific_attr_iterator<clang::FormatArgAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_begin<clang::FormatArgAttr>() const
Line
Count
Source
536
22
  specific_attr_iterator<T> specific_attr_begin() const {
537
22
    return specific_attr_iterator<T>(attr_begin());
538
22
  }
clang::specific_attr_iterator<clang::ArgumentWithTypeTagAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_begin<clang::ArgumentWithTypeTagAttr>() const
Line
Count
Source
536
3.81M
  specific_attr_iterator<T> specific_attr_begin() const {
537
3.81M
    return specific_attr_iterator<T>(attr_begin());
538
3.81M
  }
clang::specific_attr_iterator<clang::EnforceTCBAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_begin<clang::EnforceTCBAttr>() const
Line
Count
Source
536
115
  specific_attr_iterator<T> specific_attr_begin() const {
537
115
    return specific_attr_iterator<T>(attr_begin());
538
115
  }
clang::specific_attr_iterator<clang::EnforceTCBLeafAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_begin<clang::EnforceTCBLeafAttr>() const
Line
Count
Source
536
103
  specific_attr_iterator<T> specific_attr_begin() const {
537
103
    return specific_attr_iterator<T>(attr_begin());
538
103
  }
clang::specific_attr_iterator<clang::AnnotateAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_begin<clang::AnnotateAttr>() const
Line
Count
Source
536
8.90k
  specific_attr_iterator<T> specific_attr_begin() const {
537
8.90k
    return specific_attr_iterator<T>(attr_begin());
538
8.90k
  }
clang::specific_attr_iterator<clang::InheritableParamAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_begin<clang::InheritableParamAttr>() const
Line
Count
Source
536
5.07k
  specific_attr_iterator<T> specific_attr_begin() const {
537
5.07k
    return specific_attr_iterator<T>(attr_begin());
538
5.07k
  }
clang::specific_attr_iterator<clang::InheritableAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_begin<clang::InheritableAttr>() const
Line
Count
Source
536
387k
  specific_attr_iterator<T> specific_attr_begin() const {
537
387k
    return specific_attr_iterator<T>(attr_begin());
538
387k
  }
clang::specific_attr_iterator<clang::TypeTagForDatatypeAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_begin<clang::TypeTagForDatatypeAttr>() const
Line
Count
Source
536
102
  specific_attr_iterator<T> specific_attr_begin() const {
537
102
    return specific_attr_iterator<T>(attr_begin());
538
102
  }
clang::specific_attr_iterator<clang::BTFDeclTagAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_begin<clang::BTFDeclTagAttr>() const
Line
Count
Source
536
94
  specific_attr_iterator<T> specific_attr_begin() const {
537
94
    return specific_attr_iterator<T>(attr_begin());
538
94
  }
clang::specific_attr_iterator<clang::OwnershipAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_begin<clang::OwnershipAttr>() const
Line
Count
Source
536
2.34k
  specific_attr_iterator<T> specific_attr_begin() const {
537
2.34k
    return specific_attr_iterator<T>(attr_begin());
538
2.34k
  }
clang::specific_attr_iterator<clang::FormatAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_begin<clang::FormatAttr>() const
Line
Count
Source
536
4.13M
  specific_attr_iterator<T> specific_attr_begin() const {
537
4.13M
    return specific_attr_iterator<T>(attr_begin());
538
4.13M
  }
clang::specific_attr_iterator<clang::OMPDeclareVariantAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_begin<clang::OMPDeclareVariantAttr>() const
Line
Count
Source
536
2.61k
  specific_attr_iterator<T> specific_attr_begin() const {
537
2.61k
    return specific_attr_iterator<T>(attr_begin());
538
2.61k
  }
clang::specific_attr_iterator<clang::DiagnoseIfAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_begin<clang::DiagnoseIfAttr>() const
Line
Count
Source
536
130M
  specific_attr_iterator<T> specific_attr_begin() const {
537
130M
    return specific_attr_iterator<T>(attr_begin());
538
130M
  }
clang::specific_attr_iterator<clang::PtGuardedByAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_begin<clang::PtGuardedByAttr>() const
Line
Count
Source
536
462
  specific_attr_iterator<T> specific_attr_begin() const {
537
462
    return specific_attr_iterator<T>(attr_begin());
538
462
  }
clang::specific_attr_iterator<clang::GuardedByAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_begin<clang::GuardedByAttr>() const
Line
Count
Source
536
2.66k
  specific_attr_iterator<T> specific_attr_begin() const {
537
2.66k
    return specific_attr_iterator<T>(attr_begin());
538
2.66k
  }
clang::specific_attr_iterator<clang::AssumptionAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_begin<clang::AssumptionAttr>() const
Line
Count
Source
536
677k
  specific_attr_iterator<T> specific_attr_begin() const {
537
677k
    return specific_attr_iterator<T>(attr_begin());
538
677k
  }
clang::specific_attr_iterator<clang::OMPDeclareSimdDeclAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_begin<clang::OMPDeclareSimdDeclAttr>() const
Line
Count
Source
536
229
  specific_attr_iterator<T> specific_attr_begin() const {
537
229
    return specific_attr_iterator<T>(attr_begin());
538
229
  }
clang::specific_attr_iterator<clang::NoSanitizeAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_begin<clang::NoSanitizeAttr>() const
Line
Count
Source
536
305k
  specific_attr_iterator<T> specific_attr_begin() const {
537
305k
    return specific_attr_iterator<T>(attr_begin());
538
305k
  }
clang::specific_attr_iterator<clang::AvailabilityAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_begin<clang::AvailabilityAttr>() const
Line
Count
Source
536
65
  specific_attr_iterator<T> specific_attr_begin() const {
537
65
    return specific_attr_iterator<T>(attr_begin());
538
65
  }
539
540
  template <typename T>
541
153M
  specific_attr_iterator<T> specific_attr_end() const {
542
153M
    return specific_attr_iterator<T>(attr_end());
543
153M
  }
clang::specific_attr_iterator<clang::EnableIfAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_end<clang::EnableIfAttr>() const
Line
Count
Source
541
6.23M
  specific_attr_iterator<T> specific_attr_end() const {
542
6.23M
    return specific_attr_iterator<T>(attr_end());
543
6.23M
  }
clang::specific_attr_iterator<clang::OMPDeclareTargetDeclAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_end<clang::OMPDeclareTargetDeclAttr>() const
Line
Count
Source
541
88.6k
  specific_attr_iterator<T> specific_attr_end() const {
542
88.6k
    return specific_attr_iterator<T>(attr_end());
543
88.6k
  }
clang::specific_attr_iterator<clang::AlignedAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_end<clang::AlignedAttr>() const
Line
Count
Source
541
2.52M
  specific_attr_iterator<T> specific_attr_end() const {
542
2.52M
    return specific_attr_iterator<T>(attr_end());
543
2.52M
  }
clang::specific_attr_iterator<clang::NonNullAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_end<clang::NonNullAttr>() const
Line
Count
Source
541
3.99M
  specific_attr_iterator<T> specific_attr_end() const {
542
3.99M
    return specific_attr_iterator<T>(attr_end());
543
3.99M
  }
clang::specific_attr_iterator<clang::PreferredNameAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_end<clang::PreferredNameAttr>() const
Line
Count
Source
541
834k
  specific_attr_iterator<T> specific_attr_end() const {
542
834k
    return specific_attr_iterator<T>(attr_end());
543
834k
  }
clang::specific_attr_iterator<clang::FormatArgAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_end<clang::FormatArgAttr>() const
Line
Count
Source
541
22
  specific_attr_iterator<T> specific_attr_end() const {
542
22
    return specific_attr_iterator<T>(attr_end());
543
22
  }
clang::specific_attr_iterator<clang::ArgumentWithTypeTagAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_end<clang::ArgumentWithTypeTagAttr>() const
Line
Count
Source
541
3.81M
  specific_attr_iterator<T> specific_attr_end() const {
542
3.81M
    return specific_attr_iterator<T>(attr_end());
543
3.81M
  }
clang::specific_attr_iterator<clang::EnforceTCBAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_end<clang::EnforceTCBAttr>() const
Line
Count
Source
541
115
  specific_attr_iterator<T> specific_attr_end() const {
542
115
    return specific_attr_iterator<T>(attr_end());
543
115
  }
clang::specific_attr_iterator<clang::EnforceTCBLeafAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_end<clang::EnforceTCBLeafAttr>() const
Line
Count
Source
541
103
  specific_attr_iterator<T> specific_attr_end() const {
542
103
    return specific_attr_iterator<T>(attr_end());
543
103
  }
clang::specific_attr_iterator<clang::AnnotateAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_end<clang::AnnotateAttr>() const
Line
Count
Source
541
8.90k
  specific_attr_iterator<T> specific_attr_end() const {
542
8.90k
    return specific_attr_iterator<T>(attr_end());
543
8.90k
  }
clang::specific_attr_iterator<clang::InheritableParamAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_end<clang::InheritableParamAttr>() const
Line
Count
Source
541
5.07k
  specific_attr_iterator<T> specific_attr_end() const {
542
5.07k
    return specific_attr_iterator<T>(attr_end());
543
5.07k
  }
clang::specific_attr_iterator<clang::InheritableAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_end<clang::InheritableAttr>() const
Line
Count
Source
541
387k
  specific_attr_iterator<T> specific_attr_end() const {
542
387k
    return specific_attr_iterator<T>(attr_end());
543
387k
  }
clang::specific_attr_iterator<clang::TypeTagForDatatypeAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_end<clang::TypeTagForDatatypeAttr>() const
Line
Count
Source
541
102
  specific_attr_iterator<T> specific_attr_end() const {
542
102
    return specific_attr_iterator<T>(attr_end());
543
102
  }
clang::specific_attr_iterator<clang::BTFDeclTagAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_end<clang::BTFDeclTagAttr>() const
Line
Count
Source
541
94
  specific_attr_iterator<T> specific_attr_end() const {
542
94
    return specific_attr_iterator<T>(attr_end());
543
94
  }
clang::specific_attr_iterator<clang::OwnershipAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_end<clang::OwnershipAttr>() const
Line
Count
Source
541
2.34k
  specific_attr_iterator<T> specific_attr_end() const {
542
2.34k
    return specific_attr_iterator<T>(attr_end());
543
2.34k
  }
clang::specific_attr_iterator<clang::FormatAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_end<clang::FormatAttr>() const
Line
Count
Source
541
4.13M
  specific_attr_iterator<T> specific_attr_end() const {
542
4.13M
    return specific_attr_iterator<T>(attr_end());
543
4.13M
  }
clang::specific_attr_iterator<clang::OMPDeclareVariantAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_end<clang::OMPDeclareVariantAttr>() const
Line
Count
Source
541
2.60k
  specific_attr_iterator<T> specific_attr_end() const {
542
2.60k
    return specific_attr_iterator<T>(attr_end());
543
2.60k
  }
clang::specific_attr_iterator<clang::DiagnoseIfAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_end<clang::DiagnoseIfAttr>() const
Line
Count
Source
541
130M
  specific_attr_iterator<T> specific_attr_end() const {
542
130M
    return specific_attr_iterator<T>(attr_end());
543
130M
  }
clang::specific_attr_iterator<clang::PtGuardedByAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_end<clang::PtGuardedByAttr>() const
Line
Count
Source
541
462
  specific_attr_iterator<T> specific_attr_end() const {
542
462
    return specific_attr_iterator<T>(attr_end());
543
462
  }
clang::specific_attr_iterator<clang::GuardedByAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_end<clang::GuardedByAttr>() const
Line
Count
Source
541
2.66k
  specific_attr_iterator<T> specific_attr_end() const {
542
2.66k
    return specific_attr_iterator<T>(attr_end());
543
2.66k
  }
clang::specific_attr_iterator<clang::AssumptionAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_end<clang::AssumptionAttr>() const
Line
Count
Source
541
677k
  specific_attr_iterator<T> specific_attr_end() const {
542
677k
    return specific_attr_iterator<T>(attr_end());
543
677k
  }
clang::specific_attr_iterator<clang::OMPDeclareSimdDeclAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_end<clang::OMPDeclareSimdDeclAttr>() const
Line
Count
Source
541
229
  specific_attr_iterator<T> specific_attr_end() const {
542
229
    return specific_attr_iterator<T>(attr_end());
543
229
  }
clang::specific_attr_iterator<clang::NoSanitizeAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_end<clang::NoSanitizeAttr>() const
Line
Count
Source
541
305k
  specific_attr_iterator<T> specific_attr_end() const {
542
305k
    return specific_attr_iterator<T>(attr_end());
543
305k
  }
clang::specific_attr_iterator<clang::AvailabilityAttr, llvm::SmallVector<clang::Attr*, 4u> > clang::Decl::specific_attr_end<clang::AvailabilityAttr>() const
Line
Count
Source
541
65
  specific_attr_iterator<T> specific_attr_end() const {
542
65
    return specific_attr_iterator<T>(attr_end());
543
65
  }
544
545
1.10G
  template<typename T> T *getAttr() const {
546
1.10G
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())729M
:
nullptr373M
;
547
1.10G
  }
clang::TargetAttr* clang::Decl::getAttr<clang::TargetAttr>() const
Line
Count
Source
545
27.5M
  template<typename T> T *getAttr() const {
546
27.5M
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())24.1M
:
nullptr3.38M
;
547
27.5M
  }
clang::CPUSpecificAttr* clang::Decl::getAttr<clang::CPUSpecificAttr>() const
Line
Count
Source
545
28.6M
  template<typename T> T *getAttr() const {
546
28.6M
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())25.3M
:
nullptr3.29M
;
547
28.6M
  }
clang::TargetClonesAttr* clang::Decl::getAttr<clang::TargetClonesAttr>() const
Line
Count
Source
545
28.6M
  template<typename T> T *getAttr() const {
546
28.6M
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())25.3M
:
nullptr3.29M
;
547
28.6M
  }
clang::CUDADeviceAttr* clang::Decl::getAttr<clang::CUDADeviceAttr>() const
Line
Count
Source
545
29.0k
  template<typename T> T *getAttr() const {
546
29.0k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())24.0k
:
nullptr4.94k
;
547
29.0k
  }
clang::CUDAConstantAttr* clang::Decl::getAttr<clang::CUDAConstantAttr>() const
Line
Count
Source
545
1.79k
  template<typename T> T *getAttr() const {
546
1.79k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())1.41k
:
nullptr375
;
547
1.79k
  }
clang::TypeVisibilityAttr* clang::Decl::getAttr<clang::TypeVisibilityAttr>() const
Line
Count
Source
545
1.50M
  template<typename T> T *getAttr() const {
546
1.50M
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())637k
:
nullptr867k
;
547
1.50M
  }
clang::VisibilityAttr* clang::Decl::getAttr<clang::VisibilityAttr>() const
Line
Count
Source
545
5.60M
  template<typename T> T *getAttr() const {
546
5.60M
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())1.19M
:
nullptr4.40M
;
547
5.60M
  }
clang::SelectAnyAttr* clang::Decl::getAttr<clang::SelectAnyAttr>() const
Line
Count
Source
545
45.9M
  template<typename T> T *getAttr() const {
546
45.9M
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())26.7M
:
nullptr19.2M
;
547
45.9M
  }
clang::ArmBuiltinAliasAttr* clang::Decl::getAttr<clang::ArmBuiltinAliasAttr>() const
Line
Count
Source
545
125M
  template<typename T> T *getAttr() const {
546
125M
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())112M
:
nullptr13.1M
;
547
125M
  }
clang::BuiltinAliasAttr* clang::Decl::getAttr<clang::BuiltinAliasAttr>() const
Line
Count
Source
545
61.0M
  template<typename T> T *getAttr() const {
546
61.0M
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())47.9M
:
nullptr13.1M
;
547
61.0M
  }
clang::BuiltinAttr* clang::Decl::getAttr<clang::BuiltinAttr>() const
Line
Count
Source
545
61.0M
  template<typename T> T *getAttr() const {
546
61.0M
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())47.9M
:
nullptr13.1M
;
547
61.0M
  }
clang::EnumExtensibilityAttr* clang::Decl::getAttr<clang::EnumExtensibilityAttr>() const
Line
Count
Source
545
475k
  template<typename T> T *getAttr() const {
546
475k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())102k
:
nullptr373k
;
547
475k
  }
clang::ExternalSourceSymbolAttr* clang::Decl::getAttr<clang::ExternalSourceSymbolAttr>() const
Line
Count
Source
545
63.2k
  template<typename T> T *getAttr() const {
546
63.2k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())718
:
nullptr62.5k
;
547
63.2k
  }
clang::AliasAttr* clang::Decl::getAttr<clang::AliasAttr>() const
Line
Count
Source
545
5.17M
  template<typename T> T *getAttr() const {
546
5.17M
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())3.44M
:
nullptr1.73M
;
547
5.17M
  }
clang::IFuncAttr* clang::Decl::getAttr<clang::IFuncAttr>() const
Line
Count
Source
545
4.07M
  template<typename T> T *getAttr() const {
546
4.07M
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())3.43M
:
nullptr637k
;
547
4.07M
  }
Unexecuted instantiation: clang::LoaderUninitializedAttr* clang::Decl::getAttr<clang::LoaderUninitializedAttr>() const
clang::UuidAttr* clang::Decl::getAttr<clang::UuidAttr>() const
Line
Count
Source
545
368
  template<typename T> T *getAttr() const {
546
368
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())215
:
nullptr153
;
547
368
  }
clang::ObjCMethodFamilyAttr* clang::Decl::getAttr<clang::ObjCMethodFamilyAttr>() const
Line
Count
Source
545
207k
  template<typename T> T *getAttr() const {
546
207k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())100k
:
nullptr107k
;
547
207k
  }
clang::ObjCRuntimeNameAttr* clang::Decl::getAttr<clang::ObjCRuntimeNameAttr>() const
Line
Count
Source
545
22.8k
  template<typename T> T *getAttr() const {
546
22.8k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())2.46k
:
nullptr20.3k
;
547
22.8k
  }
clang::WarnUnusedResultAttr* clang::Decl::getAttr<clang::WarnUnusedResultAttr>() const
Line
Count
Source
545
571k
  template<typename T> T *getAttr() const {
546
571k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())264k
:
nullptr307k
;
547
571k
  }
clang::AllocSizeAttr* clang::Decl::getAttr<clang::AllocSizeAttr>() const
Line
Count
Source
545
684k
  template<typename T> T *getAttr() const {
546
684k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())286k
:
nullptr397k
;
547
684k
  }
clang::AbiTagAttr* clang::Decl::getAttr<clang::AbiTagAttr>() const
Line
Count
Source
545
5.36M
  template<typename T> T *getAttr() const {
546
5.36M
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())2.71M
:
nullptr2.65M
;
547
5.36M
  }
clang::PassObjectSizeAttr* clang::Decl::getAttr<clang::PassObjectSizeAttr>() const
Line
Count
Source
545
10.1M
  template<typename T> T *getAttr() const {
546
10.1M
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())4.60k
:
nullptr10.1M
;
547
10.1M
  }
clang::AsmLabelAttr* clang::Decl::getAttr<clang::AsmLabelAttr>() const
Line
Count
Source
545
1.82M
  template<typename T> T *getAttr() const {
546
1.82M
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())1.25M
:
nullptr569k
;
547
1.82M
  }
clang::MSInheritanceAttr* clang::Decl::getAttr<clang::MSInheritanceAttr>() const
Line
Count
Source
545
2.24M
  template<typename T> T *getAttr() const {
546
2.24M
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())684k
:
nullptr1.55M
;
547
2.24M
  }
clang::MSVtorDispAttr* clang::Decl::getAttr<clang::MSVtorDispAttr>() const
Line
Count
Source
545
1.71k
  template<typename T> T *getAttr() const {
546
1.71k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())168
:
nullptr1.54k
;
547
1.71k
  }
clang::MaxFieldAlignmentAttr* clang::Decl::getAttr<clang::MaxFieldAlignmentAttr>() const
Line
Count
Source
545
421k
  template<typename T> T *getAttr() const {
546
421k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())98.1k
:
nullptr323k
;
547
421k
  }
clang::LayoutVersionAttr* clang::Decl::getAttr<clang::LayoutVersionAttr>() const
Line
Count
Source
545
6.09k
  template<typename T> T *getAttr() const {
546
6.09k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())886
:
nullptr5.20k
;
547
6.09k
  }
clang::AvailabilityAttr* clang::Decl::getAttr<clang::AvailabilityAttr>() const
Line
Count
Source
545
26.6M
  template<typename T> T *getAttr() const {
546
26.6M
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())23.3M
:
nullptr3.33M
;
547
26.6M
  }
clang::OMPThreadPrivateDeclAttr* clang::Decl::getAttr<clang::OMPThreadPrivateDeclAttr>() const
Line
Count
Source
545
78
  template<typename T> T *getAttr() const {
546
78
    return hasAttrs() ? getSpecificAttr<T>(getAttrs()) : 
nullptr0
;
547
78
  }
clang::OMPAllocateDeclAttr* clang::Decl::getAttr<clang::OMPAllocateDeclAttr>() const
Line
Count
Source
545
24.8k
  template<typename T> T *getAttr() const {
546
24.8k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())3.74k
:
nullptr21.0k
;
547
24.8k
  }
Unexecuted instantiation: clang::OMPDeclareTargetDeclAttr* clang::Decl::getAttr<clang::OMPDeclareTargetDeclAttr>() const
clang::NoDestroyAttr* clang::Decl::getAttr<clang::NoDestroyAttr>() const
Line
Count
Source
545
36
  template<typename T> T *getAttr() const {
546
36
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())4
:
nullptr32
;
547
36
  }
clang::NotTailCalledAttr* clang::Decl::getAttr<clang::NotTailCalledAttr>() const
Line
Count
Source
545
18.8M
  template<typename T> T *getAttr() const {
546
18.8M
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())53.3k
:
nullptr18.8M
;
547
18.8M
  }
clang::CFUnknownTransferAttr* clang::Decl::getAttr<clang::CFUnknownTransferAttr>() const
Line
Count
Source
545
888
  template<typename T> T *getAttr() const {
546
888
    return hasAttrs() ? getSpecificAttr<T>(getAttrs()) : 
nullptr0
;
547
888
  }
clang::CFAuditedTransferAttr* clang::Decl::getAttr<clang::CFAuditedTransferAttr>() const
Line
Count
Source
545
1
  template<typename T> T *getAttr() const {
546
1
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())0
: nullptr;
547
1
  }
clang::CPUDispatchAttr* clang::Decl::getAttr<clang::CPUDispatchAttr>() const
Line
Count
Source
545
27.9M
  template<typename T> T *getAttr() const {
546
27.9M
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())25.1M
:
nullptr2.86M
;
547
27.9M
  }
clang::CUDASharedAttr* clang::Decl::getAttr<clang::CUDASharedAttr>() const
Line
Count
Source
545
279
  template<typename T> T *getAttr() const {
546
279
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())31
:
nullptr248
;
547
279
  }
clang::HIPManagedAttr* clang::Decl::getAttr<clang::HIPManagedAttr>() const
Line
Count
Source
545
329
  template<typename T> T *getAttr() const {
546
329
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())30
:
nullptr299
;
547
329
  }
clang::CUDAGlobalAttr* clang::Decl::getAttr<clang::CUDAGlobalAttr>() const
Line
Count
Source
545
6.15k
  template<typename T> T *getAttr() const {
546
6.15k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())769
:
nullptr5.39k
;
547
6.15k
  }
clang::CUDADeviceBuiltinTextureTypeAttr* clang::Decl::getAttr<clang::CUDADeviceBuiltinTextureTypeAttr>() const
Line
Count
Source
545
14
  template<typename T> T *getAttr() const {
546
14
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())0
: nullptr;
547
14
  }
clang::CUDADeviceBuiltinSurfaceTypeAttr* clang::Decl::getAttr<clang::CUDADeviceBuiltinSurfaceTypeAttr>() const
Line
Count
Source
545
12
  template<typename T> T *getAttr() const {
546
12
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())0
: nullptr;
547
12
  }
clang::CUDAHostAttr* clang::Decl::getAttr<clang::CUDAHostAttr>() const
Line
Count
Source
545
1.87k
  template<typename T> T *getAttr() const {
546
1.87k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())1.55k
:
nullptr324
;
547
1.87k
  }
clang::HotAttr* clang::Decl::getAttr<clang::HotAttr>() const
Line
Count
Source
545
3.70k
  template<typename T> T *getAttr() const {
546
3.70k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())577
:
nullptr3.12k
;
547
3.70k
  }
clang::InternalLinkageAttr* clang::Decl::getAttr<clang::InternalLinkageAttr>() const
Line
Count
Source
545
434k
  template<typename T> T *getAttr() const {
546
434k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())69.8k
:
nullptr365k
;
547
434k
  }
clang::NakedAttr* clang::Decl::getAttr<clang::NakedAttr>() const
Line
Count
Source
545
432
  template<typename T> T *getAttr() const {
546
432
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())347
:
nullptr85
;
547
432
  }
clang::ColdAttr* clang::Decl::getAttr<clang::ColdAttr>() const
Line
Count
Source
545
13
  template<typename T> T *getAttr() const {
546
13
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())3
:
nullptr10
;
547
13
  }
clang::CommonAttr* clang::Decl::getAttr<clang::CommonAttr>() const
Line
Count
Source
545
1.18k
  template<typename T> T *getAttr() const {
546
1.18k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())1.14k
:
nullptr42
;
547
1.18k
  }
clang::Mips16Attr* clang::Decl::getAttr<clang::Mips16Attr>() const
Line
Count
Source
545
29
  template<typename T> T *getAttr() const {
546
29
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())4
:
nullptr25
;
547
29
  }
clang::MipsInterruptAttr* clang::Decl::getAttr<clang::MipsInterruptAttr>() const
Line
Count
Source
545
376
  template<typename T> T *getAttr() const {
546
376
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())69
:
nullptr307
;
547
376
  }
clang::MicroMipsAttr* clang::Decl::getAttr<clang::MicroMipsAttr>() const
Line
Count
Source
545
12
  template<typename T> T *getAttr() const {
546
12
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())2
:
nullptr10
;
547
12
  }
clang::MipsShortCallAttr* clang::Decl::getAttr<clang::MipsShortCallAttr>() const
Line
Count
Source
545
20
  template<typename T> T *getAttr() const {
546
20
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())4
:
nullptr16
;
547
20
  }
clang::MipsLongCallAttr* clang::Decl::getAttr<clang::MipsLongCallAttr>() const
Line
Count
Source
545
20
  template<typename T> T *getAttr() const {
546
20
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())4
:
nullptr16
;
547
20
  }
clang::DisableTailCallsAttr* clang::Decl::getAttr<clang::DisableTailCallsAttr>() const
Line
Count
Source
545
55
  template<typename T> T *getAttr() const {
546
55
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())3
:
nullptr52
;
547
55
  }
clang::AlwaysDestroyAttr* clang::Decl::getAttr<clang::AlwaysDestroyAttr>() const
Line
Count
Source
545
50
  template<typename T> T *getAttr() const {
546
50
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())4
:
nullptr46
;
547
50
  }
clang::RandomizeLayoutAttr* clang::Decl::getAttr<clang::RandomizeLayoutAttr>() const
Line
Count
Source
545
18
  template<typename T> T *getAttr() const {
546
18
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())2
:
nullptr16
;
547
18
  }
clang::SpeculativeLoadHardeningAttr* clang::Decl::getAttr<clang::SpeculativeLoadHardeningAttr>() const
Line
Count
Source
545
30
  template<typename T> T *getAttr() const {
546
30
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())3
:
nullptr27
;
547
30
  }
clang::AlwaysInlineAttr* clang::Decl::getAttr<clang::AlwaysInlineAttr>() const
Line
Count
Source
545
638
  template<typename T> T *getAttr() const {
546
638
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())545
:
nullptr93
;
547
638
  }
clang::PointerAttr* clang::Decl::getAttr<clang::PointerAttr>() const
Line
Count
Source
545
5.42k
  template<typename T> T *getAttr() const {
546
5.42k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())5.36k
:
nullptr62
;
547
5.42k
  }
clang::OwnerAttr* clang::Decl::getAttr<clang::OwnerAttr>() const
Line
Count
Source
545
1.30k
  template<typename T> T *getAttr() const {
546
1.30k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())1.25k
:
nullptr50
;
547
1.30k
  }
clang::NoRandomizeLayoutAttr* clang::Decl::getAttr<clang::NoRandomizeLayoutAttr>() const
Line
Count
Source
545
70
  template<typename T> T *getAttr() const {
546
70
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())14
:
nullptr56
;
547
70
  }
clang::NoSpeculativeLoadHardeningAttr* clang::Decl::getAttr<clang::NoSpeculativeLoadHardeningAttr>() const
Line
Count
Source
545
30
  template<typename T> T *getAttr() const {
546
30
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())3
:
nullptr27
;
547
30
  }
clang::OMPDeclareVariantAttr* clang::Decl::getAttr<clang::OMPDeclareVariantAttr>() const
Line
Count
Source
545
599
  template<typename T> T *getAttr() const {
546
599
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())399
:
nullptr200
;
547
599
  }
clang::SectionAttr* clang::Decl::getAttr<clang::SectionAttr>() const
Line
Count
Source
545
1.25M
  template<typename T> T *getAttr() const {
546
1.25M
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())346k
:
nullptr908k
;
547
1.25M
  }
clang::DeprecatedAttr* clang::Decl::getAttr<clang::DeprecatedAttr>() const
Line
Count
Source
545
79.5k
  template<typename T> T *getAttr() const {
546
79.5k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())79.5k
:
nullptr69
;
547
79.5k
  }
clang::UnavailableAttr* clang::Decl::getAttr<clang::UnavailableAttr>() const
Line
Count
Source
545
479
  template<typename T> T *getAttr() const {
546
479
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())416
:
nullptr63
;
547
479
  }
clang::FormatArgAttr* clang::Decl::getAttr<clang::FormatArgAttr>() const
Line
Count
Source
545
13
  template<typename T> T *getAttr() const {
546
13
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())12
:
nullptr1
;
547
13
  }
clang::TypeTagForDatatypeAttr* clang::Decl::getAttr<clang::TypeTagForDatatypeAttr>() const
Line
Count
Source
545
274
  template<typename T> T *getAttr() const {
546
274
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())261
:
nullptr13
;
547
274
  }
clang::DiagnoseAsBuiltinAttr* clang::Decl::getAttr<clang::DiagnoseAsBuiltinAttr>() const
Line
Count
Source
545
3.30M
  template<typename T> T *getAttr() const {
546
3.30M
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())2.82M
:
nullptr476k
;
547
3.30M
  }
clang::AlignedAttr* clang::Decl::getAttr<clang::AlignedAttr>() const
Line
Count
Source
545
32
  template<typename T> T *getAttr() const {
546
32
    return hasAttrs() ? getSpecificAttr<T>(getAttrs()) : 
nullptr0
;
547
32
  }
clang::AllocAlignAttr* clang::Decl::getAttr<clang::AllocAlignAttr>() const
Line
Count
Source
545
342k
  template<typename T> T *getAttr() const {
546
342k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())169k
:
nullptr173k
;
547
342k
  }
clang::ReturnsNonNullAttr* clang::Decl::getAttr<clang::ReturnsNonNullAttr>() const
Line
Count
Source
545
2.35k
  template<typename T> T *getAttr() const {
546
2.35k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())1.41k
:
nullptr934
;
547
2.35k
  }
clang::NonNullAttr* clang::Decl::getAttr<clang::NonNullAttr>() const
Line
Count
Source
545
72.8k
  template<typename T> T *getAttr() const {
546
72.8k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())384
:
nullptr72.4k
;
547
72.8k
  }
clang::SentinelAttr* clang::Decl::getAttr<clang::SentinelAttr>() const
Line
Count
Source
545
4.09M
  template<typename T> T *getAttr() const {
546
4.09M
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())3.14M
:
nullptr948k
;
547
4.09M
  }
clang::DLLImportAttr* clang::Decl::getAttr<clang::DLLImportAttr>() const
Line
Count
Source
545
32.9M
  template<typename T> T *getAttr() const {
546
32.9M
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())25.5M
:
nullptr7.39M
;
547
32.9M
  }
clang::DLLExportAttr* clang::Decl::getAttr<clang::DLLExportAttr>() const
Line
Count
Source
545
32.9M
  template<typename T> T *getAttr() const {
546
32.9M
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())25.5M
:
nullptr7.39M
;
547
32.9M
  }
clang::WeakAttr* clang::Decl::getAttr<clang::WeakAttr>() const
Line
Count
Source
545
27.6M
  template<typename T> T *getAttr() const {
546
27.6M
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())24.0M
:
nullptr3.57M
;
547
27.6M
  }
clang::WeakRefAttr* clang::Decl::getAttr<clang::WeakRefAttr>() const
Line
Count
Source
545
27.6M
  template<typename T> T *getAttr() const {
546
27.6M
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())24.0M
:
nullptr3.57M
;
547
27.6M
  }
clang::UsedAttr* clang::Decl::getAttr<clang::UsedAttr>() const
Line
Count
Source
545
3.52M
  template<typename T> T *getAttr() const {
546
3.52M
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())1.12M
:
nullptr2.39M
;
547
3.52M
  }
clang::RetainAttr* clang::Decl::getAttr<clang::RetainAttr>() const
Line
Count
Source
545
3.52M
  template<typename T> T *getAttr() const {
546
3.52M
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())1.12M
:
nullptr2.39M
;
547
3.52M
  }
clang::ConstInitAttr* clang::Decl::getAttr<clang::ConstInitAttr>() const
Line
Count
Source
545
823k
  template<typename T> T *getAttr() const {
546
823k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())560k
:
nullptr262k
;
547
823k
  }
clang::CodeSegAttr* clang::Decl::getAttr<clang::CodeSegAttr>() const
Line
Count
Source
545
3.66M
  template<typename T> T *getAttr() const {
546
3.66M
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())1.47M
:
nullptr2.18M
;
547
3.66M
  }
clang::CarriesDependencyAttr* clang::Decl::getAttr<clang::CarriesDependencyAttr>() const
Line
Count
Source
545
954k
  template<typename T> T *getAttr() const {
546
954k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())51.7k
:
nullptr903k
;
547
954k
  }
clang::ErrorAttr* clang::Decl::getAttr<clang::ErrorAttr>() const
Line
Count
Source
545
675k
  template<typename T> T *getAttr() const {
546
675k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())177k
:
nullptr497k
;
547
675k
  }
clang::OverloadableAttr* clang::Decl::getAttr<clang::OverloadableAttr>() const
Line
Count
Source
545
4.58M
  template<typename T> T *getAttr() const {
546
4.58M
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())4.58M
:
nullptr19
;
547
4.58M
  }
clang::AnyX86NoCallerSavedRegistersAttr* clang::Decl::getAttr<clang::AnyX86NoCallerSavedRegistersAttr>() const
Line
Count
Source
545
1
  template<typename T> T *getAttr() const {
546
1
    return hasAttrs() ? getSpecificAttr<T>(getAttrs()) : 
nullptr0
;
547
1
  }
clang::CXX11NoReturnAttr* clang::Decl::getAttr<clang::CXX11NoReturnAttr>() const
Line
Count
Source
545
285k
  template<typename T> T *getAttr() const {
546
285k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())46.5k
:
nullptr238k
;
547
285k
  }
clang::NoBuiltinAttr* clang::Decl::getAttr<clang::NoBuiltinAttr>() const
Line
Count
Source
545
24.9M
  template<typename T> T *getAttr() const {
546
24.9M
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())23.1M
:
nullptr1.72M
;
547
24.9M
  }
clang::DLLExportStaticLocalAttr* clang::Decl::getAttr<clang::DLLExportStaticLocalAttr>() const
Line
Count
Source
545
5
  template<typename T> T *getAttr() const {
546
5
    return hasAttrs() ? getSpecificAttr<T>(getAttrs()) : 
nullptr0
;
547
5
  }
clang::DLLImportStaticLocalAttr* clang::Decl::getAttr<clang::DLLImportStaticLocalAttr>() const
Line
Count
Source
545
1
  template<typename T> T *getAttr() const {
546
1
    return hasAttrs() ? getSpecificAttr<T>(getAttrs()) : 
nullptr0
;
547
1
  }
clang::RISCVInterruptAttr* clang::Decl::getAttr<clang::RISCVInterruptAttr>() const
Line
Count
Source
545
1.82k
  template<typename T> T *getAttr() const {
546
1.82k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())48
:
nullptr1.77k
;
547
1.82k
  }
clang::VecReturnAttr* clang::Decl::getAttr<clang::VecReturnAttr>() const
Line
Count
Source
545
23
  template<typename T> T *getAttr() const {
546
23
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())1
:
nullptr22
;
547
23
  }
clang::MinVectorWidthAttr* clang::Decl::getAttr<clang::MinVectorWidthAttr>() const
Line
Count
Source
545
1.48M
  template<typename T> T *getAttr() const {
546
1.48M
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())1.28M
:
nullptr200k
;
547
1.48M
  }
clang::SwiftBridgeAttr* clang::Decl::getAttr<clang::SwiftBridgeAttr>() const
Line
Count
Source
545
9
  template<typename T> T *getAttr() const {
546
9
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())2
:
nullptr7
;
547
9
  }
clang::SwiftAsyncErrorAttr* clang::Decl::getAttr<clang::SwiftAsyncErrorAttr>() const
Line
Count
Source
545
33
  template<typename T> T *getAttr() const {
546
33
    return hasAttrs() ? getSpecificAttr<T>(getAttrs()) : 
nullptr0
;
547
33
  }
clang::SwiftAsyncAttr* clang::Decl::getAttr<clang::SwiftAsyncAttr>() const
Line
Count
Source
545
6.10k
  template<typename T> T *getAttr() const {
546
6.10k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())255
:
nullptr5.85k
;
547
6.10k
  }
clang::OpenCLIntelReqdSubGroupSizeAttr* clang::Decl::getAttr<clang::OpenCLIntelReqdSubGroupSizeAttr>() const
Line
Count
Source
545
27.7M
  template<typename T> T *getAttr() const {
546
27.7M
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())25.8M
:
nullptr1.92M
;
547
27.7M
  }
clang::VecTypeHintAttr* clang::Decl::getAttr<clang::VecTypeHintAttr>() const
Line
Count
Source
545
27.7M
  template<typename T> T *getAttr() const {
546
27.7M
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())25.8M
:
nullptr1.92M
;
547
27.7M
  }
clang::OptimizeNoneAttr* clang::Decl::getAttr<clang::OptimizeNoneAttr>() const
Line
Count
Source
545
18.8M
  template<typename T> T *getAttr() const {
546
18.8M
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())53.3k
:
nullptr18.8M
;
547
18.8M
  }
clang::SwiftNameAttr* clang::Decl::getAttr<clang::SwiftNameAttr>() const
Line
Count
Source
545
11
  template<typename T> T *getAttr() const {
546
11
    return hasAttrs() ? getSpecificAttr<T>(getAttrs()) : 
nullptr0
;
547
11
  }
clang::MinSizeAttr* clang::Decl::getAttr<clang::MinSizeAttr>() const
Line
Count
Source
545
105
  template<typename T> T *getAttr() const {
546
105
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())16
:
nullptr89
;
547
105
  }
clang::HLSLNumThreadsAttr* clang::Decl::getAttr<clang::HLSLNumThreadsAttr>() const
Line
Count
Source
545
48
  template<typename T> T *getAttr() const {
546
48
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())13
:
nullptr35
;
547
48
  }
clang::HLSLShaderAttr* clang::Decl::getAttr<clang::HLSLShaderAttr>() const
Line
Count
Source
545
13
  template<typename T> T *getAttr() const {
546
13
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())4
:
nullptr9
;
547
13
  }
clang::WebAssemblyImportModuleAttr* clang::Decl::getAttr<clang::WebAssemblyImportModuleAttr>() const
Line
Count
Source
545
1.05k
  template<typename T> T *getAttr() const {
546
1.05k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())14
:
nullptr1.04k
;
547
1.05k
  }
clang::WebAssemblyImportNameAttr* clang::Decl::getAttr<clang::WebAssemblyImportNameAttr>() const
Line
Count
Source
545
1.05k
  template<typename T> T *getAttr() const {
546
1.05k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())14
:
nullptr1.04k
;
547
1.05k
  }
clang::ReqdWorkGroupSizeAttr* clang::Decl::getAttr<clang::ReqdWorkGroupSizeAttr>() const
Line
Count
Source
545
27.7M
  template<typename T> T *getAttr() const {
546
27.7M
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())25.8M
:
nullptr1.92M
;
547
27.7M
  }
clang::WorkGroupSizeHintAttr* clang::Decl::getAttr<clang::WorkGroupSizeHintAttr>() const
Line
Count
Source
545
27.7M
  template<typename T> T *getAttr() const {
546
27.7M
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())25.8M
:
nullptr1.92M
;
547
27.7M
  }
clang::AMDGPUFlatWorkGroupSizeAttr* clang::Decl::getAttr<clang::AMDGPUFlatWorkGroupSizeAttr>() const
Line
Count
Source
545
27.7M
  template<typename T> T *getAttr() const {
546
27.7M
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())25.8M
:
nullptr1.92M
;
547
27.7M
  }
clang::AMDGPUWavesPerEUAttr* clang::Decl::getAttr<clang::AMDGPUWavesPerEUAttr>() const
Line
Count
Source
545
27.7M
  template<typename T> T *getAttr() const {
546
27.7M
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())25.8M
:
nullptr1.92M
;
547
27.7M
  }
clang::AMDGPUNumSGPRAttr* clang::Decl::getAttr<clang::AMDGPUNumSGPRAttr>() const
Line
Count
Source
545
27.7M
  template<typename T> T *getAttr() const {
546
27.7M
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())25.8M
:
nullptr1.92M
;
547
27.7M
  }
clang::AMDGPUNumVGPRAttr* clang::Decl::getAttr<clang::AMDGPUNumVGPRAttr>() const
Line
Count
Source
545
27.7M
  template<typename T> T *getAttr() const {
546
27.7M
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())25.8M
:
nullptr1.92M
;
547
27.7M
  }
clang::TrivialABIAttr* clang::Decl::getAttr<clang::TrivialABIAttr>() const
Line
Count
Source
545
56
  template<typename T> T *getAttr() const {
546
56
    return hasAttrs() ? getSpecificAttr<T>(getAttrs()) : 
nullptr0
;
547
56
  }
clang::FinalAttr* clang::Decl::getAttr<clang::FinalAttr>() const
Line
Count
Source
545
495k
  template<typename T> T *getAttr() const {
546
495k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())39.8k
:
nullptr455k
;
547
495k
  }
clang::OverrideAttr* clang::Decl::getAttr<clang::OverrideAttr>() const
Line
Count
Source
545
20
  template<typename T> T *getAttr() const {
546
20
    return hasAttrs() ? getSpecificAttr<T>(getAttrs()) : 
nullptr0
;
547
20
  }
clang::ObjCDirectAttr* clang::Decl::getAttr<clang::ObjCDirectAttr>() const
Line
Count
Source
545
136
  template<typename T> T *getAttr() const {
546
136
    return hasAttrs() ? getSpecificAttr<T>(getAttrs()) : 
nullptr0
;
547
136
  }
clang::UnusedAttr* clang::Decl::getAttr<clang::UnusedAttr>() const
Line
Count
Source
545
126M
  template<typename T> T *getAttr() const {
546
126M
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())9.79M
:
nullptr116M
;
547
126M
  }
clang::ObjCBridgeRelatedAttr* clang::Decl::getAttr<clang::ObjCBridgeRelatedAttr>() const
Line
Count
Source
545
1.40k
  template<typename T> T *getAttr() const {
546
1.40k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())1.08k
:
nullptr319
;
547
1.40k
  }
clang::ObjCBridgeAttr* clang::Decl::getAttr<clang::ObjCBridgeAttr>() const
Line
Count
Source
545
10.7k
  template<typename T> T *getAttr() const {
546
10.7k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())2.66k
:
nullptr8.05k
;
547
10.7k
  }
clang::ObjCBridgeMutableAttr* clang::Decl::getAttr<clang::ObjCBridgeMutableAttr>() const
Line
Count
Source
545
8.91k
  template<typename T> T *getAttr() const {
546
8.91k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())860
:
nullptr8.05k
;
547
8.91k
  }
clang::WarnUnusedAttr* clang::Decl::getAttr<clang::WarnUnusedAttr>() const
Line
Count
Source
545
14
  template<typename T> T *getAttr() const {
546
14
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())3
:
nullptr11
;
547
14
  }
clang::OpenCLAccessAttr* clang::Decl::getAttr<clang::OpenCLAccessAttr>() const
Line
Count
Source
545
146
  template<typename T> T *getAttr() const {
546
146
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())128
:
nullptr18
;
547
146
  }
clang::ParameterABIAttr* clang::Decl::getAttr<clang::ParameterABIAttr>() const
Line
Count
Source
545
65.0M
  template<typename T> T *getAttr() const {
546
65.0M
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())49.4k
:
nullptr65.0M
;
547
65.0M
  }
clang::TestTypestateAttr* clang::Decl::getAttr<clang::TestTypestateAttr>() const
Line
Count
Source
545
43
  template<typename T> T *getAttr() const {
546
43
    return hasAttrs() ? getSpecificAttr<T>(getAttrs()) : 
nullptr0
;
547
43
  }
clang::ConsumableAttr* clang::Decl::getAttr<clang::ConsumableAttr>() const
Line
Count
Source
545
43
  template<typename T> T *getAttr() const {
546
43
    return hasAttrs() ? getSpecificAttr<T>(getAttrs()) : 
nullptr0
;
547
43
  }
clang::CallableWhenAttr* clang::Decl::getAttr<clang::CallableWhenAttr>() const
Line
Count
Source
545
291
  template<typename T> T *getAttr() const {
546
291
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())277
:
nullptr14
;
547
291
  }
clang::ParamTypestateAttr* clang::Decl::getAttr<clang::ParamTypestateAttr>() const
Line
Count
Source
545
78
  template<typename T> T *getAttr() const {
546
78
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())19
:
nullptr59
;
547
78
  }
clang::ReturnTypestateAttr* clang::Decl::getAttr<clang::ReturnTypestateAttr>() const
Line
Count
Source
545
269
  template<typename T> T *getAttr() const {
546
269
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())42
:
nullptr227
;
547
269
  }
clang::SetTypestateAttr* clang::Decl::getAttr<clang::SetTypestateAttr>() const
Line
Count
Source
545
215
  template<typename T> T *getAttr() const {
546
215
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())202
:
nullptr13
;
547
215
  }
clang::CapabilityAttr* clang::Decl::getAttr<clang::CapabilityAttr>() const
Line
Count
Source
545
9.01k
  template<typename T> T *getAttr() const {
546
9.01k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())8.85k
:
nullptr160
;
547
9.01k
  }
clang::LockReturnedAttr* clang::Decl::getAttr<clang::LockReturnedAttr>() const
Line
Count
Source
545
368
  template<typename T> T *getAttr() const {
546
368
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())180
:
nullptr188
;
547
368
  }
clang::PcsAttr* clang::Decl::getAttr<clang::PcsAttr>() const
Line
Count
Source
545
27.6k
  template<typename T> T *getAttr() const {
546
27.6k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())5.70k
:
nullptr21.9k
;
547
27.6k
  }
clang::AssumeAlignedAttr* clang::Decl::getAttr<clang::AssumeAlignedAttr>() const
Line
Count
Source
545
342k
  template<typename T> T *getAttr() const {
546
342k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())168k
:
nullptr173k
;
547
342k
  }
clang::ZeroCallUsedRegsAttr* clang::Decl::getAttr<clang::ZeroCallUsedRegsAttr>() const
Line
Count
Source
545
81
  template<typename T> T *getAttr() const {
546
81
    return hasAttrs() ? getSpecificAttr<T>(getAttrs()) : 
nullptr0
;
547
81
  }
clang::AlignValueAttr* clang::Decl::getAttr<clang::AlignValueAttr>() const
Line
Count
Source
545
990k
  template<typename T> T *getAttr() const {
546
990k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())22.1k
:
nullptr968k
;
547
990k
  }
clang::CFGuardAttr* clang::Decl::getAttr<clang::CFGuardAttr>() const
Line
Count
Source
545
349k
  template<typename T> T *getAttr() const {
546
349k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())92.3k
:
nullptr257k
;
547
349k
  }
clang::UninitializedAttr* clang::Decl::getAttr<clang::UninitializedAttr>() const
Line
Count
Source
545
238k
  template<typename T> T *getAttr() const {
546
238k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())6.89k
:
nullptr232k
;
547
238k
  }
clang::CleanupAttr* clang::Decl::getAttr<clang::CleanupAttr>() const
Line
Count
Source
545
257k
  template<typename T> T *getAttr() const {
546
257k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())24.4k
:
nullptr233k
;
547
257k
  }
clang::InitSegAttr* clang::Decl::getAttr<clang::InitSegAttr>() const
Line
Count
Source
545
5.84k
  template<typename T> T *getAttr() const {
546
5.84k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())1.14k
:
nullptr4.70k
;
547
5.84k
  }
clang::InitPriorityAttr* clang::Decl::getAttr<clang::InitPriorityAttr>() const
Line
Count
Source
545
5.68k
  template<typename T> T *getAttr() const {
546
5.68k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())1.12k
:
nullptr4.56k
;
547
5.68k
  }
clang::OMPCaptureKindAttr* clang::Decl::getAttr<clang::OMPCaptureKindAttr>() const
Line
Count
Source
545
188
  template<typename T> T *getAttr() const {
546
188
    return hasAttrs() ? getSpecificAttr<T>(getAttrs()) : 
nullptr0
;
547
188
  }
clang::XRayInstrumentAttr* clang::Decl::getAttr<clang::XRayInstrumentAttr>() const
Line
Count
Source
545
305k
  template<typename T> T *getAttr() const {
546
305k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())99.6k
:
nullptr205k
;
547
305k
  }
clang::XRayLogArgsAttr* clang::Decl::getAttr<clang::XRayLogArgsAttr>() const
Line
Count
Source
545
82
  template<typename T> T *getAttr() const {
546
82
    return hasAttrs() ? getSpecificAttr<T>(getAttrs()) : 
nullptr0
;
547
82
  }
clang::PatchableFunctionEntryAttr* clang::Decl::getAttr<clang::PatchableFunctionEntryAttr>() const
Line
Count
Source
545
305k
  template<typename T> T *getAttr() const {
546
305k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())99.6k
:
nullptr205k
;
547
305k
  }
clang::FunctionReturnThunksAttr* clang::Decl::getAttr<clang::FunctionReturnThunksAttr>() const
Line
Count
Source
545
305k
  template<typename T> T *getAttr() const {
546
305k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())99.6k
:
nullptr205k
;
547
305k
  }
clang::TLSModelAttr* clang::Decl::getAttr<clang::TLSModelAttr>() const
Line
Count
Source
545
581
  template<typename T> T *getAttr() const {
546
581
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())135
:
nullptr446
;
547
581
  }
clang::PragmaClangBSSSectionAttr* clang::Decl::getAttr<clang::PragmaClangBSSSectionAttr>() const
Line
Count
Source
545
36.4k
  template<typename T> T *getAttr() const {
546
36.4k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())3.16k
:
nullptr33.3k
;
547
36.4k
  }
clang::PragmaClangDataSectionAttr* clang::Decl::getAttr<clang::PragmaClangDataSectionAttr>() const
Line
Count
Source
545
36.4k
  template<typename T> T *getAttr() const {
546
36.4k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())3.16k
:
nullptr33.3k
;
547
36.4k
  }
clang::PragmaClangRodataSectionAttr* clang::Decl::getAttr<clang::PragmaClangRodataSectionAttr>() const
Line
Count
Source
545
36.4k
  template<typename T> T *getAttr() const {
546
36.4k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())3.16k
:
nullptr33.3k
;
547
36.4k
  }
clang::PragmaClangRelroSectionAttr* clang::Decl::getAttr<clang::PragmaClangRelroSectionAttr>() const
Line
Count
Source
545
36.4k
  template<typename T> T *getAttr() const {
546
36.4k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())3.16k
:
nullptr33.3k
;
547
36.4k
  }
clang::PragmaClangTextSectionAttr* clang::Decl::getAttr<clang::PragmaClangTextSectionAttr>() const
Line
Count
Source
545
298k
  template<typename T> T *getAttr() const {
546
298k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())98.3k
:
nullptr200k
;
547
298k
  }
clang::CallbackAttr* clang::Decl::getAttr<clang::CallbackAttr>() const
Line
Count
Source
545
306k
  template<typename T> T *getAttr() const {
546
306k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())110k
:
nullptr196k
;
547
306k
  }
clang::ConstructorAttr* clang::Decl::getAttr<clang::ConstructorAttr>() const
Line
Count
Source
545
213k
  template<typename T> T *getAttr() const {
546
213k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())73.6k
:
nullptr139k
;
547
213k
  }
clang::DestructorAttr* clang::Decl::getAttr<clang::DestructorAttr>() const
Line
Count
Source
545
213k
  template<typename T> T *getAttr() const {
546
213k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())73.6k
:
nullptr139k
;
547
213k
  }
Unexecuted instantiation: clang::M68kInterruptAttr* clang::Decl::getAttr<clang::M68kInterruptAttr>() const
clang::AVRInterruptAttr* clang::Decl::getAttr<clang::AVRInterruptAttr>() const
Line
Count
Source
545
52
  template<typename T> T *getAttr() const {
546
52
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())2
:
nullptr50
;
547
52
  }
clang::AVRSignalAttr* clang::Decl::getAttr<clang::AVRSignalAttr>() const
Line
Count
Source
545
52
  template<typename T> T *getAttr() const {
546
52
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())2
:
nullptr50
;
547
52
  }
clang::WebAssemblyExportNameAttr* clang::Decl::getAttr<clang::WebAssemblyExportNameAttr>() const
Line
Count
Source
545
1.05k
  template<typename T> T *getAttr() const {
546
1.05k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())7
:
nullptr1.04k
;
547
1.05k
  }
clang::ARMInterruptAttr* clang::Decl::getAttr<clang::ARMInterruptAttr>() const
Line
Count
Source
545
12.7k
  template<typename T> T *getAttr() const {
546
12.7k
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())1.86k
:
nullptr10.8k
;
547
12.7k
  }
clang::CUDALaunchBoundsAttr* clang::Decl::getAttr<clang::CUDALaunchBoundsAttr>() const
Line
Count
Source
545
186
  template<typename T> T *getAttr() const {
546
186
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())178
:
nullptr8
;
547
186
  }
clang::MSP430InterruptAttr* clang::Decl::getAttr<clang::MSP430InterruptAttr>() const
Line
Count
Source
545
1
  template<typename T> T *getAttr() const {
546
1
    return hasAttrs() ? getSpecificAttr<T>(getAttrs()) : 
nullptr0
;
547
1
  }
clang::BlocksAttr* clang::Decl::getAttr<clang::BlocksAttr>() const
Line
Count
Source
545
4
  template<typename T> T *getAttr() const {
546
4
    return hasAttrs() ? getSpecificAttr<T>(getAttrs()) : 
nullptr0
;
547
4
  }
clang::AcquireHandleAttr* clang::Decl::getAttr<clang::AcquireHandleAttr>() const
Line
Count
Source
545
151
  template<typename T> T *getAttr() const {
546
151
    return hasAttrs() ? getSpecificAttr<T>(getAttrs()) : 
nullptr0
;
547
151
  }
clang::ReleaseHandleAttr* clang::Decl::getAttr<clang::ReleaseHandleAttr>() const
Line
Count
Source
545
165
  template<typename T> T *getAttr() const {
546
165
    return hasAttrs() ? getSpecificAttr<T>(getAttrs()) : 
nullptr0
;
547
165
  }
clang::UseHandleAttr* clang::Decl::getAttr<clang::UseHandleAttr>() const
Line
Count
Source
545
47
  template<typename T> T *getAttr() const {
546
47
    return hasAttrs() ? getSpecificAttr<T>(getAttrs()) : 
nullptr0
;
547
47
  }
clang::IBOutletCollectionAttr* clang::Decl::getAttr<clang::IBOutletCollectionAttr>() const
Line
Count
Source
545
33
  template<typename T> T *getAttr() const {
546
33
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())7
:
nullptr26
;
547
33
  }
clang::AnnotateAttr* clang::Decl::getAttr<clang::AnnotateAttr>() const
Line
Count
Source
545
65
  template<typename T> T *getAttr() const {
546
65
    return hasAttrs() ? 
getSpecificAttr<T>(getAttrs())11
:
nullptr54
;
547
65
  }
548
549
1.69G
  template<typename T> bool hasAttr() const {
550
1.69G
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())995M
;
551
1.69G
  }
bool clang::Decl::hasAttr<clang::DLLImportAttr>() const
Line
Count
Source
549
51.0M
  template<typename T> bool hasAttr() const {
550
51.0M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())34.9M
;
551
51.0M
  }
bool clang::Decl::hasAttr<clang::DLLExportAttr>() const
Line
Count
Source
549
11.2M
  template<typename T> bool hasAttr() const {
550
11.2M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())6.83M
;
551
11.2M
  }
bool clang::Decl::hasAttr<clang::GNUInlineAttr>() const
Line
Count
Source
549
14.0M
  template<typename T> bool hasAttr() const {
550
14.0M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())13.1M
;
551
14.0M
  }
bool clang::Decl::hasAttr<clang::CUDAGlobalAttr>() const
Line
Count
Source
549
91.8M
  template<typename T> bool hasAttr() const {
550
91.8M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())80.3M
;
551
91.8M
  }
bool clang::Decl::hasAttr<clang::PackedAttr>() const
Line
Count
Source
549
2.61M
  template<typename T> bool hasAttr() const {
550
2.61M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())460k
;
551
2.61M
  }
bool clang::Decl::hasAttr<clang::AlignedAttr>() const
Line
Count
Source
549
1.48M
  template<typename T> bool hasAttr() const {
550
1.48M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())213k
;
551
1.48M
  }
bool clang::Decl::hasAttr<clang::BlocksAttr>() const
Line
Count
Source
549
89.7M
  template<typename T> bool hasAttr() const {
550
89.7M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())2.06M
;
551
89.7M
  }
bool clang::Decl::hasAttr<clang::TransparentUnionAttr>() const
Line
Count
Source
549
289
  template<typename T> bool hasAttr() const {
550
289
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())151
;
551
289
  }
bool clang::Decl::hasAttr<clang::WeakRefAttr>() const
Line
Count
Source
549
81.8M
  template<typename T> bool hasAttr() const {
550
81.8M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())53.6M
;
551
81.8M
  }
bool clang::Decl::hasAttr<clang::AliasAttr>() const
Line
Count
Source
549
63.3M
  template<typename T> bool hasAttr() const {
550
63.3M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())38.4M
;
551
63.3M
  }
bool clang::Decl::hasAttr<clang::UsedAttr>() const
Line
Count
Source
549
59.7M
  template<typename T> bool hasAttr() const {
550
59.7M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())32.0M
;
551
59.7M
  }
bool clang::Decl::hasAttr<clang::ConstructorAttr>() const
Line
Count
Source
549
6.04M
  template<typename T> bool hasAttr() const {
550
6.04M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())5.61M
;
551
6.04M
  }
bool clang::Decl::hasAttr<clang::DestructorAttr>() const
Line
Count
Source
549
6.04M
  template<typename T> bool hasAttr() const {
550
6.04M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())5.61M
;
551
6.04M
  }
bool clang::Decl::hasAttr<clang::UnavailableAttr>() const
Line
Count
Source
549
2.44M
  template<typename T> bool hasAttr() const {
550
2.44M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())234k
;
551
2.44M
  }
bool clang::Decl::hasAttr<clang::DeprecatedAttr>() const
Line
Count
Source
549
101
  template<typename T> bool hasAttr() const {
550
101
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())19
;
551
101
  }
bool clang::Decl::hasAttr<clang::CUDADeviceAttr>() const
Line
Count
Source
549
3.20M
  template<typename T> bool hasAttr() const {
550
3.20M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())2.65M
;
551
3.20M
  }
bool clang::Decl::hasAttr<clang::CUDAConstantAttr>() const
Line
Count
Source
549
3.17M
  template<typename T> bool hasAttr() const {
550
3.17M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())2.62M
;
551
3.17M
  }
bool clang::Decl::hasAttr<clang::HIPManagedAttr>() const
Line
Count
Source
549
60.1k
  template<typename T> bool hasAttr() const {
550
60.1k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())10.6k
;
551
60.1k
  }
bool clang::Decl::hasAttr<clang::VisibilityAttr>() const
Line
Count
Source
549
461k
  template<typename T> bool hasAttr() const {
550
461k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())20.1k
;
551
461k
  }
bool clang::Decl::hasAttr<clang::TypeVisibilityAttr>() const
Line
Count
Source
549
70.0k
  template<typename T> bool hasAttr() const {
550
70.0k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())68.6k
;
551
70.0k
  }
bool clang::Decl::hasAttr<clang::InternalLinkageAttr>() const
Line
Count
Source
549
166M
  template<typename T> bool hasAttr() const {
550
166M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())120M
;
551
166M
  }
bool clang::Decl::hasAttr<clang::ThreadAttr>() const
Line
Count
Source
549
7.19M
  template<typename T> bool hasAttr() const {
550
7.19M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())145k
;
551
7.19M
  }
bool clang::Decl::hasAttr<clang::OMPThreadPrivateDeclAttr>() const
Line
Count
Source
549
7.06M
  template<typename T> bool hasAttr() const {
550
7.06M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())76.1k
;
551
7.06M
  }
bool clang::Decl::hasAttr<clang::CUDASharedAttr>() const
Line
Count
Source
549
47.5k
  template<typename T> bool hasAttr() const {
550
47.5k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())4.10k
;
551
47.5k
  }
bool clang::Decl::hasAttr<clang::NoDestroyAttr>() const
Line
Count
Source
549
1.58M
  template<typename T> bool hasAttr() const {
550
1.58M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())19.4k
;
551
1.58M
  }
bool clang::Decl::hasAttr<clang::AlwaysDestroyAttr>() const
Line
Count
Source
549
44
  template<typename T> bool hasAttr() const {
550
44
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())21
;
551
44
  }
bool clang::Decl::hasAttr<clang::NSConsumedAttr>() const
Line
Count
Source
549
319k
  template<typename T> bool hasAttr() const {
550
319k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())11.3k
;
551
319k
  }
bool clang::Decl::hasAttr<clang::AlwaysInlineAttr>() const
Line
Count
Source
549
19.5M
  template<typename T> bool hasAttr() const {
550
19.5M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())340k
;
551
19.5M
  }
bool clang::Decl::hasAttr<clang::OpenCLKernelAttr>() const
Line
Count
Source
549
61.7M
  template<typename T> bool hasAttr() const {
550
61.7M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())51.9M
;
551
61.7M
  }
bool clang::Decl::hasAttr<clang::NoReturnAttr>() const
Line
Count
Source
549
6.37M
  template<typename T> bool hasAttr() const {
550
6.37M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())4.26M
;
551
6.37M
  }
bool clang::Decl::hasAttr<clang::CXX11NoReturnAttr>() const
Line
Count
Source
549
5.68M
  template<typename T> bool hasAttr() const {
550
5.68M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())3.98M
;
551
5.68M
  }
bool clang::Decl::hasAttr<clang::C11NoReturnAttr>() const
Line
Count
Source
549
5.67M
  template<typename T> bool hasAttr() const {
550
5.67M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())3.98M
;
551
5.67M
  }
bool clang::Decl::hasAttr<clang::TargetAttr>() const
Line
Count
Source
549
26.7M
  template<typename T> bool hasAttr() const {
550
26.7M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())23.8M
;
551
26.7M
  }
bool clang::Decl::hasAttr<clang::CPUDispatchAttr>() const
Line
Count
Source
549
49.5M
  template<typename T> bool hasAttr() const {
550
49.5M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())45.0M
;
551
49.5M
  }
bool clang::Decl::hasAttr<clang::CPUSpecificAttr>() const
Line
Count
Source
549
25.4M
  template<typename T> bool hasAttr() const {
550
25.4M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())22.5M
;
551
25.4M
  }
bool clang::Decl::hasAttr<clang::TargetClonesAttr>() const
Line
Count
Source
549
25.4M
  template<typename T> bool hasAttr() const {
550
25.4M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())22.5M
;
551
25.4M
  }
bool clang::Decl::hasAttr<clang::OverloadableAttr>() const
Line
Count
Source
549
135M
  template<typename T> bool hasAttr() const {
550
135M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())131M
;
551
135M
  }
bool clang::Decl::hasAttr<clang::ArmBuiltinAliasAttr>() const
Line
Count
Source
549
55.0M
  template<typename T> bool hasAttr() const {
550
55.0M
    return hasAttrs() && hasSpecificAttr<T>(getAttrs());
551
55.0M
  }
bool clang::Decl::hasAttr<clang::BuiltinAliasAttr>() const
Line
Count
Source
549
10.1k
  template<typename T> bool hasAttr() const {
550
10.1k
    return hasAttrs() && hasSpecificAttr<T>(getAttrs());
551
10.1k
  }
bool clang::Decl::hasAttr<clang::FlagEnumAttr>() const
Line
Count
Source
549
377k
  template<typename T> bool hasAttr() const {
550
377k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())4.77k
;
551
377k
  }
bool clang::Decl::hasAttr<clang::CapturedRecordAttr>() const
Line
Count
Source
549
8.91k
  template<typename T> bool hasAttr() const {
550
8.91k
    return hasAttrs() && hasSpecificAttr<T>(getAttrs());
551
8.91k
  }
bool clang::Decl::hasAttr<clang::MSStructAttr>() const
Line
Count
Source
549
2.20M
  template<typename T> bool hasAttr() const {
550
2.20M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())366k
;
551
2.20M
  }
bool clang::Decl::hasAttr<clang::WeakAttr>() const
Line
Count
Source
549
22.5M
  template<typename T> bool hasAttr() const {
550
22.5M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())776k
;
551
22.5M
  }
bool clang::Decl::hasAttr<clang::IFuncAttr>() const
Line
Count
Source
549
55.5M
  template<typename T> bool hasAttr() const {
550
55.5M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())33.6M
;
551
55.5M
  }
bool clang::Decl::hasAttr<clang::LoaderUninitializedAttr>() const
Line
Count
Source
549
35.1M
  template<typename T> bool hasAttr() const {
550
35.1M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())12.1M
;
551
35.1M
  }
bool clang::Decl::hasAttr<clang::FinalAttr>() const
Line
Count
Source
549
8.11M
  template<typename T> bool hasAttr() const {
550
8.11M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())2.24M
;
551
8.11M
  }
bool clang::Decl::hasAttr<clang::ArcWeakrefUnavailableAttr>() const
Line
Count
Source
549
570
  template<typename T> bool hasAttr() const {
550
570
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())81
;
551
570
  }
bool clang::Decl::hasAttr<clang::ObjCRequiresPropertyDefsAttr>() const
Line
Count
Source
549
18.8k
  template<typename T> bool hasAttr() const {
550
18.8k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())1.99k
;
551
18.8k
  }
bool clang::Decl::hasAttr<clang::ObjCDirectAttr>() const
Line
Count
Source
549
2.50M
  template<typename T> bool hasAttr() const {
550
2.50M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())1.35M
;
551
2.50M
  }
bool clang::Decl::hasAttr<clang::ObjCDesignatedInitializerAttr>() const
Line
Count
Source
549
27.7M
  template<typename T> bool hasAttr() const {
550
27.7M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())25.8M
;
551
27.7M
  }
bool clang::Decl::hasAttr<clang::NSConsumesSelfAttr>() const
Line
Count
Source
549
52.7k
  template<typename T> bool hasAttr() const {
550
52.7k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())25.0k
;
551
52.7k
  }
bool clang::Decl::hasAttr<clang::ObjCNonRuntimeProtocolAttr>() const
Line
Count
Source
549
245
  template<typename T> bool hasAttr() const {
550
245
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())55
;
551
245
  }
bool clang::Decl::hasAttr<clang::OMPDeclareTargetDeclAttr>() const
Line
Count
Source
549
17.5k
  template<typename T> bool hasAttr() const {
550
17.5k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())1.04k
;
551
17.5k
  }
bool clang::Decl::hasAttr<clang::PureAttr>() const
Line
Count
Source
549
1.28M
  template<typename T> bool hasAttr() const {
550
1.28M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())563k
;
551
1.28M
  }
bool clang::Decl::hasAttr<clang::ConstAttr>() const
Line
Count
Source
549
38.2M
  template<typename T> bool hasAttr() const {
550
38.2M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())37.5M
;
551
38.2M
  }
bool clang::Decl::hasAttr<clang::WarnUnusedAttr>() const
Line
Count
Source
549
76.8k
  template<typename T> bool hasAttr() const {
550
76.8k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())20.7k
;
551
76.8k
  }
bool clang::Decl::hasAttr<clang::WarnUnusedResultAttr>() const
Line
Count
Source
549
9.17k
  template<typename T> bool hasAttr() const {
550
9.17k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())625
;
551
9.17k
  }
bool clang::Decl::hasAttr<clang::AsmLabelAttr>() const
Line
Count
Source
549
4.52M
  template<typename T> bool hasAttr() const {
550
4.52M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())3.77M
;
551
4.52M
  }
bool clang::Decl::hasAttr<clang::NonNullAttr>() const
Line
Count
Source
549
6.73M
  template<typename T> bool hasAttr() const {
550
6.73M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())291k
;
551
6.73M
  }
bool clang::Decl::hasAttr<clang::ReturnsNonNullAttr>() const
Line
Count
Source
549
686k
  template<typename T> bool hasAttr() const {
550
686k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())288k
;
551
686k
  }
bool clang::Decl::hasAttr<clang::EnableIfAttr>() const
Line
Count
Source
549
1.53M
  template<typename T> bool hasAttr() const {
550
1.53M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())1.21M
;
551
1.53M
  }
bool clang::Decl::hasAttr<clang::EmptyBasesAttr>() const
Line
Count
Source
549
6.10k
  template<typename T> bool hasAttr() const {
550
6.10k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())902
;
551
6.10k
  }
bool clang::Decl::hasAttr<clang::AlignMac68kAttr>() const
Line
Count
Source
549
413k
  template<typename T> bool hasAttr() const {
550
413k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())96.9k
;
551
413k
  }
bool clang::Decl::hasAttr<clang::AlignNaturalAttr>() const
Line
Count
Source
549
413k
  template<typename T> bool hasAttr() const {
550
413k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())96.9k
;
551
413k
  }
bool clang::Decl::hasAttr<clang::NoUniqueAddressAttr>() const
Line
Count
Source
549
4.19M
  template<typename T> bool hasAttr() const {
550
4.19M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())11.6k
;
551
4.19M
  }
bool clang::Decl::hasAttr<clang::CUDAHostAttr>() const
Line
Count
Source
549
6.68k
  template<typename T> bool hasAttr() const {
550
6.68k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())3.16k
;
551
6.68k
  }
bool clang::Decl::hasAttr<clang::ObjCBoxableAttr>() const
Line
Count
Source
549
141
  template<typename T> bool hasAttr() const {
550
141
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())135
;
551
141
  }
bool clang::Decl::hasAttr<clang::MSInheritanceAttr>() const
Line
Count
Source
549
13.4k
  template<typename T> bool hasAttr() const {
550
13.4k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())11.0k
;
551
13.4k
  }
bool clang::Decl::hasAttr<clang::ObjCNSObjectAttr>() const
Line
Count
Source
549
872k
  template<typename T> bool hasAttr() const {
550
872k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())54.1k
;
551
872k
  }
bool clang::Decl::hasAttr<clang::ObjCIndependentClassAttr>() const
Line
Count
Source
549
2.76k
  template<typename T> bool hasAttr() const {
550
2.76k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())1
;
551
2.76k
  }
bool clang::Decl::hasAttr<clang::CUDADeviceBuiltinSurfaceTypeAttr>() const
Line
Count
Source
549
2.20k
  template<typename T> bool hasAttr() const {
550
2.20k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())53
;
551
2.20k
  }
bool clang::Decl::hasAttr<clang::CUDADeviceBuiltinTextureTypeAttr>() const
Line
Count
Source
549
2.17k
  template<typename T> bool hasAttr() const {
550
2.17k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())27
;
551
2.17k
  }
bool clang::Decl::hasAttr<clang::AvailabilityAttr>() const
Line
Count
Source
549
1.14k
  template<typename T> bool hasAttr() const {
550
1.14k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())1.02k
;
551
1.14k
  }
bool clang::Decl::hasAttr<clang::ExcludeFromExplicitInstantiationAttr>() const
Line
Count
Source
549
79.8k
  template<typename T> bool hasAttr() const {
550
79.8k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())34.0k
;
551
79.8k
  }
bool clang::Decl::hasAttr<clang::OwnerAttr>() const
Line
Count
Source
549
396k
  template<typename T> bool hasAttr() const {
550
396k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())191k
;
551
396k
  }
bool clang::Decl::hasAttr<clang::PointerAttr>() const
Line
Count
Source
549
524k
  template<typename T> bool hasAttr() const {
550
524k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())221k
;
551
524k
  }
bool clang::Decl::hasAttr<clang::CFAuditedTransferAttr>() const
Line
Count
Source
549
493k
  template<typename T> bool hasAttr() const {
550
493k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())337k
;
551
493k
  }
bool clang::Decl::hasAttr<clang::CFUnknownTransferAttr>() const
Line
Count
Source
549
475k
  template<typename T> bool hasAttr() const {
550
475k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())322k
;
551
475k
  }
bool clang::Decl::hasAttr<clang::SectionAttr>() const
Line
Count
Source
549
25.7M
  template<typename T> bool hasAttr() const {
550
25.7M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())269k
;
551
25.7M
  }
bool clang::Decl::hasAttr<clang::MinSizeAttr>() const
Line
Count
Source
549
598k
  template<typename T> bool hasAttr() const {
550
598k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())196k
;
551
598k
  }
bool clang::Decl::hasAttr<clang::OptimizeNoneAttr>() const
Line
Count
Source
549
1.04M
  template<typename T> bool hasAttr() const {
550
1.04M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())397k
;
551
1.04M
  }
bool clang::Decl::hasAttr<clang::NoInlineAttr>() const
Line
Count
Source
549
69.9k
  template<typename T> bool hasAttr() const {
550
69.9k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())18.8k
;
551
69.9k
  }
bool clang::Decl::hasAttr<clang::EnforceTCBAttr>() const
Line
Count
Source
549
1.82M
  template<typename T> bool hasAttr() const {
550
1.82M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())1.29M
;
551
1.82M
  }
bool clang::Decl::hasAttr<clang::CUDAInvalidTargetAttr>() const
Line
Count
Source
549
93.4k
  template<typename T> bool hasAttr() const {
550
93.4k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())71.7k
;
551
93.4k
  }
bool clang::Decl::hasAttr<clang::ObjCPreciseLifetimeAttr>() const
Line
Count
Source
549
26.6M
  template<typename T> bool hasAttr() const {
550
26.6M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())1.10M
;
551
26.6M
  }
bool clang::Decl::hasAttr<clang::CleanupAttr>() const
Line
Count
Source
549
11.0M
  template<typename T> bool hasAttr() const {
550
11.0M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())817k
;
551
11.0M
  }
bool clang::Decl::hasAttr<clang::CodeSegAttr>() const
Line
Count
Source
549
24.9M
  template<typename T> bool hasAttr() const {
550
24.9M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())56.2k
;
551
24.9M
  }
bool clang::Decl::hasAttr<clang::CarriesDependencyAttr>() const
Line
Count
Source
549
5
  template<typename T> bool hasAttr() const {
550
5
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())2
;
551
5
  }
bool clang::Decl::hasAttr<clang::ErrorAttr>() const
Line
Count
Source
549
342k
  template<typename T> bool hasAttr() const {
550
342k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())168k
;
551
342k
  }
bool clang::Decl::hasAttr<clang::WeakImportAttr>() const
Line
Count
Source
549
66.1k
  template<typename T> bool hasAttr() const {
550
66.1k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())2.07k
;
551
66.1k
  }
bool clang::Decl::hasAttr<clang::SYCLSpecialClassAttr>() const
Line
Count
Source
549
2.32M
  template<typename T> bool hasAttr() const {
550
2.32M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())1.15M
;
551
2.32M
  }
bool clang::Decl::hasAttr<clang::ConstInitAttr>() const
Line
Count
Source
549
29.0k
  template<typename T> bool hasAttr() const {
550
29.0k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())1.71k
;
551
29.0k
  }
bool clang::Decl::hasAttr<clang::DLLExportStaticLocalAttr>() const
Line
Count
Source
549
11.0k
  template<typename T> bool hasAttr() const {
550
11.0k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())2.87k
;
551
11.0k
  }
bool clang::Decl::hasAttr<clang::DLLImportStaticLocalAttr>() const
Line
Count
Source
549
11.0k
  template<typename T> bool hasAttr() const {
550
11.0k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())2.87k
;
551
11.0k
  }
bool clang::Decl::hasAttr<clang::TypeTagForDatatypeAttr>() const
Line
Count
Source
549
2.67M
  template<typename T> bool hasAttr() const {
550
2.67M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())810k
;
551
2.67M
  }
bool clang::Decl::hasAttr<clang::StrictFPAttr>() const
Line
Count
Source
549
1.28M
  template<typename T> bool hasAttr() const {
550
1.28M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())454k
;
551
1.28M
  }
bool clang::Decl::hasAttr<clang::NakedAttr>() const
Line
Count
Source
549
13.5M
  template<typename T> bool hasAttr() const {
550
13.5M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())10.7M
;
551
13.5M
  }
bool clang::Decl::hasAttr<clang::AllocSizeAttr>() const
Line
Count
Source
549
8.25k
  template<typename T> bool hasAttr() const {
550
8.25k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())7.88k
;
551
8.25k
  }
bool clang::Decl::hasAttr<clang::AllocAlignAttr>() const
Line
Count
Source
549
3.82M
  template<typename T> bool hasAttr() const {
550
3.82M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())3.02M
;
551
3.82M
  }
bool clang::Decl::hasAttr<clang::FormatAttr>() const
Line
Count
Source
549
35.2k
  template<typename T> bool hasAttr() const {
550
35.2k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())35.2k
;
551
35.2k
  }
bool clang::Decl::hasAttr<clang::CallbackAttr>() const
Line
Count
Source
549
19.3M
  template<typename T> bool hasAttr() const {
550
19.3M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())19.3M
;
551
19.3M
  }
bool clang::Decl::hasAttr<clang::ReturnsTwiceAttr>() const
Line
Count
Source
549
682k
  template<typename T> bool hasAttr() const {
550
682k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())282k
;
551
682k
  }
bool clang::Decl::hasAttr<clang::NoThrowAttr>() const
Line
Count
Source
549
20.3M
  template<typename T> bool hasAttr() const {
550
20.3M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())19.6M
;
551
20.3M
  }
bool clang::Decl::hasAttr<clang::FormatArgAttr>() const
Line
Count
Source
549
225
  template<typename T> bool hasAttr() const {
550
225
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())224
;
551
225
  }
bool clang::Decl::hasAttr<clang::RandomizeLayoutAttr>() const
Line
Count
Source
549
405k
  template<typename T> bool hasAttr() const {
550
405k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())259k
;
551
405k
  }
bool clang::Decl::hasAttr<clang::NoRandomizeLayoutAttr>() const
Line
Count
Source
549
403k
  template<typename T> bool hasAttr() const {
550
403k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())258k
;
551
403k
  }
bool clang::Decl::hasAttr<clang::SYCLKernelAttr>() const
Line
Count
Source
549
633
  template<typename T> bool hasAttr() const {
550
633
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())145
;
551
633
  }
bool clang::Decl::hasAttr<clang::NoBuiltinAttr>() const
Line
Count
Source
549
34
  template<typename T> bool hasAttr() const {
550
34
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())8
;
551
34
  }
bool clang::Decl::hasAttr<clang::CapabilityAttr>() const
Line
Count
Source
549
3.22k
  template<typename T> bool hasAttr() const {
550
3.22k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())3.03k
;
551
3.22k
  }
bool clang::Decl::hasAttr<clang::ConsumableAttr>() const
Line
Count
Source
549
300
  template<typename T> bool hasAttr() const {
550
300
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())291
;
551
300
  }
bool clang::Decl::hasAttr<clang::BPFPreserveAccessIndexAttr>() const
Line
Count
Source
549
2.12M
  template<typename T> bool hasAttr() const {
550
2.12M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())631k
;
551
2.12M
  }
bool clang::Decl::hasAttr<clang::OverrideAttr>() const
Line
Count
Source
549
5.39M
  template<typename T> bool hasAttr() const {
550
5.39M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())2.16M
;
551
5.39M
  }
bool clang::Decl::hasAttr<clang::NoEscapeAttr>() const
Line
Count
Source
549
65.1M
  template<typename T> bool hasAttr() const {
550
65.1M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())57.9k
;
551
65.1M
  }
bool clang::Decl::hasAttr<clang::ObjCExplicitProtocolImplAttr>() const
Line
Count
Source
549
1.42k
  template<typename T> bool hasAttr() const {
550
1.42k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())70
;
551
1.42k
  }
bool clang::Decl::hasAttr<clang::ObjCDirectMembersAttr>() const
Line
Count
Source
549
944k
  template<typename T> bool hasAttr() const {
550
944k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())338k
;
551
944k
  }
bool clang::Decl::hasAttr<clang::NSReturnsRetainedAttr>() const
Line
Count
Source
549
316k
  template<typename T> bool hasAttr() const {
550
316k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())125k
;
551
316k
  }
bool clang::Decl::hasAttr<clang::NSReturnsNotRetainedAttr>() const
Line
Count
Source
549
649k
  template<typename T> bool hasAttr() const {
550
649k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())198k
;
551
649k
  }
bool clang::Decl::hasAttr<clang::NSReturnsAutoreleasedAttr>() const
Line
Count
Source
549
1.20k
  template<typename T> bool hasAttr() const {
550
1.20k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())95
;
551
1.20k
  }
bool clang::Decl::hasAttr<clang::ObjCRequiresSuperAttr>() const
Line
Count
Source
549
6.10k
  template<typename T> bool hasAttr() const {
550
6.10k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())848
;
551
6.10k
  }
bool clang::Decl::hasAttr<clang::ObjCRuntimeVisibleAttr>() const
Line
Count
Source
549
8.16k
  template<typename T> bool hasAttr() const {
550
8.16k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())778
;
551
8.16k
  }
bool clang::Decl::hasAttr<clang::ObjCRootClassAttr>() const
Line
Count
Source
549
4.85k
  template<typename T> bool hasAttr() const {
550
4.85k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())193
;
551
4.85k
  }
bool clang::Decl::hasAttr<clang::ObjCSubclassingRestrictedAttr>() const
Line
Count
Source
549
128k
  template<typename T> bool hasAttr() const {
550
128k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())75.3k
;
551
128k
  }
bool clang::Decl::hasAttr<clang::ObjCClassStubAttr>() const
Line
Count
Source
549
86.6k
  template<typename T> bool hasAttr() const {
550
86.6k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())32.3k
;
551
86.6k
  }
bool clang::Decl::hasAttr<clang::UnusedAttr>() const
Line
Count
Source
549
54.6M
  template<typename T> bool hasAttr() const {
550
54.6M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())25.5M
;
551
54.6M
  }
bool clang::Decl::hasAttr<clang::ObjCExternallyRetainedAttr>() const
Line
Count
Source
549
39
  template<typename T> bool hasAttr() const {
550
39
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())6
;
551
39
  }
bool clang::Decl::hasAttr<clang::CFConsumedAttr>() const
Line
Count
Source
549
2.10k
  template<typename T> bool hasAttr() const {
550
2.10k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())106
;
551
2.10k
  }
bool clang::Decl::hasAttr<clang::AnyX86InterruptAttr>() const
Line
Count
Source
549
7.76M
  template<typename T> bool hasAttr() const {
550
7.76M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())6.34M
;
551
7.76M
  }
bool clang::Decl::hasAttr<clang::ARMInterruptAttr>() const
Line
Count
Source
549
3.58M
  template<typename T> bool hasAttr() const {
550
3.58M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())3.02M
;
551
3.58M
  }
bool clang::Decl::hasAttr<clang::AnyX86NoCallerSavedRegistersAttr>() const
Line
Count
Source
549
677k
  template<typename T> bool hasAttr() const {
550
677k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())280k
;
551
677k
  }
bool clang::Decl::hasAttr<clang::CFReturnsNotRetainedAttr>() const
Line
Count
Source
549
4.77k
  template<typename T> bool hasAttr() const {
550
4.77k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())191
;
551
4.77k
  }
bool clang::Decl::hasAttr<clang::CFReturnsRetainedAttr>() const
Line
Count
Source
549
4.80k
  template<typename T> bool hasAttr() const {
550
4.80k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())263
;
551
4.80k
  }
bool clang::Decl::hasAttr<clang::LifetimeBoundAttr>() const
Line
Count
Source
549
3.77M
  template<typename T> bool hasAttr() const {
550
3.77M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())538
;
551
3.77M
  }
bool clang::Decl::hasAttr<clang::SelectAnyAttr>() const
Line
Count
Source
549
424k
  template<typename T> bool hasAttr() const {
550
424k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())34.5k
;
551
424k
  }
bool clang::Decl::hasAttr<clang::IBOutletAttr>() const
Line
Count
Source
549
732
  template<typename T> bool hasAttr() const {
550
732
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())32
;
551
732
  }
bool clang::Decl::hasAttr<clang::ObjCReturnsInnerPointerAttr>() const
Line
Count
Source
549
351k
  template<typename T> bool hasAttr() const {
550
351k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())86.3k
;
551
351k
  }
bool clang::Decl::hasAttr<clang::IBOutletCollectionAttr>() const
Line
Count
Source
549
6.13k
  template<typename T> bool hasAttr() const {
550
6.13k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())713
;
551
6.13k
  }
bool clang::Decl::hasAttr<clang::OMPAllocateDeclAttr>() const
Line
Count
Source
549
215k
  template<typename T> bool hasAttr() const {
550
215k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())33.3k
;
551
215k
  }
bool clang::Decl::hasAttr<clang::OMPCaptureNoInitAttr>() const
Line
Count
Source
549
8.90k
  template<typename T> bool hasAttr() const {
550
8.90k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())380
;
551
8.90k
  }
bool clang::Decl::hasAttr<clang::OMPDeclareVariantAttr>() const
Line
Count
Source
549
144k
  template<typename T> bool hasAttr() const {
550
144k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())9.82k
;
551
144k
  }
bool clang::Decl::hasAttr<clang::PassObjectSizeAttr>() const
Line
Count
Source
549
66.8M
  template<typename T> bool hasAttr() const {
550
66.8M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())50.4k
;
551
66.8M
  }
bool clang::Decl::hasAttr<clang::TrivialABIAttr>() const
Line
Count
Source
549
3.78M
  template<typename T> bool hasAttr() const {
550
3.78M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())553k
;
551
3.78M
  }
bool clang::Decl::hasAttr<clang::CmseNSEntryAttr>() const
Line
Count
Source
549
3.96M
  template<typename T> bool hasAttr() const {
550
3.96M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())3.19M
;
551
3.96M
  }
bool clang::Decl::hasAttr<clang::FlattenAttr>() const
Line
Count
Source
549
357k
  template<typename T> bool hasAttr() const {
550
357k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())93.8k
;
551
357k
  }
bool clang::Decl::hasAttr<clang::UsingIfExistsAttr>() const
Line
Count
Source
549
1.46k
  template<typename T> bool hasAttr() const {
550
1.46k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())28
;
551
1.46k
  }
bool clang::Decl::hasAttr<clang::OpenCLAccessAttr>() const
Line
Count
Source
549
8.14k
  template<typename T> bool hasAttr() const {
550
8.14k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())27
;
551
8.14k
  }
bool clang::Decl::hasAttr<clang::CalledOnceAttr>() const
Line
Count
Source
549
6.32k
  template<typename T> bool hasAttr() const {
550
6.32k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())234
;
551
6.32k
  }
bool clang::Decl::hasAttr<clang::ConsumableSetOnReadAttr>() const
Line
Count
Source
549
19
  template<typename T> bool hasAttr() const {
550
19
    return hasAttrs() && hasSpecificAttr<T>(getAttrs());
551
19
  }
bool clang::Decl::hasAttr<clang::TestTypestateAttr>() const
Line
Count
Source
549
231
  template<typename T> bool hasAttr() const {
550
231
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())218
;
551
231
  }
bool clang::Decl::hasAttr<clang::ConsumableAutoCastAttr>() const
Line
Count
Source
549
4
  template<typename T> bool hasAttr() const {
550
4
    return hasAttrs() && hasSpecificAttr<T>(getAttrs());
551
4
  }
bool clang::Decl::hasAttr<clang::NoThreadSafetyAnalysisAttr>() const
Line
Count
Source
549
8.39k
  template<typename T> bool hasAttr() const {
550
8.39k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())4.98k
;
551
8.39k
  }
bool clang::Decl::hasAttr<clang::ScopedLockableAttr>() const
Line
Count
Source
549
522
  template<typename T> bool hasAttr() const {
550
522
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())466
;
551
522
  }
bool clang::Decl::hasAttr<clang::PtGuardedVarAttr>() const
Line
Count
Source
549
462
  template<typename T> bool hasAttr() const {
550
462
    return hasAttrs() && hasSpecificAttr<T>(getAttrs());
551
462
  }
bool clang::Decl::hasAttr<clang::GuardedVarAttr>() const
Line
Count
Source
549
2.66k
  template<typename T> bool hasAttr() const {
550
2.66k
    return hasAttrs() && hasSpecificAttr<T>(getAttrs());
551
2.66k
  }
bool clang::Decl::hasAttr<clang::AnalyzerNoReturnAttr>() const
Line
Count
Source
549
109k
  template<typename T> bool hasAttr() const {
550
109k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())12.1k
;
551
109k
  }
bool clang::Decl::hasAttr<clang::StdCallAttr>() const
Line
Count
Source
549
27.6k
  template<typename T> bool hasAttr() const {
550
27.6k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())5.70k
;
551
27.6k
  }
bool clang::Decl::hasAttr<clang::FastCallAttr>() const
Line
Count
Source
549
27.6k
  template<typename T> bool hasAttr() const {
550
27.6k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())5.70k
;
551
27.6k
  }
bool clang::Decl::hasAttr<clang::RegCallAttr>() const
Line
Count
Source
549
27.6k
  template<typename T> bool hasAttr() const {
550
27.6k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())5.70k
;
551
27.6k
  }
bool clang::Decl::hasAttr<clang::ThisCallAttr>() const
Line
Count
Source
549
27.6k
  template<typename T> bool hasAttr() const {
550
27.6k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())5.70k
;
551
27.6k
  }
bool clang::Decl::hasAttr<clang::VectorCallAttr>() const
Line
Count
Source
549
27.6k
  template<typename T> bool hasAttr() const {
550
27.6k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())5.70k
;
551
27.6k
  }
bool clang::Decl::hasAttr<clang::PascalAttr>() const
Line
Count
Source
549
27.6k
  template<typename T> bool hasAttr() const {
550
27.6k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())5.70k
;
551
27.6k
  }
bool clang::Decl::hasAttr<clang::AArch64VectorPcsAttr>() const
Line
Count
Source
549
27.6k
  template<typename T> bool hasAttr() const {
550
27.6k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())5.70k
;
551
27.6k
  }
bool clang::Decl::hasAttr<clang::AArch64SVEPcsAttr>() const
Line
Count
Source
549
27.6k
  template<typename T> bool hasAttr() const {
550
27.6k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())5.70k
;
551
27.6k
  }
bool clang::Decl::hasAttr<clang::AMDGPUKernelCallAttr>() const
Line
Count
Source
549
27.6k
  template<typename T> bool hasAttr() const {
550
27.6k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())5.70k
;
551
27.6k
  }
bool clang::Decl::hasAttr<clang::IntelOclBiccAttr>() const
Line
Count
Source
549
27.6k
  template<typename T> bool hasAttr() const {
550
27.6k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())5.70k
;
551
27.6k
  }
bool clang::Decl::hasAttr<clang::MSABIAttr>() const
Line
Count
Source
549
27.6k
  template<typename T> bool hasAttr() const {
550
27.6k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())5.70k
;
551
27.6k
  }
bool clang::Decl::hasAttr<clang::SysVABIAttr>() const
Line
Count
Source
549
27.6k
  template<typename T> bool hasAttr() const {
550
27.6k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())5.70k
;
551
27.6k
  }
bool clang::Decl::hasAttr<clang::PreserveMostAttr>() const
Line
Count
Source
549
27.6k
  template<typename T> bool hasAttr() const {
550
27.6k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())5.70k
;
551
27.6k
  }
bool clang::Decl::hasAttr<clang::PreserveAllAttr>() const
Line
Count
Source
549
27.6k
  template<typename T> bool hasAttr() const {
550
27.6k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())5.70k
;
551
27.6k
  }
bool clang::Decl::hasAttr<clang::DisableTailCallsAttr>() const
Line
Count
Source
549
335k
  template<typename T> bool hasAttr() const {
550
335k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())111k
;
551
335k
  }
bool clang::Decl::hasAttr<clang::ConvergentAttr>() const
Line
Count
Source
549
677k
  template<typename T> bool hasAttr() const {
550
677k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())280k
;
551
677k
  }
bool clang::Decl::hasAttr<clang::NoMergeAttr>() const
Line
Count
Source
549
336k
  template<typename T> bool hasAttr() const {
550
336k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())168k
;
551
336k
  }
bool clang::Decl::hasAttr<clang::NoAliasAttr>() const
Line
Count
Source
549
675k
  template<typename T> bool hasAttr() const {
550
675k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())278k
;
551
675k
  }
bool clang::Decl::hasAttr<clang::RestrictAttr>() const
Line
Count
Source
549
677k
  template<typename T> bool hasAttr() const {
550
677k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())280k
;
551
677k
  }
bool clang::Decl::hasAttr<clang::AnyX86NoCfCheckAttr>() const
Line
Count
Source
549
677k
  template<typename T> bool hasAttr() const {
550
677k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())280k
;
551
677k
  }
bool clang::Decl::hasAttr<clang::LeafAttr>() const
Line
Count
Source
549
677k
  template<typename T> bool hasAttr() const {
550
677k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())280k
;
551
677k
  }
bool clang::Decl::hasAttr<clang::NoSpeculativeLoadHardeningAttr>() const
Line
Count
Source
549
677k
  template<typename T> bool hasAttr() const {
550
677k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())280k
;
551
677k
  }
bool clang::Decl::hasAttr<clang::SpeculativeLoadHardeningAttr>() const
Line
Count
Source
549
677k
  template<typename T> bool hasAttr() const {
550
677k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())280k
;
551
677k
  }
bool clang::Decl::hasAttr<clang::NoSplitStackAttr>() const
Line
Count
Source
549
677k
  template<typename T> bool hasAttr() const {
550
677k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())280k
;
551
677k
  }
bool clang::Decl::hasAttr<clang::ZeroCallUsedRegsAttr>() const
Line
Count
Source
549
677k
  template<typename T> bool hasAttr() const {
550
677k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())280k
;
551
677k
  }
bool clang::Decl::hasAttr<clang::NotTailCalledAttr>() const
Line
Count
Source
549
313k
  template<typename T> bool hasAttr() const {
550
313k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())150k
;
551
313k
  }
bool clang::Decl::hasAttr<clang::MSAllocatorAttr>() const
Line
Count
Source
549
233k
  template<typename T> bool hasAttr() const {
550
233k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())126k
;
551
233k
  }
bool clang::Decl::hasAttr<clang::StandaloneDebugAttr>() const
Line
Count
Source
549
3.12k
  template<typename T> bool hasAttr() const {
550
3.12k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())307
;
551
3.12k
  }
bool clang::Decl::hasAttr<clang::NoDebugAttr>() const
Line
Count
Source
549
1.25M
  template<typename T> bool hasAttr() const {
550
1.25M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())417k
;
551
1.25M
  }
bool clang::Decl::hasAttr<clang::BTFDeclTagAttr>() const
Line
Count
Source
549
1.04M
  template<typename T> bool hasAttr() const {
550
1.04M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())208k
;
551
1.04M
  }
bool clang::Decl::hasAttr<clang::ArtificialAttr>() const
Line
Count
Source
549
94.2k
  template<typename T> bool hasAttr() const {
550
94.2k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())65.3k
;
551
94.2k
  }
bool clang::Decl::hasAttr<clang::ObjCNonLazyClassAttr>() const
Line
Count
Source
549
2.21k
  template<typename T> bool hasAttr() const {
550
2.21k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())66
;
551
2.21k
  }
bool clang::Decl::hasAttr<clang::LTOVisibilityPublicAttr>() const
Line
Count
Source
549
387
  template<typename T> bool hasAttr() const {
550
387
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())91
;
551
387
  }
bool clang::Decl::hasAttr<clang::UuidAttr>() const
Line
Count
Source
549
361
  template<typename T> bool hasAttr() const {
550
361
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())65
;
551
361
  }
bool clang::Decl::hasAttr<clang::NoInstrumentFunctionAttr>() const
Line
Count
Source
549
183
  template<typename T> bool hasAttr() const {
550
183
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())50
;
551
183
  }
bool clang::Decl::hasAttr<clang::DisableSanitizerInstrumentationAttr>() const
Line
Count
Source
549
298k
  template<typename T> bool hasAttr() const {
550
298k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())97.6k
;
551
298k
  }
bool clang::Decl::hasAttr<clang::CFICanonicalJumpTableAttr>() const
Line
Count
Source
549
305k
  template<typename T> bool hasAttr() const {
550
305k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())99.6k
;
551
305k
  }
bool clang::Decl::hasAttr<clang::NoProfileFunctionAttr>() const
Line
Count
Source
549
305k
  template<typename T> bool hasAttr() const {
550
305k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())99.6k
;
551
305k
  }
bool clang::Decl::hasAttr<clang::NoCommonAttr>() const
Line
Count
Source
549
41
  template<typename T> bool hasAttr() const {
550
41
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())2
;
551
41
  }
bool clang::Decl::hasAttr<clang::CommonAttr>() const
Line
Count
Source
549
6.51k
  template<typename T> bool hasAttr() const {
550
6.51k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())244
;
551
6.51k
  }
bool clang::Decl::hasAttr<clang::PragmaClangBSSSectionAttr>() const
Line
Count
Source
549
18
  template<typename T> bool hasAttr() const {
550
18
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())3
;
551
18
  }
bool clang::Decl::hasAttr<clang::PragmaClangDataSectionAttr>() const
Line
Count
Source
549
18
  template<typename T> bool hasAttr() const {
550
18
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())3
;
551
18
  }
bool clang::Decl::hasAttr<clang::PragmaClangRelroSectionAttr>() const
Line
Count
Source
549
18
  template<typename T> bool hasAttr() const {
550
18
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())3
;
551
18
  }
bool clang::Decl::hasAttr<clang::PragmaClangRodataSectionAttr>() const
Line
Count
Source
549
18
  template<typename T> bool hasAttr() const {
550
18
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())3
;
551
18
  }
bool clang::Decl::hasAttr<clang::NoStackProtectorAttr>() const
Line
Count
Source
549
299k
  template<typename T> bool hasAttr() const {
550
299k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())98.4k
;
551
299k
  }
bool clang::Decl::hasAttr<clang::NoDuplicateAttr>() const
Line
Count
Source
549
747k
  template<typename T> bool hasAttr() const {
550
747k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())298k
;
551
747k
  }
bool clang::Decl::hasAttr<clang::ColdAttr>() const
Line
Count
Source
549
976k
  template<typename T> bool hasAttr() const {
550
976k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())378k
;
551
976k
  }
bool clang::Decl::hasAttr<clang::HotAttr>() const
Line
Count
Source
549
976k
  template<typename T> bool hasAttr() const {
550
976k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())378k
;
551
976k
  }
bool clang::Decl::hasAttr<clang::RetainAttr>() const
Line
Count
Source
549
335k
  template<typename T> bool hasAttr() const {
550
335k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())101k
;
551
335k
  }
bool clang::Decl::hasAttr<clang::OMPDeclareSimdDeclAttr>() const
Line
Count
Source
549
36.6k
  template<typename T> bool hasAttr() const {
550
36.6k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())2.52k
;
551
36.6k
  }
bool clang::Decl::hasAttr<clang::AnnotateAttr>() const
Line
Count
Source
549
1.26M
  template<typename T> bool hasAttr() const {
550
1.26M
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())103k
;
551
1.26M
  }
bool clang::Decl::hasAttr<clang::MayAliasAttr>() const
Line
Count
Source
549
805k
  template<typename T> bool hasAttr() const {
550
805k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())76.1k
;
551
805k
  }
bool clang::Decl::hasAttr<clang::MSNoVTableAttr>() const
Line
Count
Source
549
856
  template<typename T> bool hasAttr() const {
550
856
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())178
;
551
856
  }
bool clang::Decl::hasAttr<clang::MipsLongCallAttr>() const
Line
Count
Source
549
771
  template<typename T> bool hasAttr() const {
550
771
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())145
;
551
771
  }
bool clang::Decl::hasAttr<clang::MipsShortCallAttr>() const
Line
Count
Source
549
765
  template<typename T> bool hasAttr() const {
550
765
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())139
;
551
765
  }
bool clang::Decl::hasAttr<clang::Mips16Attr>() const
Line
Count
Source
549
362
  template<typename T> bool hasAttr() const {
550
362
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())65
;
551
362
  }
bool clang::Decl::hasAttr<clang::NoMips16Attr>() const
Line
Count
Source
549
361
  template<typename T> bool hasAttr() const {
550
361
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())64
;
551
361
  }
bool clang::Decl::hasAttr<clang::MicroMipsAttr>() const
Line
Count
Source
549
362
  template<typename T> bool hasAttr() const {
550
362
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())65
;
551
362
  }
bool clang::Decl::hasAttr<clang::NoMicroMipsAttr>() const
Line
Count
Source
549
361
  template<typename T> bool hasAttr() const {
550
361
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())64
;
551
361
  }
bool clang::Decl::hasAttr<clang::X86ForceAlignArgPointerAttr>() const
Line
Count
Source
549
191k
  template<typename T> bool hasAttr() const {
550
191k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())89.4k
;
551
191k
  }
bool clang::Decl::hasAttr<clang::ObjCExceptionAttr>() const
Line
Count
Source
549
2.04k
  template<typename T> bool hasAttr() const {
550
2.04k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())636
;
551
2.04k
  }
bool clang::Decl::hasAttr<clang::AcquireHandleAttr>() const
Line
Count
Source
549
526
  template<typename T> bool hasAttr() const {
550
526
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())198
;
551
526
  }
bool clang::Decl::hasAttr<clang::ReleaseHandleAttr>() const
Line
Count
Source
549
450
  template<typename T> bool hasAttr() const {
550
450
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())379
;
551
450
  }
bool clang::Decl::hasAttr<clang::UseHandleAttr>() const
Line
Count
Source
549
169
  template<typename T> bool hasAttr() const {
550
169
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())136
;
551
169
  }
bool clang::Decl::hasAttr<clang::OwnershipAttr>() const
Line
Count
Source
549
8
  template<typename T> bool hasAttr() const {
550
8
    return hasAttrs() && hasSpecificAttr<T>(getAttrs());
551
8
  }
bool clang::Decl::hasAttr<clang::MIGServerRoutineAttr>() const
Line
Count
Source
549
144
  template<typename T> bool hasAttr() const {
550
144
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())52
;
551
144
  }
bool clang::Decl::hasAttr<clang::ReinitializesAttr>() const
Line
Count
Source
549
8.22k
  template<typename T> bool hasAttr() const {
550
8.22k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())8
;
551
8.22k
  }
bool clang::Decl::hasAttr<clang::OSReturnsRetainedAttr>() const
Line
Count
Source
549
453
  template<typename T> bool hasAttr() const {
550
453
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())28
;
551
453
  }
RetainSummaryManager.cpp:bool clang::Decl::hasAttr<(anonymous namespace)::GeneralizedReturnsRetainedAttr>() const
Line
Count
Source
549
4.39k
  template<typename T> bool hasAttr() const {
550
4.39k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())127
;
551
4.39k
  }
bool clang::Decl::hasAttr<clang::OSReturnsNotRetainedAttr>() const
Line
Count
Source
549
487
  template<typename T> bool hasAttr() const {
550
487
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())14
;
551
487
  }
RetainSummaryManager.cpp:bool clang::Decl::hasAttr<(anonymous namespace)::GeneralizedReturnsNotRetainedAttr>() const
Line
Count
Source
549
4.37k
  template<typename T> bool hasAttr() const {
550
4.37k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())99
;
551
4.37k
  }
bool clang::Decl::hasAttr<clang::OSConsumedAttr>() const
Line
Count
Source
549
223
  template<typename T> bool hasAttr() const {
550
223
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())25
;
551
223
  }
RetainSummaryManager.cpp:bool clang::Decl::hasAttr<(anonymous namespace)::GeneralizedConsumedAttr>() const
Line
Count
Source
549
2.01k
  template<typename T> bool hasAttr() const {
550
2.01k
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())50
;
551
2.01k
  }
bool clang::Decl::hasAttr<clang::OSReturnsRetainedOnZeroAttr>() const
Line
Count
Source
549
161
  template<typename T> bool hasAttr() const {
550
161
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())17
;
551
161
  }
bool clang::Decl::hasAttr<clang::OSReturnsRetainedOnNonZeroAttr>() const
Line
Count
Source
549
162
  template<typename T> bool hasAttr() const {
550
162
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())18
;
551
162
  }
bool clang::Decl::hasAttr<clang::OSConsumesThisAttr>() const
Line
Count
Source
549
264
  template<typename T> bool hasAttr() const {
550
264
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())10
;
551
264
  }
bool clang::Decl::hasAttr<clang::IBActionAttr>() const
Line
Count
Source
549
401
  template<typename T> bool hasAttr() const {
550
401
    return hasAttrs() && 
hasSpecificAttr<T>(getAttrs())26
;
551
401
  }
552
553
  /// getMaxAlignment - return the maximum alignment specified by attributes
554
  /// on this decl, 0 if there are none.
555
  unsigned getMaxAlignment() const;
556
557
  /// setInvalidDecl - Indicates the Decl had a semantic error. This
558
  /// allows for graceful error recovery.
559
  void setInvalidDecl(bool Invalid = true);
560
916M
  bool isInvalidDecl() const { return (bool) InvalidDecl; }
561
562
  /// isImplicit - Indicates whether the declaration was implicitly
563
  /// generated by the implementation. If false, this declaration
564
  /// was written explicitly in the source code.
565
106M
  bool isImplicit() const { return Implicit; }
566
27.3M
  void setImplicit(bool I = true) { Implicit = I; }
567
568
  /// Whether *any* (re-)declaration of the entity was used, meaning that
569
  /// a definition is required.
570
  ///
571
  /// \param CheckUsedAttr When true, also consider the "used" attribute
572
  /// (in addition to the "used" bit set by \c setUsed()) when determining
573
  /// whether the function is used.
574
  bool isUsed(bool CheckUsedAttr = true) const;
575
576
  /// Set whether the declaration is used, in the sense of odr-use.
577
  ///
578
  /// This should only be used immediately after creating a declaration.
579
  /// It intentionally doesn't notify any listeners.
580
8.99M
  void setIsUsed() { getCanonicalDecl()->Used = true; }
581
582
  /// Mark the declaration used, in the sense of odr-use.
583
  ///
584
  /// This notifies any mutation listeners in addition to setting a bit
585
  /// indicating the declaration is used.
586
  void markUsed(ASTContext &C);
587
588
  /// Whether any declaration of this entity was referenced.
589
  bool isReferenced() const;
590
591
  /// Whether this declaration was referenced. This should not be relied
592
  /// upon for anything other than debugging.
593
24.2k
  bool isThisDeclarationReferenced() const { return Referenced; }
594
595
133M
  void setReferenced(bool R = true) { Referenced = R; }
596
597
  /// Whether this declaration is a top-level declaration (function,
598
  /// global variable, etc.) that is lexically inside an objc container
599
  /// definition.
600
4.53M
  bool isTopLevelDeclInObjCContainer() const {
601
4.53M
    return TopLevelDeclInObjCContainer;
602
4.53M
  }
603
604
9.99M
  void setTopLevelDeclInObjCContainer(bool V = true) {
605
9.99M
    TopLevelDeclInObjCContainer = V;
606
9.99M
  }
607
608
  /// Looks on this and related declarations for an applicable
609
  /// external source symbol attribute.
610
  ExternalSourceSymbolAttr *getExternalSourceSymbolAttr() const;
611
612
  /// Whether this declaration was marked as being private to the
613
  /// module in which it was defined.
614
1.89M
  bool isModulePrivate() const {
615
1.89M
    return getModuleOwnershipKind() == ModuleOwnershipKind::ModulePrivate;
616
1.89M
  }
617
618
  /// Whether this declaration was exported in a lexical context.
619
  /// e.g.:
620
  ///
621
  ///   export namespace A {
622
  ///      void f1();        // isInExportDeclContext() == true
623
  ///   }
624
  ///   void A::f1();        // isInExportDeclContext() == false
625
  ///
626
  ///   namespace B {
627
  ///      void f2();        // isInExportDeclContext() == false
628
  ///   }
629
  ///   export void B::f2(); // isInExportDeclContext() == true
630
  bool isInExportDeclContext() const;
631
632
1.48M
  bool isInvisibleOutsideTheOwningModule() const {
633
1.48M
    return getModuleOwnershipKind() > ModuleOwnershipKind::VisibleWhenImported;
634
1.48M
  }
635
636
  /// FIXME: Implement discarding declarations actually in global module
637
  /// fragment. See [module.global.frag]p3,4 for details.
638
0
  bool isDiscardedInGlobalModuleFragment() const { return false; }
639
640
  /// Return true if this declaration has an attribute which acts as
641
  /// definition of the entity, such as 'alias' or 'ifunc'.
642
  bool hasDefiningAttr() const;
643
644
  /// Return this declaration's defining attribute if it has one.
645
  const Attr *getDefiningAttr() const;
646
647
protected:
648
  /// Specify that this declaration was marked as being private
649
  /// to the module in which it was defined.
650
44
  void setModulePrivate() {
651
    // The module-private specifier has no effect on unowned declarations.
652
    // FIXME: We should track this in some way for source fidelity.
653
44
    if (getModuleOwnershipKind() == ModuleOwnershipKind::Unowned)
654
24
      return;
655
20
    setModuleOwnershipKind(ModuleOwnershipKind::ModulePrivate);
656
20
  }
657
658
public:
659
  /// Set the FromASTFile flag. This indicates that this declaration
660
  /// was deserialized and not parsed from source code and enables
661
  /// features such as module ownership information.
662
81.5k
  void setFromASTFile() {
663
81.5k
    FromASTFile = true;
664
81.5k
  }
665
666
  /// Set the owning module ID.  This may only be called for
667
  /// deserialized Decls.
668
9.52M
  void setOwningModuleID(unsigned ID) {
669
9.52M
    assert(isFromASTFile() && "Only works on a deserialized declaration");
670
0
    *((unsigned*)this - 2) = ID;
671
9.52M
  }
672
673
public:
674
  /// Determine the availability of the given declaration.
675
  ///
676
  /// This routine will determine the most restrictive availability of
677
  /// the given declaration (e.g., preferring 'unavailable' to
678
  /// 'deprecated').
679
  ///
680
  /// \param Message If non-NULL and the result is not \c
681
  /// AR_Available, will be set to a (possibly empty) message
682
  /// describing why the declaration has not been introduced, is
683
  /// deprecated, or is unavailable.
684
  ///
685
  /// \param EnclosingVersion The version to compare with. If empty, assume the
686
  /// deployment target version.
687
  ///
688
  /// \param RealizedPlatform If non-NULL and the availability result is found
689
  /// in an available attribute it will set to the platform which is written in
690
  /// the available attribute.
691
  AvailabilityResult
692
  getAvailability(std::string *Message = nullptr,
693
                  VersionTuple EnclosingVersion = VersionTuple(),
694
                  StringRef *RealizedPlatform = nullptr) const;
695
696
  /// Retrieve the version of the target platform in which this
697
  /// declaration was introduced.
698
  ///
699
  /// \returns An empty version tuple if this declaration has no 'introduced'
700
  /// availability attributes, or the version tuple that's specified in the
701
  /// attribute otherwise.
702
  VersionTuple getVersionIntroduced() const;
703
704
  /// Determine whether this declaration is marked 'deprecated'.
705
  ///
706
  /// \param Message If non-NULL and the declaration is deprecated,
707
  /// this will be set to the message describing why the declaration
708
  /// was deprecated (which may be empty).
709
1.41M
  bool isDeprecated(std::string *Message = nullptr) const {
710
1.41M
    return getAvailability(Message) == AR_Deprecated;
711
1.41M
  }
712
713
  /// Determine whether this declaration is marked 'unavailable'.
714
  ///
715
  /// \param Message If non-NULL and the declaration is unavailable,
716
  /// this will be set to the message describing why the declaration
717
  /// was made unavailable (which may be empty).
718
1.15M
  bool isUnavailable(std::string *Message = nullptr) const {
719
1.15M
    return getAvailability(Message) == AR_Unavailable;
720
1.15M
  }
721
722
  /// Determine whether this is a weak-imported symbol.
723
  ///
724
  /// Weak-imported symbols are typically marked with the
725
  /// 'weak_import' attribute, but may also be marked with an
726
  /// 'availability' attribute where we're targing a platform prior to
727
  /// the introduction of this feature.
728
  bool isWeakImported() const;
729
730
  /// Determines whether this symbol can be weak-imported,
731
  /// e.g., whether it would be well-formed to add the weak_import
732
  /// attribute.
733
  ///
734
  /// \param IsDefinition Set to \c true to indicate that this
735
  /// declaration cannot be weak-imported because it has a definition.
736
  bool canBeWeakImported(bool &IsDefinition) const;
737
738
  /// Determine whether this declaration came from an AST file (such as
739
  /// a precompiled header or module) rather than having been parsed.
740
389M
  bool isFromASTFile() const { return FromASTFile; }
741
742
  /// Retrieve the global declaration ID associated with this
743
  /// declaration, which specifies where this Decl was loaded from.
744
556k
  unsigned getGlobalID() const {
745
556k
    if (isFromASTFile())
746
556k
      return *((const unsigned*)this - 1);
747
0
    return 0;
748
556k
  }
749
750
  /// Retrieve the global ID of the module that owns this particular
751
  /// declaration.
752
3.22M
  unsigned getOwningModuleID() const {
753
3.22M
    if (isFromASTFile())
754
3.16M
      return *((const unsigned*)this - 2);
755
59.3k
    return 0;
756
3.22M
  }
757
758
private:
759
  Module *getOwningModuleSlow() const;
760
761
protected:
762
  bool hasLocalOwningModuleStorage() const;
763
764
public:
765
  /// Get the imported owning module, if this decl is from an imported
766
  /// (non-local) module.
767
3.55M
  Module *getImportedOwningModule() const {
768
3.55M
    if (!isFromASTFile() || 
!hasOwningModule()3.43M
)
769
524k
      return nullptr;
770
771
3.02M
    return getOwningModuleSlow();
772
3.55M
  }
773
774
  /// Get the local owning module, if known. Returns nullptr if owner is
775
  /// not yet known or declaration is not from a module.
776
79.6M
  Module *getLocalOwningModule() const {
777
79.6M
    if (isFromASTFile() || 
!hasOwningModule()79.6M
)
778
70.3M
      return nullptr;
779
780
9.30M
    assert(hasLocalOwningModuleStorage() &&
781
9.30M
           "owned local decl but no local module storage");
782
0
    return reinterpret_cast<Module *const *>(this)[-1];
783
79.6M
  }
784
328k
  void setLocalOwningModule(Module *M) {
785
328k
    assert(!isFromASTFile() && hasOwningModule() &&
786
328k
           hasLocalOwningModuleStorage() &&
787
328k
           "should not have a cached owning module");
788
0
    reinterpret_cast<Module **>(this)[-1] = M;
789
328k
  }
790
791
  /// Is this declaration owned by some module?
792
84.1M
  bool hasOwningModule() const {
793
84.1M
    return getModuleOwnershipKind() != ModuleOwnershipKind::Unowned;
794
84.1M
  }
795
796
  /// Get the module that owns this declaration (for visibility purposes).
797
80.6M
  Module *getOwningModule() const {
798
80.6M
    return isFromASTFile() ? 
getImportedOwningModule()1.00M
:
getLocalOwningModule()79.6M
;
799
80.6M
  }
800
801
  /// Get the module that owns this declaration for linkage purposes.
802
  /// There only ever is such a module under the C++ Modules TS.
803
  ///
804
  /// \param IgnoreLinkage Ignore the linkage of the entity; assume that
805
  /// all declarations in a global module fragment are unowned.
806
  Module *getOwningModuleForLinkage(bool IgnoreLinkage = false) const;
807
808
  /// Determine whether this declaration is definitely visible to name lookup,
809
  /// independent of whether the owning module is visible.
810
  /// Note: The declaration may be visible even if this returns \c false if the
811
  /// owning module is visible within the query context. This is a low-level
812
  /// helper function; most code should be calling Sema::isVisible() instead.
813
355M
  bool isUnconditionallyVisible() const {
814
355M
    return (int)getModuleOwnershipKind() <= (int)ModuleOwnershipKind::Visible;
815
355M
  }
816
817
0
  bool isReachable() const {
818
0
    return (int)getModuleOwnershipKind() <=
819
0
           (int)ModuleOwnershipKind::ReachableWhenImported;
820
0
  }
821
822
  /// Set that this declaration is globally visible, even if it came from a
823
  /// module that is not visible.
824
10.0M
  void setVisibleDespiteOwningModule() {
825
10.0M
    if (!isUnconditionallyVisible())
826
8.91M
      setModuleOwnershipKind(ModuleOwnershipKind::Visible);
827
10.0M
  }
828
829
  /// Get the kind of module ownership for this declaration.
830
606M
  ModuleOwnershipKind getModuleOwnershipKind() const {
831
606M
    return NextInContextAndBits.getInt();
832
606M
  }
833
834
  /// Set whether this declaration is hidden from name lookup.
835
19.3M
  void setModuleOwnershipKind(ModuleOwnershipKind MOK) {
836
19.3M
    assert(!(getModuleOwnershipKind() == ModuleOwnershipKind::Unowned &&
837
19.3M
             MOK != ModuleOwnershipKind::Unowned && !isFromASTFile() &&
838
19.3M
             !hasLocalOwningModuleStorage()) &&
839
19.3M
           "no storage available for owning module for this declaration");
840
0
    NextInContextAndBits.setInt(MOK);
841
19.3M
  }
842
843
343M
  unsigned getIdentifierNamespace() const {
844
343M
    return IdentifierNamespace;
845
343M
  }
846
847
282M
  bool isInIdentifierNamespace(unsigned NS) const {
848
282M
    return getIdentifierNamespace() & NS;
849
282M
  }
850
851
  static unsigned getIdentifierNamespaceForKind(Kind DK);
852
853
12.3k
  bool hasTagIdentifierNamespace() const {
854
12.3k
    return isTagIdentifierNamespace(getIdentifierNamespace());
855
12.3k
  }
856
857
12.3k
  static bool isTagIdentifierNamespace(unsigned NS) {
858
    // TagDecls have Tag and Type set and may also have TagFriend.
859
12.3k
    return (NS & ~IDNS_TagFriend) == (IDNS_Tag | IDNS_Type);
860
12.3k
  }
861
862
  /// getLexicalDeclContext - The declaration context where this Decl was
863
  /// lexically declared (LexicalDC). May be different from
864
  /// getDeclContext() (SemanticDC).
865
  /// e.g.:
866
  ///
867
  ///   namespace A {
868
  ///      void f(); // SemanticDC == LexicalDC == 'namespace A'
869
  ///   }
870
  ///   void A::f(); // SemanticDC == namespace 'A'
871
  ///                // LexicalDC == global namespace
872
472M
  DeclContext *getLexicalDeclContext() {
873
472M
    if (isInSemaDC())
874
447M
      return getSemanticDC();
875
24.2M
    return getMultipleDC()->LexicalDC;
876
472M
  }
877
248M
  const DeclContext *getLexicalDeclContext() const {
878
248M
    return const_cast<Decl*>(this)->getLexicalDeclContext();
879
248M
  }
880
881
  /// Determine whether this declaration is declared out of line (outside its
882
  /// semantic context).
883
  virtual bool isOutOfLine() const;
884
885
  /// setDeclContext - Set both the semantic and lexical DeclContext
886
  /// to DC.
887
  void setDeclContext(DeclContext *DC);
888
889
  void setLexicalDeclContext(DeclContext *DC);
890
891
  /// Determine whether this declaration is a templated entity (whether it is
892
  // within the scope of a template parameter).
893
  bool isTemplated() const;
894
895
  /// Determine the number of levels of template parameter surrounding this
896
  /// declaration.
897
  unsigned getTemplateDepth() const;
898
899
  /// isDefinedOutsideFunctionOrMethod - This predicate returns true if this
900
  /// scoped decl is defined outside the current function or method.  This is
901
  /// roughly global variables and functions, but also handles enums (which
902
  /// could be defined inside or outside a function etc).
903
2.03M
  bool isDefinedOutsideFunctionOrMethod() const {
904
2.03M
    return getParentFunctionOrMethod() == nullptr;
905
2.03M
  }
906
907
  /// Determine whether a substitution into this declaration would occur as
908
  /// part of a substitution into a dependent local scope. Such a substitution
909
  /// transitively substitutes into all constructs nested within this
910
  /// declaration.
911
  ///
912
  /// This recognizes non-defining declarations as well as members of local
913
  /// classes and lambdas:
914
  /// \code
915
  ///     template<typename T> void foo() { void bar(); }
916
  ///     template<typename T> void foo2() { class ABC { void bar(); }; }
917
  ///     template<typename T> inline int x = [](){ return 0; }();
918
  /// \endcode
919
  bool isInLocalScopeForInstantiation() const;
920
921
  /// If this decl is defined inside a function/method/block it returns
922
  /// the corresponding DeclContext, otherwise it returns null.
923
  const DeclContext *getParentFunctionOrMethod() const;
924
22.4k
  DeclContext *getParentFunctionOrMethod() {
925
22.4k
    return const_cast<DeclContext*>(
926
22.4k
                    const_cast<const Decl*>(this)->getParentFunctionOrMethod());
927
22.4k
  }
928
929
  /// Retrieves the "canonical" declaration of the given declaration.
930
22.4M
  virtual Decl *getCanonicalDecl() { return this; }
931
372M
  const Decl *getCanonicalDecl() const {
932
372M
    return const_cast<Decl*>(this)->getCanonicalDecl();
933
372M
  }
934
935
  /// Whether this particular Decl is a canonical one.
936
5.69M
  bool isCanonicalDecl() const { return getCanonicalDecl() == this; }
937
938
protected:
939
  /// Returns the next redeclaration or itself if this is the only decl.
940
  ///
941
  /// Decl subclasses that can be redeclared should override this method so that
942
  /// Decl::redecl_iterator can iterate over them.
943
4.47M
  virtual Decl *getNextRedeclarationImpl() { return this; }
944
945
  /// Implementation of getPreviousDecl(), to be overridden by any
946
  /// subclass that has a redeclaration chain.
947
9.95M
  virtual Decl *getPreviousDeclImpl() { return nullptr; }
948
949
  /// Implementation of getMostRecentDecl(), to be overridden by any
950
  /// subclass that has a redeclaration chain.
951
14.6M
  virtual Decl *getMostRecentDeclImpl() { return this; }
952
953
public:
954
  /// Iterates through all the redeclarations of the same decl.
955
  class redecl_iterator {
956
    /// Current - The current declaration.
957
    Decl *Current = nullptr;
958
    Decl *Starter;
959
960
  public:
961
    using value_type = Decl *;
962
    using reference = const value_type &;
963
    using pointer = const value_type *;
964
    using iterator_category = std::forward_iterator_tag;
965
    using difference_type = std::ptrdiff_t;
966
967
107M
    redecl_iterator() = default;
968
107M
    explicit redecl_iterator(Decl *C) : Current(C), Starter(C) {}
969
970
155M
    reference operator*() const { return Current; }
971
0
    value_type operator->() const { return Current; }
972
973
154M
    redecl_iterator& operator++() {
974
154M
      assert(Current && "Advancing while iterator has reached end");
975
      // Get either previous decl or latest decl.
976
0
      Decl *Next = Current->getNextRedeclarationImpl();
977
154M
      assert(Next && "Should return next redeclaration or itself, never null!");
978
154M
      Current = (Next != Starter) ? 
Next47.9M
:
nullptr107M
;
979
154M
      return *this;
980
154M
    }
981
982
0
    redecl_iterator operator++(int) {
983
0
      redecl_iterator tmp(*this);
984
0
      ++(*this);
985
0
      return tmp;
986
0
    }
987
988
0
    friend bool operator==(redecl_iterator x, redecl_iterator y) {
989
0
      return x.Current == y.Current;
990
0
    }
991
992
262M
    friend bool operator!=(redecl_iterator x, redecl_iterator y) {
993
262M
      return x.Current != y.Current;
994
262M
    }
995
  };
996
997
  using redecl_range = llvm::iterator_range<redecl_iterator>;
998
999
  /// Returns an iterator range for all the redeclarations of the same
1000
  /// decl. It will iterate at least once (when this decl is the only one).
1001
107M
  redecl_range redecls() const {
1002
107M
    return redecl_range(redecls_begin(), redecls_end());
1003
107M
  }
1004
1005
107M
  redecl_iterator redecls_begin() const {
1006
107M
    return redecl_iterator(const_cast<Decl *>(this));
1007
107M
  }
1008
1009
107M
  redecl_iterator redecls_end() const { return redecl_iterator(); }
1010
1011
  /// Retrieve the previous declaration that declares the same entity
1012
  /// as this declaration, or NULL if there is no previous declaration.
1013
26.3M
  Decl *getPreviousDecl() { return getPreviousDeclImpl(); }
1014
1015
  /// Retrieve the previous declaration that declares the same entity
1016
  /// as this declaration, or NULL if there is no previous declaration.
1017
51.0M
  const Decl *getPreviousDecl() const {
1018
51.0M
    return const_cast<Decl *>(this)->getPreviousDeclImpl();
1019
51.0M
  }
1020
1021
  /// True if this is the first declaration in its redeclaration chain.
1022
49
  bool isFirstDecl() const {
1023
49
    return getPreviousDecl() == nullptr;
1024
49
  }
1025
1026
  /// Retrieve the most recent declaration that declares the same entity
1027
  /// as this declaration (which may be this declaration).
1028
52.7M
  Decl *getMostRecentDecl() { return getMostRecentDeclImpl(); }
1029
1030
  /// Retrieve the most recent declaration that declares the same entity
1031
  /// as this declaration (which may be this declaration).
1032
168M
  const Decl *getMostRecentDecl() const {
1033
168M
    return const_cast<Decl *>(this)->getMostRecentDeclImpl();
1034
168M
  }
1035
1036
  /// getBody - If this Decl represents a declaration for a body of code,
1037
  ///  such as a function or method definition, this method returns the
1038
  ///  top-level Stmt* of that body.  Otherwise this method returns null.
1039
222k
  virtual Stmt* getBody() const { return nullptr; }
1040
1041
  /// Returns true if this \c Decl represents a declaration for a body of
1042
  /// code, such as a function or method definition.
1043
  /// Note that \c hasBody can also return true if any redeclaration of this
1044
  /// \c Decl represents a declaration for a body of code.
1045
52.5k
  virtual bool hasBody() const { return getBody() != nullptr; }
1046
1047
  /// getBodyRBrace - Gets the right brace of the body, if a body exists.
1048
  /// This works whether the body is a CompoundStmt or a CXXTryStmt.
1049
  SourceLocation getBodyRBrace() const;
1050
1051
  // global temp stats (until we have a per-module visitor)
1052
  static void add(Kind k);
1053
  static void EnableStatistics();
1054
  static void PrintStats();
1055
1056
  /// isTemplateParameter - Determines whether this declaration is a
1057
  /// template parameter.
1058
  bool isTemplateParameter() const;
1059
1060
  /// isTemplateParameter - Determines whether this declaration is a
1061
  /// template parameter pack.
1062
  bool isTemplateParameterPack() const;
1063
1064
  /// Whether this declaration is a parameter pack.
1065
  bool isParameterPack() const;
1066
1067
  /// returns true if this declaration is a template
1068
  bool isTemplateDecl() const;
1069
1070
  /// Whether this declaration is a function or function template.
1071
848k
  bool isFunctionOrFunctionTemplate() const {
1072
848k
    return (DeclKind >= Decl::firstFunction &&
1073
848k
            
DeclKind <= Decl::lastFunction655k
) ||
1074
848k
           
DeclKind == FunctionTemplate206k
;
1075
848k
  }
1076
1077
  /// If this is a declaration that describes some template, this
1078
  /// method returns that template declaration.
1079
  ///
1080
  /// Note that this returns nullptr for partial specializations, because they
1081
  /// are not modeled as TemplateDecls. Use getDescribedTemplateParams to handle
1082
  /// those cases.
1083
  TemplateDecl *getDescribedTemplate() const;
1084
1085
  /// If this is a declaration that describes some template or partial
1086
  /// specialization, this returns the corresponding template parameter list.
1087
  const TemplateParameterList *getDescribedTemplateParams() const;
1088
1089
  /// Returns the function itself, or the templated function if this is a
1090
  /// function template.
1091
  FunctionDecl *getAsFunction() LLVM_READONLY;
1092
1093
6.45M
  const FunctionDecl *getAsFunction() const {
1094
6.45M
    return const_cast<Decl *>(this)->getAsFunction();
1095
6.45M
  }
1096
1097
  /// Changes the namespace of this declaration to reflect that it's
1098
  /// a function-local extern declaration.
1099
  ///
1100
  /// These declarations appear in the lexical context of the extern
1101
  /// declaration, but in the semantic context of the enclosing namespace
1102
  /// scope.
1103
3.10k
  void setLocalExternDecl() {
1104
3.10k
    Decl *Prev = getPreviousDecl();
1105
3.10k
    IdentifierNamespace &= ~IDNS_Ordinary;
1106
1107
    // It's OK for the declaration to still have the "invisible friend" flag or
1108
    // the "conflicts with tag declarations in this scope" flag for the outer
1109
    // scope.
1110
3.10k
    assert((IdentifierNamespace & ~(IDNS_OrdinaryFriend | IDNS_Tag)) == 0 &&
1111
3.10k
           "namespace is not ordinary");
1112
1113
0
    IdentifierNamespace |= IDNS_LocalExtern;
1114
3.10k
    if (Prev && 
Prev->getIdentifierNamespace() & IDNS_Ordinary9
)
1115
0
      IdentifierNamespace |= IDNS_Ordinary;
1116
3.10k
  }
1117
1118
  /// Determine whether this is a block-scope declaration with linkage.
1119
  /// This will either be a local variable declaration declared 'extern', or a
1120
  /// local function declaration.
1121
61.7M
  bool isLocalExternDecl() {
1122
61.7M
    return IdentifierNamespace & IDNS_LocalExtern;
1123
61.7M
  }
1124
1125
  /// Changes the namespace of this declaration to reflect that it's
1126
  /// the object of a friend declaration.
1127
  ///
1128
  /// These declarations appear in the lexical context of the friending
1129
  /// class, but in the semantic context of the actual entity.  This property
1130
  /// applies only to a specific decl object;  other redeclarations of the
1131
  /// same entity may not (and probably don't) share this property.
1132
140k
  void setObjectOfFriendDecl(bool PerformFriendInjection = false) {
1133
140k
    unsigned OldNS = IdentifierNamespace;
1134
140k
    assert((OldNS & (IDNS_Tag | IDNS_Ordinary |
1135
140k
                     IDNS_TagFriend | IDNS_OrdinaryFriend |
1136
140k
                     IDNS_LocalExtern | IDNS_NonMemberOperator)) &&
1137
140k
           "namespace includes neither ordinary nor tag");
1138
0
    assert(!(OldNS & ~(IDNS_Tag | IDNS_Ordinary | IDNS_Type |
1139
140k
                       IDNS_TagFriend | IDNS_OrdinaryFriend |
1140
140k
                       IDNS_LocalExtern | IDNS_NonMemberOperator)) &&
1141
140k
           "namespace includes other than ordinary or tag");
1142
1143
0
    Decl *Prev = getPreviousDecl();
1144
140k
    IdentifierNamespace &= ~(IDNS_Ordinary | IDNS_Tag | IDNS_Type);
1145
1146
140k
    if (OldNS & (IDNS_Tag | IDNS_TagFriend)) {
1147
35.3k
      IdentifierNamespace |= IDNS_TagFriend;
1148
35.3k
      if (PerformFriendInjection ||
1149
35.3k
          
(35.3k
Prev35.3k
&&
Prev->getIdentifierNamespace() & IDNS_Tag15.0k
))
1150
14.9k
        IdentifierNamespace |= IDNS_Tag | IDNS_Type;
1151
35.3k
    }
1152
1153
140k
    if (OldNS & (IDNS_Ordinary | IDNS_OrdinaryFriend |
1154
140k
                 IDNS_LocalExtern | IDNS_NonMemberOperator)) {
1155
138k
      IdentifierNamespace |= IDNS_OrdinaryFriend;
1156
138k
      if (PerformFriendInjection ||
1157
138k
          (Prev && 
Prev->getIdentifierNamespace() & IDNS_Ordinary18.1k
))
1158
17.3k
        IdentifierNamespace |= IDNS_Ordinary;
1159
138k
    }
1160
140k
  }
1161
1162
  enum FriendObjectKind {
1163
    FOK_None,      ///< Not a friend object.
1164
    FOK_Declared,  ///< A friend of a previously-declared entity.
1165
    FOK_Undeclared ///< A friend of a previously-undeclared entity.
1166
  };
1167
1168
  /// Determines whether this declaration is the object of a
1169
  /// friend declaration and, if so, what kind.
1170
  ///
1171
  /// There is currently no direct way to find the associated FriendDecl.
1172
170M
  FriendObjectKind getFriendObjectKind() const {
1173
170M
    unsigned mask =
1174
170M
        (IdentifierNamespace & (IDNS_TagFriend | IDNS_OrdinaryFriend));
1175
170M
    if (!mask) 
return FOK_None169M
;
1176
810k
    return (IdentifierNamespace & (IDNS_Tag | IDNS_Ordinary) ? 
FOK_Declared96.0k
1177
810k
                                                             : 
FOK_Undeclared714k
);
1178
170M
  }
1179
1180
  /// Specifies that this declaration is a C++ overloaded non-member.
1181
128k
  void setNonMemberOperator() {
1182
128k
    assert(getKind() == Function || getKind() == FunctionTemplate);
1183
0
    assert((IdentifierNamespace & IDNS_Ordinary) &&
1184
128k
           "visible non-member operators should be in ordinary namespace");
1185
0
    IdentifierNamespace |= IDNS_NonMemberOperator;
1186
128k
  }
1187
1188
4.23G
  static bool classofKind(Kind K) { return true; }
1189
  static DeclContext *castToDeclContext(const Decl *);
1190
  static Decl *castFromDeclContext(const DeclContext *);
1191
1192
  void print(raw_ostream &Out, unsigned Indentation = 0,
1193
             bool PrintInstantiation = false) const;
1194
  void print(raw_ostream &Out, const PrintingPolicy &Policy,
1195
             unsigned Indentation = 0, bool PrintInstantiation = false) const;
1196
  static void printGroup(Decl** Begin, unsigned NumDecls,
1197
                         raw_ostream &Out, const PrintingPolicy &Policy,
1198
                         unsigned Indentation = 0);
1199
1200
  // Debuggers don't usually respect default arguments.
1201
  void dump() const;
1202
1203
  // Same as dump(), but forces color printing.
1204
  void dumpColor() const;
1205
1206
  void dump(raw_ostream &Out, bool Deserialize = false,
1207
            ASTDumpOutputFormat OutputFormat = ADOF_Default) const;
1208
1209
  /// \return Unique reproducible object identifier
1210
  int64_t getID() const;
1211
1212
  /// Looks through the Decl's underlying type to extract a FunctionType
1213
  /// when possible. Will return null if the type underlying the Decl does not
1214
  /// have a FunctionType.
1215
  const FunctionType *getFunctionType(bool BlocksToo = true) const;
1216
1217
private:
1218
  void setAttrsImpl(const AttrVec& Attrs, ASTContext &Ctx);
1219
  void setDeclContextsImpl(DeclContext *SemaDC, DeclContext *LexicalDC,
1220
                           ASTContext &Ctx);
1221
1222
protected:
1223
  ASTMutationListener *getASTMutationListener() const;
1224
};
1225
1226
/// Determine whether two declarations declare the same entity.
1227
12.4M
inline bool declaresSameEntity(const Decl *D1, const Decl *D2) {
1228
12.4M
  if (!D1 || 
!D212.4M
)
1229
2.45k
    return false;
1230
1231
12.4M
  if (D1 == D2)
1232
4.22M
    return true;
1233
1234
8.17M
  return D1->getCanonicalDecl() == D2->getCanonicalDecl();
1235
12.4M
}
1236
1237
/// PrettyStackTraceDecl - If a crash occurs, indicate that it happened when
1238
/// doing something to a specific decl.
1239
class PrettyStackTraceDecl : public llvm::PrettyStackTraceEntry {
1240
  const Decl *TheDecl;
1241
  SourceLocation Loc;
1242
  SourceManager &SM;
1243
  const char *Message;
1244
1245
public:
1246
  PrettyStackTraceDecl(const Decl *theDecl, SourceLocation L,
1247
                       SourceManager &sm, const char *Msg)
1248
21.3M
      : TheDecl(theDecl), Loc(L), SM(sm), Message(Msg) {}
1249
1250
  void print(raw_ostream &OS) const override;
1251
};
1252
} // namespace clang
1253
1254
// Required to determine the layout of the PointerUnion<NamedDecl*> before
1255
// seeing the NamedDecl definition being first used in DeclListNode::operator*.
1256
namespace llvm {
1257
  template <> struct PointerLikeTypeTraits<::clang::NamedDecl *> {
1258
99.9M
    static inline void *getAsVoidPointer(::clang::NamedDecl *P) { return P; }
1259
155M
    static inline ::clang::NamedDecl *getFromVoidPointer(void *P) {
1260
155M
      return static_cast<::clang::NamedDecl *>(P);
1261
155M
    }
1262
    static constexpr int NumLowBitsAvailable = 3;
1263
  };
1264
}
1265
1266
namespace clang {
1267
/// A list storing NamedDecls in the lookup tables.
1268
class DeclListNode {
1269
  friend class ASTContext; // allocate, deallocate nodes.
1270
  friend class StoredDeclsList;
1271
public:
1272
  using Decls = llvm::PointerUnion<NamedDecl*, DeclListNode*>;
1273
  class iterator {
1274
    friend class DeclContextLookupResult;
1275
    friend class StoredDeclsList;
1276
1277
    Decls Ptr;
1278
253M
    iterator(Decls Node) : Ptr(Node) { }
1279
  public:
1280
    using difference_type = ptrdiff_t;
1281
    using value_type = NamedDecl*;
1282
    using pointer = void;
1283
    using reference = value_type;
1284
    using iterator_category = std::forward_iterator_tag;
1285
1286
265M
    iterator() = default;
1287
1288
181M
    reference operator*() const {
1289
181M
      assert(Ptr && "dereferencing end() iterator");
1290
181M
      if (DeclListNode *CurNode = Ptr.dyn_cast<DeclListNode*>())
1291
87.2M
        return CurNode->D;
1292
94.4M
      return Ptr.get<NamedDecl*>();
1293
181M
    }
1294
0
    void operator->() const { } // Unsupported.
1295
130M
    bool operator==(const iterator &X) const { return Ptr == X.Ptr; }
1296
310M
    bool operator!=(const iterator &X) const { return Ptr != X.Ptr; }
1297
181M
    inline iterator &operator++() { // ++It
1298
181M
      assert(!Ptr.isNull() && "Advancing empty iterator");
1299
1300
181M
      if (DeclListNode *CurNode = Ptr.dyn_cast<DeclListNode*>())
1301
93.9M
        Ptr = CurNode->Rest;
1302
87.6M
      else
1303
87.6M
        Ptr = nullptr;
1304
181M
      return *this;
1305
181M
    }
1306
217
    iterator operator++(int) { // It++
1307
217
      iterator temp = *this;
1308
217
      ++(*this);
1309
217
      return temp;
1310
217
    }
1311
    // Enables the pattern for (iterator I =..., E = I.end(); I != E; ++I)
1312
1.91M
    iterator end() { return iterator(); }
1313
  };
1314
private:
1315
  NamedDecl *D = nullptr;
1316
  Decls Rest = nullptr;
1317
6.85M
  DeclListNode(NamedDecl *ND) : D(ND) {}
1318
};
1319
1320
/// The results of name lookup within a DeclContext.
1321
class DeclContextLookupResult {
1322
  using Decls = DeclListNode::Decls;
1323
1324
  /// When in collection form, this is what the Data pointer points to.
1325
  Decls Result;
1326
1327
public:
1328
181M
  DeclContextLookupResult() = default;
1329
101M
  DeclContextLookupResult(Decls Result) : Result(Result) {}
1330
1331
  using iterator = DeclListNode::iterator;
1332
  using const_iterator = iterator;
1333
  using reference = iterator::reference;
1334
1335
251M
  iterator begin() { return iterator(Result); }
1336
253M
  iterator end() { return iterator(); }
1337
1.28M
  const_iterator begin() const {
1338
1.28M
    return const_cast<DeclContextLookupResult*>(this)->begin();
1339
1.28M
  }
1340
1.17M
  const_iterator end() const { return iterator(); }
1341
1342
25.3M
  bool empty() const { return Result.isNull();  }
1343
1.84k
  bool isSingleResult() const { return Result.dyn_cast<NamedDecl*>(); }
1344
112k
  reference front() const { return *begin(); }
1345
1346
  // Find the first declaration of the given type in the list. Note that this
1347
  // is not in general the earliest-declared declaration, and should only be
1348
  // used when it's not possible for there to be more than one match or where
1349
  // it doesn't matter which one is found.
1350
50
  template<class T> T *find_first() const {
1351
50
    for (auto *D : *this)
1352
49
      if (T *Decl = dyn_cast<T>(D))
1353
48
        return Decl;
1354
1355
2
    return nullptr;
1356
50
  }
clang::ObjCPropertyDecl* clang::DeclContextLookupResult::find_first<clang::ObjCPropertyDecl>() const
Line
Count
Source
1350
6
  template<class T> T *find_first() const {
1351
6
    for (auto *D : *this)
1352
4
      if (T *Decl = dyn_cast<T>(D))
1353
4
        return Decl;
1354
1355
2
    return nullptr;
1356
6
  }
clang::FieldDecl* clang::DeclContextLookupResult::find_first<clang::FieldDecl>() const
Line
Count
Source
1350
44
  template<class T> T *find_first() const {
1351
44
    for (auto *D : *this)
1352
45
      if (T *Decl = dyn_cast<T>(D))
1353
44
        return Decl;
1354
1355
0
    return nullptr;
1356
44
  }
1357
};
1358
1359
/// DeclContext - This is used only as base class of specific decl types that
1360
/// can act as declaration contexts. These decls are (only the top classes
1361
/// that directly derive from DeclContext are mentioned, not their subclasses):
1362
///
1363
///   TranslationUnitDecl
1364
///   ExternCContext
1365
///   NamespaceDecl
1366
///   TagDecl
1367
///   OMPDeclareReductionDecl
1368
///   OMPDeclareMapperDecl
1369
///   FunctionDecl
1370
///   ObjCMethodDecl
1371
///   ObjCContainerDecl
1372
///   LinkageSpecDecl
1373
///   ExportDecl
1374
///   BlockDecl
1375
///   CapturedDecl
1376
class DeclContext {
1377
  /// For makeDeclVisibleInContextImpl
1378
  friend class ASTDeclReader;
1379
  /// For reconcileExternalVisibleStorage, CreateStoredDeclsMap,
1380
  /// hasNeedToReconcileExternalVisibleStorage
1381
  friend class ExternalASTSource;
1382
  /// For CreateStoredDeclsMap
1383
  friend class DependentDiagnostic;
1384
  /// For hasNeedToReconcileExternalVisibleStorage,
1385
  /// hasLazyLocalLexicalLookups, hasLazyExternalLexicalLookups
1386
  friend class ASTWriter;
1387
1388
  // We use uint64_t in the bit-fields below since some bit-fields
1389
  // cross the unsigned boundary and this breaks the packing.
1390
1391
  /// Stores the bits used by DeclContext.
1392
  /// If modified NumDeclContextBit, the ctor of DeclContext and the accessor
1393
  /// methods in DeclContext should be updated appropriately.
1394
  class DeclContextBitfields {
1395
    friend class DeclContext;
1396
    /// DeclKind - This indicates which class this is.
1397
    uint64_t DeclKind : 7;
1398
1399
    /// Whether this declaration context also has some external
1400
    /// storage that contains additional declarations that are lexically
1401
    /// part of this context.
1402
    mutable uint64_t ExternalLexicalStorage : 1;
1403
1404
    /// Whether this declaration context also has some external
1405
    /// storage that contains additional declarations that are visible
1406
    /// in this context.
1407
    mutable uint64_t ExternalVisibleStorage : 1;
1408
1409
    /// Whether this declaration context has had externally visible
1410
    /// storage added since the last lookup. In this case, \c LookupPtr's
1411
    /// invariant may not hold and needs to be fixed before we perform
1412
    /// another lookup.
1413
    mutable uint64_t NeedToReconcileExternalVisibleStorage : 1;
1414
1415
    /// If \c true, this context may have local lexical declarations
1416
    /// that are missing from the lookup table.
1417
    mutable uint64_t HasLazyLocalLexicalLookups : 1;
1418
1419
    /// If \c true, the external source may have lexical declarations
1420
    /// that are missing from the lookup table.
1421
    mutable uint64_t HasLazyExternalLexicalLookups : 1;
1422
1423
    /// If \c true, lookups should only return identifier from
1424
    /// DeclContext scope (for example TranslationUnit). Used in
1425
    /// LookupQualifiedName()
1426
    mutable uint64_t UseQualifiedLookup : 1;
1427
  };
1428
1429
  /// Number of bits in DeclContextBitfields.
1430
  enum { NumDeclContextBits = 13 };
1431
1432
  /// Stores the bits used by TagDecl.
1433
  /// If modified NumTagDeclBits and the accessor
1434
  /// methods in TagDecl should be updated appropriately.
1435
  class TagDeclBitfields {
1436
    friend class TagDecl;
1437
    /// For the bits in DeclContextBitfields
1438
    uint64_t : NumDeclContextBits;
1439
1440
    /// The TagKind enum.
1441
    uint64_t TagDeclKind : 3;
1442
1443
    /// True if this is a definition ("struct foo {};"), false if it is a
1444
    /// declaration ("struct foo;").  It is not considered a definition
1445
    /// until the definition has been fully processed.
1446
    uint64_t IsCompleteDefinition : 1;
1447
1448
    /// True if this is currently being defined.
1449
    uint64_t IsBeingDefined : 1;
1450
1451
    /// True if this tag declaration is "embedded" (i.e., defined or declared
1452
    /// for the very first time) in the syntax of a declarator.
1453
    uint64_t IsEmbeddedInDeclarator : 1;
1454
1455
    /// True if this tag is free standing, e.g. "struct foo;".
1456
    uint64_t IsFreeStanding : 1;
1457
1458
    /// Indicates whether it is possible for declarations of this kind
1459
    /// to have an out-of-date definition.
1460
    ///
1461
    /// This option is only enabled when modules are enabled.
1462
    uint64_t MayHaveOutOfDateDef : 1;
1463
1464
    /// Has the full definition of this type been required by a use somewhere in
1465
    /// the TU.
1466
    uint64_t IsCompleteDefinitionRequired : 1;
1467
1468
    /// Whether this tag is a definition which was demoted due to
1469
    /// a module merge.
1470
    uint64_t IsThisDeclarationADemotedDefinition : 1;
1471
  };
1472
1473
  /// Number of non-inherited bits in TagDeclBitfields.
1474
  enum { NumTagDeclBits = 10 };
1475
1476
  /// Stores the bits used by EnumDecl.
1477
  /// If modified NumEnumDeclBit and the accessor
1478
  /// methods in EnumDecl should be updated appropriately.
1479
  class EnumDeclBitfields {
1480
    friend class EnumDecl;
1481
    /// For the bits in DeclContextBitfields.
1482
    uint64_t : NumDeclContextBits;
1483
    /// For the bits in TagDeclBitfields.
1484
    uint64_t : NumTagDeclBits;
1485
1486
    /// Width in bits required to store all the non-negative
1487
    /// enumerators of this enum.
1488
    uint64_t NumPositiveBits : 8;
1489
1490
    /// Width in bits required to store all the negative
1491
    /// enumerators of this enum.
1492
    uint64_t NumNegativeBits : 8;
1493
1494
    /// True if this tag declaration is a scoped enumeration. Only
1495
    /// possible in C++11 mode.
1496
    uint64_t IsScoped : 1;
1497
1498
    /// If this tag declaration is a scoped enum,
1499
    /// then this is true if the scoped enum was declared using the class
1500
    /// tag, false if it was declared with the struct tag. No meaning is
1501
    /// associated if this tag declaration is not a scoped enum.
1502
    uint64_t IsScopedUsingClassTag : 1;
1503
1504
    /// True if this is an enumeration with fixed underlying type. Only
1505
    /// possible in C++11, Microsoft extensions, or Objective C mode.
1506
    uint64_t IsFixed : 1;
1507
1508
    /// True if a valid hash is stored in ODRHash.
1509
    uint64_t HasODRHash : 1;
1510
  };
1511
1512
  /// Number of non-inherited bits in EnumDeclBitfields.
1513
  enum { NumEnumDeclBits = 20 };
1514
1515
  /// Stores the bits used by RecordDecl.
1516
  /// If modified NumRecordDeclBits and the accessor
1517
  /// methods in RecordDecl should be updated appropriately.
1518
  class RecordDeclBitfields {
1519
    friend class RecordDecl;
1520
    /// For the bits in DeclContextBitfields.
1521
    uint64_t : NumDeclContextBits;
1522
    /// For the bits in TagDeclBitfields.
1523
    uint64_t : NumTagDeclBits;
1524
1525
    /// This is true if this struct ends with a flexible
1526
    /// array member (e.g. int X[]) or if this union contains a struct that does.
1527
    /// If so, this cannot be contained in arrays or other structs as a member.
1528
    uint64_t HasFlexibleArrayMember : 1;
1529
1530
    /// Whether this is the type of an anonymous struct or union.
1531
    uint64_t AnonymousStructOrUnion : 1;
1532
1533
    /// This is true if this struct has at least one member
1534
    /// containing an Objective-C object pointer type.
1535
    uint64_t HasObjectMember : 1;
1536
1537
    /// This is true if struct has at least one member of
1538
    /// 'volatile' type.
1539
    uint64_t HasVolatileMember : 1;
1540
1541
    /// Whether the field declarations of this record have been loaded
1542
    /// from external storage. To avoid unnecessary deserialization of
1543
    /// methods/nested types we allow deserialization of just the fields
1544
    /// when needed.
1545
    mutable uint64_t LoadedFieldsFromExternalStorage : 1;
1546
1547
    /// Basic properties of non-trivial C structs.
1548
    uint64_t NonTrivialToPrimitiveDefaultInitialize : 1;
1549
    uint64_t NonTrivialToPrimitiveCopy : 1;
1550
    uint64_t NonTrivialToPrimitiveDestroy : 1;
1551
1552
    /// The following bits indicate whether this is or contains a C union that
1553
    /// is non-trivial to default-initialize, destruct, or copy. These bits
1554
    /// imply the associated basic non-triviality predicates declared above.
1555
    uint64_t HasNonTrivialToPrimitiveDefaultInitializeCUnion : 1;
1556
    uint64_t HasNonTrivialToPrimitiveDestructCUnion : 1;
1557
    uint64_t HasNonTrivialToPrimitiveCopyCUnion : 1;
1558
1559
    /// Indicates whether this struct is destroyed in the callee.
1560
    uint64_t ParamDestroyedInCallee : 1;
1561
1562
    /// Represents the way this type is passed to a function.
1563
    uint64_t ArgPassingRestrictions : 2;
1564
1565
    /// Indicates whether this struct has had its field layout randomized.
1566
    uint64_t IsRandomized : 1;
1567
  };
1568
1569
  /// Number of non-inherited bits in RecordDeclBitfields.
1570
  enum { NumRecordDeclBits = 15 };
1571
1572
  /// Stores the bits used by OMPDeclareReductionDecl.
1573
  /// If modified NumOMPDeclareReductionDeclBits and the accessor
1574
  /// methods in OMPDeclareReductionDecl should be updated appropriately.
1575
  class OMPDeclareReductionDeclBitfields {
1576
    friend class OMPDeclareReductionDecl;
1577
    /// For the bits in DeclContextBitfields
1578
    uint64_t : NumDeclContextBits;
1579
1580
    /// Kind of initializer,
1581
    /// function call or omp_priv<init_expr> initializtion.
1582
    uint64_t InitializerKind : 2;
1583
  };
1584
1585
  /// Number of non-inherited bits in OMPDeclareReductionDeclBitfields.
1586
  enum { NumOMPDeclareReductionDeclBits = 2 };
1587
1588
  /// Stores the bits used by FunctionDecl.
1589
  /// If modified NumFunctionDeclBits and the accessor
1590
  /// methods in FunctionDecl and CXXDeductionGuideDecl
1591
  /// (for IsCopyDeductionCandidate) should be updated appropriately.
1592
  class FunctionDeclBitfields {
1593
    friend class FunctionDecl;
1594
    /// For IsCopyDeductionCandidate
1595
    friend class CXXDeductionGuideDecl;
1596
    /// For the bits in DeclContextBitfields.
1597
    uint64_t : NumDeclContextBits;
1598
1599
    uint64_t SClass : 3;
1600
    uint64_t IsInline : 1;
1601
    uint64_t IsInlineSpecified : 1;
1602
1603
    uint64_t IsVirtualAsWritten : 1;
1604
    uint64_t IsPure : 1;
1605
    uint64_t HasInheritedPrototype : 1;
1606
    uint64_t HasWrittenPrototype : 1;
1607
    uint64_t IsDeleted : 1;
1608
    /// Used by CXXMethodDecl
1609
    uint64_t IsTrivial : 1;
1610
1611
    /// This flag indicates whether this function is trivial for the purpose of
1612
    /// calls. This is meaningful only when this function is a copy/move
1613
    /// constructor or a destructor.
1614
    uint64_t IsTrivialForCall : 1;
1615
1616
    uint64_t IsDefaulted : 1;
1617
    uint64_t IsExplicitlyDefaulted : 1;
1618
    uint64_t HasDefaultedFunctionInfo : 1;
1619
1620
    /// For member functions of complete types, whether this is an ineligible
1621
    /// special member function or an unselected destructor. See
1622
    /// [class.mem.special].
1623
    uint64_t IsIneligibleOrNotSelected : 1;
1624
1625
    uint64_t HasImplicitReturnZero : 1;
1626
    uint64_t IsLateTemplateParsed : 1;
1627
1628
    /// Kind of contexpr specifier as defined by ConstexprSpecKind.
1629
    uint64_t ConstexprKind : 2;
1630
    uint64_t InstantiationIsPending : 1;
1631
1632
    /// Indicates if the function uses __try.
1633
    uint64_t UsesSEHTry : 1;
1634
1635
    /// Indicates if the function was a definition
1636
    /// but its body was skipped.
1637
    uint64_t HasSkippedBody : 1;
1638
1639
    /// Indicates if the function declaration will
1640
    /// have a body, once we're done parsing it.
1641
    uint64_t WillHaveBody : 1;
1642
1643
    /// Indicates that this function is a multiversioned
1644
    /// function using attribute 'target'.
1645
    uint64_t IsMultiVersion : 1;
1646
1647
    /// [C++17] Only used by CXXDeductionGuideDecl. Indicates that
1648
    /// the Deduction Guide is the implicitly generated 'copy
1649
    /// deduction candidate' (is used during overload resolution).
1650
    uint64_t IsCopyDeductionCandidate : 1;
1651
1652
    /// Store the ODRHash after first calculation.
1653
    uint64_t HasODRHash : 1;
1654
1655
    /// Indicates if the function uses Floating Point Constrained Intrinsics
1656
    uint64_t UsesFPIntrin : 1;
1657
  };
1658
1659
  /// Number of non-inherited bits in FunctionDeclBitfields.
1660
  enum { NumFunctionDeclBits = 28 };
1661
1662
  /// Stores the bits used by CXXConstructorDecl. If modified
1663
  /// NumCXXConstructorDeclBits and the accessor
1664
  /// methods in CXXConstructorDecl should be updated appropriately.
1665
  class CXXConstructorDeclBitfields {
1666
    friend class CXXConstructorDecl;
1667
    /// For the bits in DeclContextBitfields.
1668
    uint64_t : NumDeclContextBits;
1669
    /// For the bits in FunctionDeclBitfields.
1670
    uint64_t : NumFunctionDeclBits;
1671
1672
    /// 23 bits to fit in the remaining available space.
1673
    /// Note that this makes CXXConstructorDeclBitfields take
1674
    /// exactly 64 bits and thus the width of NumCtorInitializers
1675
    /// will need to be shrunk if some bit is added to NumDeclContextBitfields,
1676
    /// NumFunctionDeclBitfields or CXXConstructorDeclBitfields.
1677
    uint64_t NumCtorInitializers : 20;
1678
    uint64_t IsInheritingConstructor : 1;
1679
1680
    /// Whether this constructor has a trail-allocated explicit specifier.
1681
    uint64_t HasTrailingExplicitSpecifier : 1;
1682
    /// If this constructor does't have a trail-allocated explicit specifier.
1683
    /// Whether this constructor is explicit specified.
1684
    uint64_t IsSimpleExplicit : 1;
1685
  };
1686
1687
  /// Number of non-inherited bits in CXXConstructorDeclBitfields.
1688
  enum {
1689
    NumCXXConstructorDeclBits = 64 - NumDeclContextBits - NumFunctionDeclBits
1690
  };
1691
1692
  /// Stores the bits used by ObjCMethodDecl.
1693
  /// If modified NumObjCMethodDeclBits and the accessor
1694
  /// methods in ObjCMethodDecl should be updated appropriately.
1695
  class ObjCMethodDeclBitfields {
1696
    friend class ObjCMethodDecl;
1697
1698
    /// For the bits in DeclContextBitfields.
1699
    uint64_t : NumDeclContextBits;
1700
1701
    /// The conventional meaning of this method; an ObjCMethodFamily.
1702
    /// This is not serialized; instead, it is computed on demand and
1703
    /// cached.
1704
    mutable uint64_t Family : ObjCMethodFamilyBitWidth;
1705
1706
    /// instance (true) or class (false) method.
1707
    uint64_t IsInstance : 1;
1708
    uint64_t IsVariadic : 1;
1709
1710
    /// True if this method is the getter or setter for an explicit property.
1711
    uint64_t IsPropertyAccessor : 1;
1712
1713
    /// True if this method is a synthesized property accessor stub.
1714
    uint64_t IsSynthesizedAccessorStub : 1;
1715
1716
    /// Method has a definition.
1717
    uint64_t IsDefined : 1;
1718
1719
    /// Method redeclaration in the same interface.
1720
    uint64_t IsRedeclaration : 1;
1721
1722
    /// Is redeclared in the same interface.
1723
    mutable uint64_t HasRedeclaration : 1;
1724
1725
    /// \@required/\@optional
1726
    uint64_t DeclImplementation : 2;
1727
1728
    /// in, inout, etc.
1729
    uint64_t objcDeclQualifier : 7;
1730
1731
    /// Indicates whether this method has a related result type.
1732
    uint64_t RelatedResultType : 1;
1733
1734
    /// Whether the locations of the selector identifiers are in a
1735
    /// "standard" position, a enum SelectorLocationsKind.
1736
    uint64_t SelLocsKind : 2;
1737
1738
    /// Whether this method overrides any other in the class hierarchy.
1739
    ///
1740
    /// A method is said to override any method in the class's
1741
    /// base classes, its protocols, or its categories' protocols, that has
1742
    /// the same selector and is of the same kind (class or instance).
1743
    /// A method in an implementation is not considered as overriding the same
1744
    /// method in the interface or its categories.
1745
    uint64_t IsOverriding : 1;
1746
1747
    /// Indicates if the method was a definition but its body was skipped.
1748
    uint64_t HasSkippedBody : 1;
1749
  };
1750
1751
  /// Number of non-inherited bits in ObjCMethodDeclBitfields.
1752
  enum { NumObjCMethodDeclBits = 24 };
1753
1754
  /// Stores the bits used by ObjCContainerDecl.
1755
  /// If modified NumObjCContainerDeclBits and the accessor
1756
  /// methods in ObjCContainerDecl should be updated appropriately.
1757
  class ObjCContainerDeclBitfields {
1758
    friend class ObjCContainerDecl;
1759
    /// For the bits in DeclContextBitfields
1760
    uint32_t : NumDeclContextBits;
1761
1762
    // Not a bitfield but this saves space.
1763
    // Note that ObjCContainerDeclBitfields is full.
1764
    SourceLocation AtStart;
1765
  };
1766
1767
  /// Number of non-inherited bits in ObjCContainerDeclBitfields.
1768
  /// Note that here we rely on the fact that SourceLocation is 32 bits
1769
  /// wide. We check this with the static_assert in the ctor of DeclContext.
1770
  enum { NumObjCContainerDeclBits = 64 - NumDeclContextBits };
1771
1772
  /// Stores the bits used by LinkageSpecDecl.
1773
  /// If modified NumLinkageSpecDeclBits and the accessor
1774
  /// methods in LinkageSpecDecl should be updated appropriately.
1775
  class LinkageSpecDeclBitfields {
1776
    friend class LinkageSpecDecl;
1777
    /// For the bits in DeclContextBitfields.
1778
    uint64_t : NumDeclContextBits;
1779
1780
    /// The language for this linkage specification with values
1781
    /// in the enum LinkageSpecDecl::LanguageIDs.
1782
    uint64_t Language : 3;
1783
1784
    /// True if this linkage spec has braces.
1785
    /// This is needed so that hasBraces() returns the correct result while the
1786
    /// linkage spec body is being parsed.  Once RBraceLoc has been set this is
1787
    /// not used, so it doesn't need to be serialized.
1788
    uint64_t HasBraces : 1;
1789
  };
1790
1791
  /// Number of non-inherited bits in LinkageSpecDeclBitfields.
1792
  enum { NumLinkageSpecDeclBits = 4 };
1793
1794
  /// Stores the bits used by BlockDecl.
1795
  /// If modified NumBlockDeclBits and the accessor
1796
  /// methods in BlockDecl should be updated appropriately.
1797
  class BlockDeclBitfields {
1798
    friend class BlockDecl;
1799
    /// For the bits in DeclContextBitfields.
1800
    uint64_t : NumDeclContextBits;
1801
1802
    uint64_t IsVariadic : 1;
1803
    uint64_t CapturesCXXThis : 1;
1804
    uint64_t BlockMissingReturnType : 1;
1805
    uint64_t IsConversionFromLambda : 1;
1806
1807
    /// A bit that indicates this block is passed directly to a function as a
1808
    /// non-escaping parameter.
1809
    uint64_t DoesNotEscape : 1;
1810
1811
    /// A bit that indicates whether it's possible to avoid coying this block to
1812
    /// the heap when it initializes or is assigned to a local variable with
1813
    /// automatic storage.
1814
    uint64_t CanAvoidCopyToHeap : 1;
1815
  };
1816
1817
  /// Number of non-inherited bits in BlockDeclBitfields.
1818
  enum { NumBlockDeclBits = 5 };
1819
1820
  /// Pointer to the data structure used to lookup declarations
1821
  /// within this context (or a DependentStoredDeclsMap if this is a
1822
  /// dependent context). We maintain the invariant that, if the map
1823
  /// contains an entry for a DeclarationName (and we haven't lazily
1824
  /// omitted anything), then it contains all relevant entries for that
1825
  /// name (modulo the hasExternalDecls() flag).
1826
  mutable StoredDeclsMap *LookupPtr = nullptr;
1827
1828
protected:
1829
  /// This anonymous union stores the bits belonging to DeclContext and classes
1830
  /// deriving from it. The goal is to use otherwise wasted
1831
  /// space in DeclContext to store data belonging to derived classes.
1832
  /// The space saved is especially significient when pointers are aligned
1833
  /// to 8 bytes. In this case due to alignment requirements we have a
1834
  /// little less than 8 bytes free in DeclContext which we can use.
1835
  /// We check that none of the classes in this union is larger than
1836
  /// 8 bytes with static_asserts in the ctor of DeclContext.
1837
  union {
1838
    DeclContextBitfields DeclContextBits;
1839
    TagDeclBitfields TagDeclBits;
1840
    EnumDeclBitfields EnumDeclBits;
1841
    RecordDeclBitfields RecordDeclBits;
1842
    OMPDeclareReductionDeclBitfields OMPDeclareReductionDeclBits;
1843
    FunctionDeclBitfields FunctionDeclBits;
1844
    CXXConstructorDeclBitfields CXXConstructorDeclBits;
1845
    ObjCMethodDeclBitfields ObjCMethodDeclBits;
1846
    ObjCContainerDeclBitfields ObjCContainerDeclBits;
1847
    LinkageSpecDeclBitfields LinkageSpecDeclBits;
1848
    BlockDeclBitfields BlockDeclBits;
1849
1850
    static_assert(sizeof(DeclContextBitfields) <= 8,
1851
                  "DeclContextBitfields is larger than 8 bytes!");
1852
    static_assert(sizeof(TagDeclBitfields) <= 8,
1853
                  "TagDeclBitfields is larger than 8 bytes!");
1854
    static_assert(sizeof(EnumDeclBitfields) <= 8,
1855
                  "EnumDeclBitfields is larger than 8 bytes!");
1856
    static_assert(sizeof(RecordDeclBitfields) <= 8,
1857
                  "RecordDeclBitfields is larger than 8 bytes!");
1858
    static_assert(sizeof(OMPDeclareReductionDeclBitfields) <= 8,
1859
                  "OMPDeclareReductionDeclBitfields is larger than 8 bytes!");
1860
    static_assert(sizeof(FunctionDeclBitfields) <= 8,
1861
                  "FunctionDeclBitfields is larger than 8 bytes!");
1862
    static_assert(sizeof(CXXConstructorDeclBitfields) <= 8,
1863
                  "CXXConstructorDeclBitfields is larger than 8 bytes!");
1864
    static_assert(sizeof(ObjCMethodDeclBitfields) <= 8,
1865
                  "ObjCMethodDeclBitfields is larger than 8 bytes!");
1866
    static_assert(sizeof(ObjCContainerDeclBitfields) <= 8,
1867
                  "ObjCContainerDeclBitfields is larger than 8 bytes!");
1868
    static_assert(sizeof(LinkageSpecDeclBitfields) <= 8,
1869
                  "LinkageSpecDeclBitfields is larger than 8 bytes!");
1870
    static_assert(sizeof(BlockDeclBitfields) <= 8,
1871
                  "BlockDeclBitfields is larger than 8 bytes!");
1872
  };
1873
1874
  /// FirstDecl - The first declaration stored within this declaration
1875
  /// context.
1876
  mutable Decl *FirstDecl = nullptr;
1877
1878
  /// LastDecl - The last declaration stored within this declaration
1879
  /// context. FIXME: We could probably cache this value somewhere
1880
  /// outside of the DeclContext, to reduce the size of DeclContext by
1881
  /// another pointer.
1882
  mutable Decl *LastDecl = nullptr;
1883
1884
  /// Build up a chain of declarations.
1885
  ///
1886
  /// \returns the first/last pair of declarations.
1887
  static std::pair<Decl *, Decl *>
1888
  BuildDeclChain(ArrayRef<Decl*> Decls, bool FieldsAlreadyLoaded);
1889
1890
  DeclContext(Decl::Kind K);
1891
1892
public:
1893
  ~DeclContext();
1894
1895
32.4G
  Decl::Kind getDeclKind() const {
1896
32.4G
    return static_cast<Decl::Kind>(DeclContextBits.DeclKind);
1897
32.4G
  }
1898
1899
  const char *getDeclKindName() const;
1900
1901
  /// getParent - Returns the containing DeclContext.
1902
3.32G
  DeclContext *getParent() {
1903
3.32G
    return cast<Decl>(this)->getDeclContext();
1904
3.32G
  }
1905
436M
  const DeclContext *getParent() const {
1906
436M
    return const_cast<DeclContext*>(this)->getParent();
1907
436M
  }
1908
1909
  /// getLexicalParent - Returns the containing lexical DeclContext. May be
1910
  /// different from getParent, e.g.:
1911
  ///
1912
  ///   namespace A {
1913
  ///      struct S;
1914
  ///   }
1915
  ///   struct A::S {}; // getParent() == namespace 'A'
1916
  ///                   // getLexicalParent() == translation unit
1917
  ///
1918
57.7M
  DeclContext *getLexicalParent() {
1919
57.7M
    return cast<Decl>(this)->getLexicalDeclContext();
1920
57.7M
  }
1921
33.8M
  const DeclContext *getLexicalParent() const {
1922
33.8M
    return const_cast<DeclContext*>(this)->getLexicalParent();
1923
33.8M
  }
1924
1925
  DeclContext *getLookupParent();
1926
1927
123
  const DeclContext *getLookupParent() const {
1928
123
    return const_cast<DeclContext*>(this)->getLookupParent();
1929
123
  }
1930
1931
440M
  ASTContext &getParentASTContext() const {
1932
440M
    return cast<Decl>(this)->getASTContext();
1933
440M
  }
1934
1935
2.40k
  bool isClosure() const { return getDeclKind() == Decl::Block; }
1936
1937
  /// Return this DeclContext if it is a BlockDecl. Otherwise, return the
1938
  /// innermost enclosing BlockDecl or null if there are no enclosing blocks.
1939
  const BlockDecl *getInnermostBlockDecl() const;
1940
1941
6.43M
  bool isObjCContainer() const {
1942
6.43M
    switch (getDeclKind()) {
1943
209k
    case Decl::ObjCCategory:
1944
210k
    case Decl::ObjCCategoryImpl:
1945
217k
    case Decl::ObjCImplementation:
1946
646k
    case Decl::ObjCInterface:
1947
703k
    case Decl::ObjCProtocol:
1948
703k
      return true;
1949
5.73M
    default:
1950
5.73M
      return false;
1951
6.43M
    }
1952
6.43M
  }
1953
1954
395M
  bool isFunctionOrMethod() const {
1955
395M
    switch (getDeclKind()) {
1956
86.3k
    case Decl::Block:
1957
7.63M
    case Decl::Captured:
1958
8.89M
    case Decl::ObjCMethod:
1959
8.89M
      return true;
1960
386M
    default:
1961
386M
      return getDeclKind() >= Decl::firstFunction &&
1962
386M
             
getDeclKind() <= Decl::lastFunction214M
;
1963
395M
    }
1964
395M
  }
1965
1966
  /// Test whether the context supports looking up names.
1967
79.9M
  bool isLookupContext() const {
1968
79.9M
    return !isFunctionOrMethod() && 
getDeclKind() != Decl::LinkageSpec66.2M
&&
1969
79.9M
           
getDeclKind() != Decl::Export56.3M
;
1970
79.9M
  }
1971
1972
1.23G
  bool isFileContext() const {
1973
1.23G
    return getDeclKind() == Decl::TranslationUnit ||
1974
1.23G
           
getDeclKind() == Decl::Namespace677M
;
1975
1.23G
  }
1976
1977
5.44G
  bool isTranslationUnit() const {
1978
5.44G
    return getDeclKind() == Decl::TranslationUnit;
1979
5.44G
  }
1980
1981
525M
  bool isRecord() const {
1982
525M
    return getDeclKind() >= Decl::firstRecord &&
1983
525M
           
getDeclKind() <= Decl::lastRecord402M
;
1984
525M
  }
1985
1986
75.9M
  bool isNamespace() const { return getDeclKind() == Decl::Namespace; }
1987
1988
  bool isStdNamespace() const;
1989
1990
  bool isInlineNamespace() const;
1991
1992
  /// Determines whether this context is dependent on a
1993
  /// template parameter.
1994
  bool isDependentContext() const;
1995
1996
  /// isTransparentContext - Determines whether this context is a
1997
  /// "transparent" context, meaning that the members declared in this
1998
  /// context are semantically declared in the nearest enclosing
1999
  /// non-transparent (opaque) context but are lexically declared in
2000
  /// this context. For example, consider the enumerators of an
2001
  /// enumeration type:
2002
  /// @code
2003
  /// enum E {
2004
  ///   Val1
2005
  /// };
2006
  /// @endcode
2007
  /// Here, E is a transparent context, so its enumerator (Val1) will
2008
  /// appear (semantically) that it is in the same context of E.
2009
  /// Examples of transparent contexts include: enumerations (except for
2010
  /// C++0x scoped enums), and C++ linkage specifications.
2011
  bool isTransparentContext() const;
2012
2013
  /// Determines whether this context or some of its ancestors is a
2014
  /// linkage specification context that specifies C linkage.
2015
  bool isExternCContext() const;
2016
2017
  /// Retrieve the nearest enclosing C linkage specification context.
2018
  const LinkageSpecDecl *getExternCContext() const;
2019
2020
  /// Determines whether this context or some of its ancestors is a
2021
  /// linkage specification context that specifies C++ linkage.
2022
  bool isExternCXXContext() const;
2023
2024
  /// Determine whether this declaration context is equivalent
2025
  /// to the declaration context DC.
2026
488M
  bool Equals(const DeclContext *DC) const {
2027
488M
    return DC && 
this->getPrimaryContext() == DC->getPrimaryContext()438M
;
2028
488M
  }
2029
2030
  /// Determine whether this declaration context encloses the
2031
  /// declaration context DC.
2032
  bool Encloses(const DeclContext *DC) const;
2033
2034
  /// Find the nearest non-closure ancestor of this context,
2035
  /// i.e. the innermost semantic parent of this context which is not
2036
  /// a closure.  A context may be its own non-closure ancestor.
2037
  Decl *getNonClosureAncestor();
2038
0
  const Decl *getNonClosureAncestor() const {
2039
0
    return const_cast<DeclContext*>(this)->getNonClosureAncestor();
2040
0
  }
2041
2042
  // Retrieve the nearest context that is not a transparent context.
2043
  DeclContext *getNonTransparentContext();
2044
158k
  const DeclContext *getNonTransparentContext() const {
2045
158k
    return const_cast<DeclContext *>(this)->getNonTransparentContext();
2046
158k
  }
2047
2048
  /// getPrimaryContext - There may be many different
2049
  /// declarations of the same entity (including forward declarations
2050
  /// of classes, multiple definitions of namespaces, etc.), each with
2051
  /// a different set of declarations. This routine returns the
2052
  /// "primary" DeclContext structure, which will contain the
2053
  /// information needed to perform name lookup into this context.
2054
  DeclContext *getPrimaryContext();
2055
1.29G
  const DeclContext *getPrimaryContext() const {
2056
1.29G
    return const_cast<DeclContext*>(this)->getPrimaryContext();
2057
1.29G
  }
2058
2059
  /// getRedeclContext - Retrieve the context in which an entity conflicts with
2060
  /// other entities of the same name, or where it is a redeclaration if the
2061
  /// two entities are compatible. This skips through transparent contexts.
2062
  DeclContext *getRedeclContext();
2063
542M
  const DeclContext *getRedeclContext() const {
2064
542M
    return const_cast<DeclContext *>(this)->getRedeclContext();
2065
542M
  }
2066
2067
  /// Retrieve the nearest enclosing namespace context.
2068
  DeclContext *getEnclosingNamespaceContext();
2069
22.8k
  const DeclContext *getEnclosingNamespaceContext() const {
2070
22.8k
    return const_cast<DeclContext *>(this)->getEnclosingNamespaceContext();
2071
22.8k
  }
2072
2073
  /// Retrieve the outermost lexically enclosing record context.
2074
  RecordDecl *getOuterLexicalRecordContext();
2075
0
  const RecordDecl *getOuterLexicalRecordContext() const {
2076
0
    return const_cast<DeclContext *>(this)->getOuterLexicalRecordContext();
2077
0
  }
2078
2079
  /// Test if this context is part of the enclosing namespace set of
2080
  /// the context NS, as defined in C++0x [namespace.def]p9. If either context
2081
  /// isn't a namespace, this is equivalent to Equals().
2082
  ///
2083
  /// The enclosing namespace set of a namespace is the namespace and, if it is
2084
  /// inline, its enclosing namespace, recursively.
2085
  bool InEnclosingNamespaceSetOf(const DeclContext *NS) const;
2086
2087
  /// Collects all of the declaration contexts that are semantically
2088
  /// connected to this declaration context.
2089
  ///
2090
  /// For declaration contexts that have multiple semantically connected but
2091
  /// syntactically distinct contexts, such as C++ namespaces, this routine
2092
  /// retrieves the complete set of such declaration contexts in source order.
2093
  /// For example, given:
2094
  ///
2095
  /// \code
2096
  /// namespace N {
2097
  ///   int x;
2098
  /// }
2099
  /// namespace N {
2100
  ///   int y;
2101
  /// }
2102
  /// \endcode
2103
  ///
2104
  /// The \c Contexts parameter will contain both definitions of N.
2105
  ///
2106
  /// \param Contexts Will be cleared and set to the set of declaration
2107
  /// contexts that are semanticaly connected to this declaration context,
2108
  /// in source order, including this context (which may be the only result,
2109
  /// for non-namespace contexts).
2110
  void collectAllContexts(SmallVectorImpl<DeclContext *> &Contexts);
2111
2112
  /// decl_iterator - Iterates through the declarations stored
2113
  /// within this context.
2114
  class decl_iterator {
2115
    /// Current - The current declaration.
2116
    Decl *Current = nullptr;
2117
2118
  public:
2119
    using value_type = Decl *;
2120
    using reference = const value_type &;
2121
    using pointer = const value_type *;
2122
    using iterator_category = std::forward_iterator_tag;
2123
    using difference_type = std::ptrdiff_t;
2124
2125
29.4M
    decl_iterator() = default;
2126
28.8M
    explicit decl_iterator(Decl *C) : Current(C) {}
2127
2128
270M
    reference operator*() const { return Current; }
2129
2130
    // This doesn't meet the iterator requirements, but it's convenient
2131
39.4k
    value_type operator->() const { return Current; }
2132
2133
142M
    decl_iterator& operator++() {
2134
142M
      Current = Current->getNextDeclInContext();
2135
142M
      return *this;
2136
142M
    }
2137
2138
41
    decl_iterator operator++(int) {
2139
41
      decl_iterator tmp(*this);
2140
41
      ++(*this);
2141
41
      return tmp;
2142
41
    }
2143
2144
1.52M
    friend bool operator==(decl_iterator x, decl_iterator y) {
2145
1.52M
      return x.Current == y.Current;
2146
1.52M
    }
2147
2148
95.1M
    friend bool operator!=(decl_iterator x, decl_iterator y) {
2149
95.1M
      return x.Current != y.Current;
2150
95.1M
    }
2151
  };
2152
2153
  using decl_range = llvm::iterator_range<decl_iterator>;
2154
2155
  /// decls_begin/decls_end - Iterate over the declarations stored in
2156
  /// this context.
2157
14.0M
  decl_range decls() const { return decl_range(decls_begin(), decls_end()); }
2158
  decl_iterator decls_begin() const;
2159
18.0M
  decl_iterator decls_end() const { return decl_iterator(); }
2160
  bool decls_empty() const;
2161
2162
  /// noload_decls_begin/end - Iterate over the declarations stored in this
2163
  /// context that are currently loaded; don't attempt to retrieve anything
2164
  /// from an external source.
2165
2.17M
  decl_range noload_decls() const {
2166
2.17M
    return decl_range(noload_decls_begin(), noload_decls_end());
2167
2.17M
  }
2168
2.17M
  decl_iterator noload_decls_begin() const { return decl_iterator(FirstDecl); }
2169
2.17M
  decl_iterator noload_decls_end() const { return decl_iterator(); }
2170
2171
  /// specific_decl_iterator - Iterates over a subrange of
2172
  /// declarations stored in a DeclContext, providing only those that
2173
  /// are of type SpecificDecl (or a class derived from it). This
2174
  /// iterator is used, for example, to provide iteration over just
2175
  /// the fields within a RecordDecl (with SpecificDecl = FieldDecl).
2176
  template<typename SpecificDecl>
2177
  class specific_decl_iterator {
2178
    /// Current - The current, underlying declaration iterator, which
2179
    /// will either be NULL or will point to a declaration of
2180
    /// type SpecificDecl.
2181
    DeclContext::decl_iterator Current;
2182
2183
    /// SkipToNextDecl - Advances the current position up to the next
2184
    /// declaration of type SpecificDecl that also meets the criteria
2185
    /// required by Acceptable.
2186
39.5M
    void SkipToNextDecl() {
2187
112M
      while (*Current && 
!isa<SpecificDecl>(*Current)87.9M
)
2188
72.9M
        ++Current;
2189
39.5M
    }
clang::DeclContext::specific_decl_iterator<clang::EnumConstantDecl>::SkipToNextDecl()
Line
Count
Source
2186
415k
    void SkipToNextDecl() {
2187
415k
      while (*Current && 
!isa<SpecificDecl>(*Current)265k
)
2188
14
        ++Current;
2189
415k
    }
clang::DeclContext::specific_decl_iterator<clang::FieldDecl>::SkipToNextDecl()
Line
Count
Source
2186
27.0M
    void SkipToNextDecl() {
2187
84.5M
      while (*Current && 
!isa<SpecificDecl>(*Current)67.4M
)
2188
57.5M
        ++Current;
2189
27.0M
    }
clang::DeclContext::specific_decl_iterator<clang::CXXMethodDecl>::SkipToNextDecl()
Line
Count
Source
2186
9.70M
    void SkipToNextDecl() {
2187
19.7M
      while (*Current && 
!isa<SpecificDecl>(*Current)13.5M
)
2188
10.0M
        ++Current;
2189
9.70M
    }
clang::DeclContext::specific_decl_iterator<clang::CXXConstructorDecl>::SkipToNextDecl()
Line
Count
Source
2186
23.9k
    void SkipToNextDecl() {
2187
100k
      while (*Current && 
!isa<SpecificDecl>(*Current)90.0k
)
2188
76.4k
        ++Current;
2189
23.9k
    }
clang::DeclContext::specific_decl_iterator<clang::ObjCIvarDecl>::SkipToNextDecl()
Line
Count
Source
2186
1.22M
    void SkipToNextDecl() {
2187
4.97M
      while (*Current && 
!isa<SpecificDecl>(*Current)4.27M
)
2188
3.74M
        ++Current;
2189
1.22M
    }
clang::DeclContext::specific_decl_iterator<clang::ObjCPropertyImplDecl>::SkipToNextDecl()
Line
Count
Source
2186
133k
    void SkipToNextDecl() {
2187
270k
      while (*Current && 
!isa<SpecificDecl>(*Current)187k
)
2188
137k
        ++Current;
2189
133k
    }
clang::DeclContext::specific_decl_iterator<clang::ObjCPropertyDecl>::SkipToNextDecl()
Line
Count
Source
2186
719k
    void SkipToNextDecl() {
2187
2.15M
      while (*Current && 
!isa<SpecificDecl>(*Current)1.81M
)
2188
1.43M
        ++Current;
2189
719k
    }
clang::DeclContext::specific_decl_iterator<clang::ObjCMethodDecl>::SkipToNextDecl()
Line
Count
Source
2186
55.2k
    void SkipToNextDecl() {
2187
69.0k
      while (*Current && 
!isa<SpecificDecl>(*Current)53.9k
)
2188
13.7k
        ++Current;
2189
55.2k
    }
clang::DeclContext::specific_decl_iterator<clang::NamespaceDecl>::SkipToNextDecl()
Line
Count
Source
2186
5
    void SkipToNextDecl() {
2187
6
      while (*Current && 
!isa<SpecificDecl>(*Current)4
)
2188
1
        ++Current;
2189
5
    }
clang::DeclContext::specific_decl_iterator<clang::FunctionTemplateDecl>::SkipToNextDecl()
Line
Count
Source
2186
32
    void SkipToNextDecl() {
2187
60
      while (*Current && 
!isa<SpecificDecl>(*Current)44
)
2188
28
        ++Current;
2189
32
    }
clang::DeclContext::specific_decl_iterator<clang::VarDecl>::SkipToNextDecl()
Line
Count
Source
2186
236k
    void SkipToNextDecl() {
2187
239k
      while (*Current && 
!isa<SpecificDecl>(*Current)122k
)
2188
3.07k
        ++Current;
2189
236k
    }
clang::DeclContext::specific_decl_iterator<clang::ObjCImplementationDecl>::SkipToNextDecl()
Line
Count
Source
2186
282
    void SkipToNextDecl() {
2187
2.82k
      while (*Current && 
!isa<SpecificDecl>(*Current)2.64k
)
2188
2.54k
        ++Current;
2189
282
    }
clang::DeclContext::specific_decl_iterator<clang::TypeDecl>::SkipToNextDecl()
Line
Count
Source
2186
19.4k
    void SkipToNextDecl() {
2187
48.0k
      while (*Current && 
!isa<SpecificDecl>(*Current)28.8k
)
2188
28.6k
        ++Current;
2189
19.4k
    }
2190
2191
  public:
2192
    using value_type = SpecificDecl *;
2193
    // TODO: Add reference and pointer types (with some appropriate proxy type)
2194
    // if we ever have a need for them.
2195
    using reference = void;
2196
    using pointer = void;
2197
    using difference_type =
2198
        std::iterator_traits<DeclContext::decl_iterator>::difference_type;
2199
    using iterator_category = std::forward_iterator_tag;
2200
2201
730k
    specific_decl_iterator() = default;
clang::DeclContext::specific_decl_iterator<clang::ObjCIvarDecl>::specific_decl_iterator()
Line
Count
Source
2201
272k
    specific_decl_iterator() = default;
clang::DeclContext::specific_decl_iterator<clang::FieldDecl>::specific_decl_iterator()
Line
Count
Source
2201
458k
    specific_decl_iterator() = default;
clang::DeclContext::specific_decl_iterator<clang::EnumConstantDecl>::specific_decl_iterator()
Line
Count
Source
2201
18
    specific_decl_iterator() = default;
2202
2203
    /// specific_decl_iterator - Construct a new iterator over a
2204
    /// subset of the declarations the range [C,
2205
    /// end-of-declarations). If A is non-NULL, it is a pointer to a
2206
    /// member function of SpecificDecl that should return true for
2207
    /// all of the SpecificDecl instances that will be in the subset
2208
    /// of iterators. For example, if you want Objective-C instance
2209
    /// methods, SpecificDecl will be ObjCMethodDecl and A will be
2210
    /// &ObjCMethodDecl::isInstanceMethod.
2211
24.9M
    explicit specific_decl_iterator(DeclContext::decl_iterator C) : Current(C) {
2212
24.9M
      SkipToNextDecl();
2213
24.9M
    }
clang::DeclContext::specific_decl_iterator<clang::ObjCIvarDecl>::specific_decl_iterator(clang::DeclContext::decl_iterator)
Line
Count
Source
2211
855k
    explicit specific_decl_iterator(DeclContext::decl_iterator C) : Current(C) {
2212
855k
      SkipToNextDecl();
2213
855k
    }
clang::DeclContext::specific_decl_iterator<clang::FieldDecl>::specific_decl_iterator(clang::DeclContext::decl_iterator)
Line
Count
Source
2211
17.0M
    explicit specific_decl_iterator(DeclContext::decl_iterator C) : Current(C) {
2212
17.0M
      SkipToNextDecl();
2213
17.0M
    }
clang::DeclContext::specific_decl_iterator<clang::ObjCPropertyImplDecl>::specific_decl_iterator(clang::DeclContext::decl_iterator)
Line
Count
Source
2211
88.2k
    explicit specific_decl_iterator(DeclContext::decl_iterator C) : Current(C) {
2212
88.2k
      SkipToNextDecl();
2213
88.2k
    }
clang::DeclContext::specific_decl_iterator<clang::ObjCPropertyDecl>::specific_decl_iterator(clang::DeclContext::decl_iterator)
Line
Count
Source
2211
335k
    explicit specific_decl_iterator(DeclContext::decl_iterator C) : Current(C) {
2212
335k
      SkipToNextDecl();
2213
335k
    }
clang::DeclContext::specific_decl_iterator<clang::CXXMethodDecl>::specific_decl_iterator(clang::DeclContext::decl_iterator)
Line
Count
Source
2211
6.21M
    explicit specific_decl_iterator(DeclContext::decl_iterator C) : Current(C) {
2212
6.21M
      SkipToNextDecl();
2213
6.21M
    }
clang::DeclContext::specific_decl_iterator<clang::EnumConstantDecl>::specific_decl_iterator(clang::DeclContext::decl_iterator)
Line
Count
Source
2211
226k
    explicit specific_decl_iterator(DeclContext::decl_iterator C) : Current(C) {
2212
226k
      SkipToNextDecl();
2213
226k
    }
clang::DeclContext::specific_decl_iterator<clang::ObjCMethodDecl>::specific_decl_iterator(clang::DeclContext::decl_iterator)
Line
Count
Source
2211
15.1k
    explicit specific_decl_iterator(DeclContext::decl_iterator C) : Current(C) {
2212
15.1k
      SkipToNextDecl();
2213
15.1k
    }
clang::DeclContext::specific_decl_iterator<clang::NamespaceDecl>::specific_decl_iterator(clang::DeclContext::decl_iterator)
Line
Count
Source
2211
2
    explicit specific_decl_iterator(DeclContext::decl_iterator C) : Current(C) {
2212
2
      SkipToNextDecl();
2213
2
    }
clang::DeclContext::specific_decl_iterator<clang::FunctionTemplateDecl>::specific_decl_iterator(clang::DeclContext::decl_iterator)
Line
Count
Source
2211
32
    explicit specific_decl_iterator(DeclContext::decl_iterator C) : Current(C) {
2212
32
      SkipToNextDecl();
2213
32
    }
clang::DeclContext::specific_decl_iterator<clang::CXXConstructorDecl>::specific_decl_iterator(clang::DeclContext::decl_iterator)
Line
Count
Source
2211
12.6k
    explicit specific_decl_iterator(DeclContext::decl_iterator C) : Current(C) {
2212
12.6k
      SkipToNextDecl();
2213
12.6k
    }
clang::DeclContext::specific_decl_iterator<clang::VarDecl>::specific_decl_iterator(clang::DeclContext::decl_iterator)
Line
Count
Source
2211
116k
    explicit specific_decl_iterator(DeclContext::decl_iterator C) : Current(C) {
2212
116k
      SkipToNextDecl();
2213
116k
    }
clang::DeclContext::specific_decl_iterator<clang::ObjCImplementationDecl>::specific_decl_iterator(clang::DeclContext::decl_iterator)
Line
Count
Source
2211
178
    explicit specific_decl_iterator(DeclContext::decl_iterator C) : Current(C) {
2212
178
      SkipToNextDecl();
2213
178
    }
clang::DeclContext::specific_decl_iterator<clang::TypeDecl>::specific_decl_iterator(clang::DeclContext::decl_iterator)
Line
Count
Source
2211
19.2k
    explicit specific_decl_iterator(DeclContext::decl_iterator C) : Current(C) {
2212
19.2k
      SkipToNextDecl();
2213
19.2k
    }
2214
2215
14.1M
    value_type operator*() const { return cast<SpecificDecl>(*Current); }
clang::DeclContext::specific_decl_iterator<clang::ObjCIvarDecl>::operator*() const
Line
Count
Source
2215
445k
    value_type operator*() const { return cast<SpecificDecl>(*Current); }
clang::DeclContext::specific_decl_iterator<clang::FieldDecl>::operator*() const
Line
Count
Source
2215
9.29M
    value_type operator*() const { return cast<SpecificDecl>(*Current); }
clang::DeclContext::specific_decl_iterator<clang::ObjCPropertyImplDecl>::operator*() const
Line
Count
Source
2215
49.7k
    value_type operator*() const { return cast<SpecificDecl>(*Current); }
clang::DeclContext::specific_decl_iterator<clang::ObjCPropertyDecl>::operator*() const
Line
Count
Source
2215
384k
    value_type operator*() const { return cast<SpecificDecl>(*Current); }
clang::DeclContext::specific_decl_iterator<clang::CXXMethodDecl>::operator*() const
Line
Count
Source
2215
3.55M
    value_type operator*() const { return cast<SpecificDecl>(*Current); }
clang::DeclContext::specific_decl_iterator<clang::EnumConstantDecl>::operator*() const
Line
Count
Source
2215
231k
    value_type operator*() const { return cast<SpecificDecl>(*Current); }
clang::DeclContext::specific_decl_iterator<clang::ObjCMethodDecl>::operator*() const
Line
Count
Source
2215
40.1k
    value_type operator*() const { return cast<SpecificDecl>(*Current); }
clang::DeclContext::specific_decl_iterator<clang::NamespaceDecl>::operator*() const
Line
Count
Source
2215
6
    value_type operator*() const { return cast<SpecificDecl>(*Current); }
clang::DeclContext::specific_decl_iterator<clang::FunctionTemplateDecl>::operator*() const
Line
Count
Source
2215
16
    value_type operator*() const { return cast<SpecificDecl>(*Current); }
clang::DeclContext::specific_decl_iterator<clang::CXXConstructorDecl>::operator*() const
Line
Count
Source
2215
13.6k
    value_type operator*() const { return cast<SpecificDecl>(*Current); }
clang::DeclContext::specific_decl_iterator<clang::VarDecl>::operator*() const
Line
Count
Source
2215
119k
    value_type operator*() const { return cast<SpecificDecl>(*Current); }
clang::DeclContext::specific_decl_iterator<clang::ObjCImplementationDecl>::operator*() const
Line
Count
Source
2215
104
    value_type operator*() const { return cast<SpecificDecl>(*Current); }
clang::DeclContext::specific_decl_iterator<clang::TypeDecl>::operator*() const
Line
Count
Source
2215
205
    value_type operator*() const { return cast<SpecificDecl>(*Current); }
2216
2217
    // This doesn't meet the iterator requirements, but it's convenient
2218
2.40M
    value_type operator->() const { return **this; }
clang::DeclContext::specific_decl_iterator<clang::EnumConstantDecl>::operator->() const
Line
Count
Source
2218
83.9k
    value_type operator->() const { return **this; }
clang::DeclContext::specific_decl_iterator<clang::FieldDecl>::operator->() const
Line
Count
Source
2218
2.32M
    value_type operator->() const { return **this; }
clang::DeclContext::specific_decl_iterator<clang::NamespaceDecl>::operator->() const
Line
Count
Source
2218
3
    value_type operator->() const { return **this; }
clang::DeclContext::specific_decl_iterator<clang::FunctionTemplateDecl>::operator->() const
Line
Count
Source
2218
16
    value_type operator->() const { return **this; }
clang::DeclContext::specific_decl_iterator<clang::ObjCIvarDecl>::operator->() const
Line
Count
Source
2218
98
    value_type operator->() const { return **this; }
clang::DeclContext::specific_decl_iterator<clang::ObjCImplementationDecl>::operator->() const
Line
Count
Source
2218
104
    value_type operator->() const { return **this; }
clang::DeclContext::specific_decl_iterator<clang::CXXMethodDecl>::operator->() const
Line
Count
Source
2218
57
    value_type operator->() const { return **this; }
clang::DeclContext::specific_decl_iterator<clang::ObjCMethodDecl>::operator->() const
Line
Count
Source
2218
9
    value_type operator->() const { return **this; }
2219
2220
14.6M
    specific_decl_iterator& operator++() {
2221
14.6M
      ++Current;
2222
14.6M
      SkipToNextDecl();
2223
14.6M
      return *this;
2224
14.6M
    }
clang::DeclContext::specific_decl_iterator<clang::ObjCIvarDecl>::operator++()
Line
Count
Source
2220
371k
    specific_decl_iterator& operator++() {
2221
371k
      ++Current;
2222
371k
      SkipToNextDecl();
2223
371k
      return *this;
2224
371k
    }
clang::DeclContext::specific_decl_iterator<clang::FieldDecl>::operator++()
Line
Count
Source
2220
9.97M
    specific_decl_iterator& operator++() {
2221
9.97M
      ++Current;
2222
9.97M
      SkipToNextDecl();
2223
9.97M
      return *this;
2224
9.97M
    }
clang::DeclContext::specific_decl_iterator<clang::ObjCPropertyImplDecl>::operator++()
Line
Count
Source
2220
45.0k
    specific_decl_iterator& operator++() {
2221
45.0k
      ++Current;
2222
45.0k
      SkipToNextDecl();
2223
45.0k
      return *this;
2224
45.0k
    }
clang::DeclContext::specific_decl_iterator<clang::ObjCPropertyDecl>::operator++()
Line
Count
Source
2220
384k
    specific_decl_iterator& operator++() {
2221
384k
      ++Current;
2222
384k
      SkipToNextDecl();
2223
384k
      return *this;
2224
384k
    }
clang::DeclContext::specific_decl_iterator<clang::CXXMethodDecl>::operator++()
Line
Count
Source
2220
3.49M
    specific_decl_iterator& operator++() {
2221
3.49M
      ++Current;
2222
3.49M
      SkipToNextDecl();
2223
3.49M
      return *this;
2224
3.49M
    }
clang::DeclContext::specific_decl_iterator<clang::EnumConstantDecl>::operator++()
Line
Count
Source
2220
188k
    specific_decl_iterator& operator++() {
2221
188k
      ++Current;
2222
188k
      SkipToNextDecl();
2223
188k
      return *this;
2224
188k
    }
clang::DeclContext::specific_decl_iterator<clang::ObjCMethodDecl>::operator++()
Line
Count
Source
2220
40.1k
    specific_decl_iterator& operator++() {
2221
40.1k
      ++Current;
2222
40.1k
      SkipToNextDecl();
2223
40.1k
      return *this;
2224
40.1k
    }
clang::DeclContext::specific_decl_iterator<clang::NamespaceDecl>::operator++()
Line
Count
Source
2220
3
    specific_decl_iterator& operator++() {
2221
3
      ++Current;
2222
3
      SkipToNextDecl();
2223
3
      return *this;
2224
3
    }
Unexecuted instantiation: clang::DeclContext::specific_decl_iterator<clang::FunctionTemplateDecl>::operator++()
clang::DeclContext::specific_decl_iterator<clang::CXXConstructorDecl>::operator++()
Line
Count
Source
2220
11.2k
    specific_decl_iterator& operator++() {
2221
11.2k
      ++Current;
2222
11.2k
      SkipToNextDecl();
2223
11.2k
      return *this;
2224
11.2k
    }
clang::DeclContext::specific_decl_iterator<clang::VarDecl>::operator++()
Line
Count
Source
2220
119k
    specific_decl_iterator& operator++() {
2221
119k
      ++Current;
2222
119k
      SkipToNextDecl();
2223
119k
      return *this;
2224
119k
    }
clang::DeclContext::specific_decl_iterator<clang::ObjCImplementationDecl>::operator++()
Line
Count
Source
2220
104
    specific_decl_iterator& operator++() {
2221
104
      ++Current;
2222
104
      SkipToNextDecl();
2223
104
      return *this;
2224
104
    }
clang::DeclContext::specific_decl_iterator<clang::TypeDecl>::operator++()
Line
Count
Source
2220
205
    specific_decl_iterator& operator++() {
2221
205
      ++Current;
2222
205
      SkipToNextDecl();
2223
205
      return *this;
2224
205
    }
2225
2226
8.23k
    specific_decl_iterator operator++(int) {
2227
8.23k
      specific_decl_iterator tmp(*this);
2228
8.23k
      ++(*this);
2229
8.23k
      return tmp;
2230
8.23k
    }
2231
2232
    friend bool operator==(const specific_decl_iterator& x,
2233
1.52M
                           const specific_decl_iterator& y) {
2234
1.52M
      return x.Current == y.Current;
2235
1.52M
    }
clang::operator==(clang::DeclContext::specific_decl_iterator<clang::FieldDecl> const&, clang::DeclContext::specific_decl_iterator<clang::FieldDecl> const&)
Line
Count
Source
2233
1.13M
                           const specific_decl_iterator& y) {
2234
1.13M
      return x.Current == y.Current;
2235
1.13M
    }
clang::operator==(clang::DeclContext::specific_decl_iterator<clang::ObjCMethodDecl> const&, clang::DeclContext::specific_decl_iterator<clang::ObjCMethodDecl> const&)
Line
Count
Source
2233
50
                           const specific_decl_iterator& y) {
2234
50
      return x.Current == y.Current;
2235
50
    }
clang::operator==(clang::DeclContext::specific_decl_iterator<clang::EnumConstantDecl> const&, clang::DeclContext::specific_decl_iterator<clang::EnumConstantDecl> const&)
Line
Count
Source
2233
97.5k
                           const specific_decl_iterator& y) {
2234
97.5k
      return x.Current == y.Current;
2235
97.5k
    }
clang::operator==(clang::DeclContext::specific_decl_iterator<clang::ObjCIvarDecl> const&, clang::DeclContext::specific_decl_iterator<clang::ObjCIvarDecl> const&)
Line
Count
Source
2233
299k
                           const specific_decl_iterator& y) {
2234
299k
      return x.Current == y.Current;
2235
299k
    }
clang::operator==(clang::DeclContext::specific_decl_iterator<clang::CXXMethodDecl> const&, clang::DeclContext::specific_decl_iterator<clang::CXXMethodDecl> const&)
Line
Count
Source
2233
212
                           const specific_decl_iterator& y) {
2234
212
      return x.Current == y.Current;
2235
212
    }
2236
2237
    friend bool operator!=(const specific_decl_iterator& x,
2238
24.2M
                           const specific_decl_iterator& y) {
2239
24.2M
      return x.Current != y.Current;
2240
24.2M
    }
clang::operator!=(clang::DeclContext::specific_decl_iterator<clang::ObjCIvarDecl> const&, clang::DeclContext::specific_decl_iterator<clang::ObjCIvarDecl> const&)
Line
Count
Source
2238
488k
                           const specific_decl_iterator& y) {
2239
488k
      return x.Current != y.Current;
2240
488k
    }
clang::operator!=(clang::DeclContext::specific_decl_iterator<clang::FieldDecl> const&, clang::DeclContext::specific_decl_iterator<clang::FieldDecl> const&)
Line
Count
Source
2238
16.0M
                           const specific_decl_iterator& y) {
2239
16.0M
      return x.Current != y.Current;
2240
16.0M
    }
clang::operator!=(clang::DeclContext::specific_decl_iterator<clang::ObjCPropertyImplDecl> const&, clang::DeclContext::specific_decl_iterator<clang::ObjCPropertyImplDecl> const&)
Line
Count
Source
2238
89.1k
                           const specific_decl_iterator& y) {
2239
89.1k
      return x.Current != y.Current;
2240
89.1k
    }
clang::operator!=(clang::DeclContext::specific_decl_iterator<clang::ObjCPropertyDecl> const&, clang::DeclContext::specific_decl_iterator<clang::ObjCPropertyDecl> const&)
Line
Count
Source
2238
551k
                           const specific_decl_iterator& y) {
2239
551k
      return x.Current != y.Current;
2240
551k
    }
clang::operator!=(clang::DeclContext::specific_decl_iterator<clang::CXXMethodDecl> const&, clang::DeclContext::specific_decl_iterator<clang::CXXMethodDecl> const&)
Line
Count
Source
2238
6.60M
                           const specific_decl_iterator& y) {
2239
6.60M
      return x.Current != y.Current;
2240
6.60M
    }
clang::operator!=(clang::DeclContext::specific_decl_iterator<clang::EnumConstantDecl> const&, clang::DeclContext::specific_decl_iterator<clang::EnumConstantDecl> const&)
Line
Count
Source
2238
204k
                           const specific_decl_iterator& y) {
2239
204k
      return x.Current != y.Current;
2240
204k
    }
clang::operator!=(clang::DeclContext::specific_decl_iterator<clang::ObjCMethodDecl> const&, clang::DeclContext::specific_decl_iterator<clang::ObjCMethodDecl> const&)
Line
Count
Source
2238
47.6k
                           const specific_decl_iterator& y) {
2239
47.6k
      return x.Current != y.Current;
2240
47.6k
    }
clang::operator!=(clang::DeclContext::specific_decl_iterator<clang::NamespaceDecl> const&, clang::DeclContext::specific_decl_iterator<clang::NamespaceDecl> const&)
Line
Count
Source
2238
4
                           const specific_decl_iterator& y) {
2239
4
      return x.Current != y.Current;
2240
4
    }
clang::operator!=(clang::DeclContext::specific_decl_iterator<clang::FunctionTemplateDecl> const&, clang::DeclContext::specific_decl_iterator<clang::FunctionTemplateDecl> const&)
Line
Count
Source
2238
16
                           const specific_decl_iterator& y) {
2239
16
      return x.Current != y.Current;
2240
16
    }
clang::operator!=(clang::DeclContext::specific_decl_iterator<clang::CXXConstructorDecl> const&, clang::DeclContext::specific_decl_iterator<clang::CXXConstructorDecl> const&)
Line
Count
Source
2238
17.6k
                           const specific_decl_iterator& y) {
2239
17.6k
      return x.Current != y.Current;
2240
17.6k
    }
clang::operator!=(clang::DeclContext::specific_decl_iterator<clang::VarDecl> const&, clang::DeclContext::specific_decl_iterator<clang::VarDecl> const&)
Line
Count
Source
2238
177k
                           const specific_decl_iterator& y) {
2239
177k
      return x.Current != y.Current;
2240
177k
    }
clang::operator!=(clang::DeclContext::specific_decl_iterator<clang::ObjCImplementationDecl> const&, clang::DeclContext::specific_decl_iterator<clang::ObjCImplementationDecl> const&)
Line
Count
Source
2238
193
                           const specific_decl_iterator& y) {
2239
193
      return x.Current != y.Current;
2240
193
    }
clang::operator!=(clang::DeclContext::specific_decl_iterator<clang::TypeDecl> const&, clang::DeclContext::specific_decl_iterator<clang::TypeDecl> const&)
Line
Count
Source
2238
9.83k
                           const specific_decl_iterator& y) {
2239
9.83k
      return x.Current != y.Current;
2240<