Lines Matching defs:NamedDecl

103 /// NamedDecl - This represents a decl with a name.  Many decls have names such
105 class NamedDecl : public Decl {
113 NamedDecl *getUnderlyingDeclImpl() LLVM_READONLY;
116 NamedDecl(Kind DK, DeclContext *DC, SourceLocation L, DeclarationName N)
170 /// This is the method invoked by Sema when displaying a NamedDecl
185 bool declarationReplaces(NamedDecl *OldD) const;
272 NamedDecl *getUnderlyingDecl() {
280 const NamedDecl *getUnderlyingDecl() const {
281 return const_cast<NamedDecl*>(this)->getUnderlyingDecl();
284 NamedDecl *getMostRecentDecl() {
285 return cast<NamedDecl>(static_cast<Decl *>(this)->getMostRecentDecl());
287 const NamedDecl *getMostRecentDecl() const {
288 return const_cast<NamedDecl*>(this)->getMostRecentDecl();
295 inline raw_ostream &operator<<(raw_ostream &OS, const NamedDecl &ND) {
305 class LabelDecl : public NamedDecl {
315 : NamedDecl(Label, DC, IdentL, II), TheStmt(S), LocStart(StartL) {}
341 class NamespaceDecl : public NamedDecl, public DeclContext,
470 class ValueDecl : public NamedDecl {
477 : NamedDecl(DK, DC, L, N), DeclType(T) {}
1446 ArrayRef<NamedDecl *> DeclsInPrototypeScope;
1883 const ArrayRef<NamedDecl *> &getDeclsInPrototypeScope() const {
1886 void setDeclsInPrototypeScope(ArrayRef<NamedDecl *> NewDecls);
2325 NamedDecl **Chaining;
2330 NamedDecl **CH, unsigned CHS)
2336 QualType T, NamedDecl **CH, unsigned CHS);
2340 typedef NamedDecl * const *chain_iterator;
2369 class TypeDecl : public NamedDecl {
2383 : NamedDecl(DK, DC, L, Id), TypeForDecl(nullptr), LocStart(StartL) {}
2584 llvm::PointerUnion<NamedDecl *, ExtInfo *> NamedDeclOrQualifier;
2600 NamedDeclOrQualifier((NamedDecl *)nullptr) {
2749 NamedDeclOrQualifier.get<NamedDecl *>());
2753 NamedDeclOrQualifier.get<NamedDecl *>());
2758 NamedDeclOrQualifier.get<NamedDecl *>());
3575 /// Insertion operator for diagnostics. This allows sending NamedDecl's
3578 const NamedDecl* ND) {
3584 const NamedDecl* ND) {
3592 // Note: This routine is implemented here because we need both NamedDecl
3621 assert(!isa<NamedDecl>(static_cast<decl_type*>(this)) ||
3622 cast<NamedDecl>(static_cast<decl_type*>(this))->isLinkageValid());