Home | History | Annotate | Download | only in AST

Lines Matching refs:decl

1 //===--- Decl.cpp - Declaration AST Node Implementation -------------------===//
10 // This file implements the Decl subclasses.
14 #include "clang/AST/Decl.h"
773 // Specifically, if this decl exists and has an explicit attribute.
913 // We have just computed the linkage for this decl. By induction we know
936 // and the corresponding decl has explicit visibility, use that.
975 // and the corresponding decl has explicit visibility, use that.
983 // The visibility of a template is stored in the templated decl.
1050 case Decl::ParmVar:
1052 case Decl::TemplateTemplateParm: // count these as external
1053 case Decl::NonTypeTemplateParm:
1054 case Decl::ObjCAtDefsField:
1055 case Decl::ObjCCategory:
1056 case Decl::ObjCCategoryImpl:
1057 case Decl::ObjCCompatibleAlias:
1058 case Decl::ObjCImplementation:
1059 case Decl::ObjCMethod:
1060 case Decl::ObjCProperty:
1061 case Decl::ObjCPropertyImpl:
1062 case Decl::ObjCProtocol:
1065 case Decl::CXXRecord: {
1075 if (Decl *ContextDecl = Record->getLambdaContextDecl()) {
1225 if (getKind() == Decl::UsingDirective) {
1313 static SourceLocation getTemplateOrInnerLocStart(const DeclT *decl) {
1314 if (decl->getNumTemplateParameterLists() > 0)
1315 return decl->getTemplateParameterList(0)->getTemplateLoc();
1317 return decl->getInnerLocStart();
1328 // Make sure the extended decl info is allocated.
1334 // Restore savedTInfo into (extended) decl info.
1345 // Deallocate the extended decl info.
1347 // Restore savedTInfo into (non-extended) decl info.
1361 // Make sure the extended decl info is allocated.
1367 // Restore savedTInfo into (extended) decl info.
1519 // If the first decl is in an extern "C" context, any other redeclaration
1521 // context, we would have reported an error for any other decl being in one.
1671 if (Decl::isOutOfLine())
2645 if (Decl::isOutOfLine())
2766 return new (C) FieldDecl(Decl::Field, DC, StartLoc, IdLoc, Id, T, TInfo,
2931 // Make sure the extended decl info is allocated.
3022 assert(classof(static_cast<Decl*>(this)) && "Invalid Kind!");
3070 static bool isFieldOrIndirectField(Decl::Kind K) {
3081 SmallVector<Decl*, 64> Decls;
3158 // Other Decl Allocation/Deallocation Method Implementations
3367 : Decl(Import, DC, StartLoc), ImportedAndComplete(Imported, true),
3378 : Decl(Import, DC, StartLoc), ImportedAndComplete(Imported, false),