• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/llvm-project/clang/lib/Sema/

Lines Matching refs:Def

1763       if (TagDecl *Def = PrevRecordDecl->getDefinition()) {
1767 if (SkipBody && !hasVisibleDefinition(Def, &Hidden)) {
1769 SkipBody->Previous = Def;
1777 Diag(Def->getLocation(), diag::note_previous_definition);
8290 RecordDecl *Def = Specialization->getDefinition();
8292 if (Def && SkipBody && !hasVisibleDefinition(Def, &Hidden)) {
8294 SkipBody->Previous = Def;
8296 } else if (Def) {
8299 Diag(Def->getLocation(), diag::note_previous_definition);
9254 Sema &S, ClassTemplateSpecializationDecl *Def) {
9255 auto *A = cast_or_null<InheritableAttr>(getDLLAttr(Def));
9257 "on Def without dllexport or dllimport");
9263 S.checkClassLevelDLLAttribute(Def);
9266 for (auto &B : Def->bases()) {
9269 S.propagateDLLAttrToBaseClassTemplate(Def, A, BT, B.getBeginLoc());
9492 ClassTemplateSpecializationDecl *Def
9495 if (!Def)
9499 Specialization->setPointOfInstantiation(Def->getPointOfInstantiation());
9503 Def = cast_or_null<ClassTemplateSpecializationDecl>(
9505 if (Def) {
9506 TemplateSpecializationKind Old_TSK = Def->getTemplateSpecializationKind();
9513 Def->setTemplateSpecializationKind(TSK);
9515 if (!getDLLAttr(Def) && getDLLAttr(Specialization) &&
9524 Def->addAttr(A);
9525 dllExportImportClassTemplateSpecialization(*this, Def);
9544 // dllimport, while it will with cl. The Def will already have the DLL
9545 // attribute, since the Def and Specialization will be the same in the
9548 assert(Def == Specialization &&
9549 "Def and Specialization should match for implicit instantiation");
9550 dllExportImportClassTemplateSpecialization(*this, Def);
9558 dllExportImportClassTemplateSpecialization(*this, Def);
9564 InstantiateClassTemplateSpecializationMembers(TemplateNameLoc, Def, TSK);
9656 CXXRecordDecl *Def
9658 if (!Def) {
9665 if (InstantiateClass(NameLoc, Record, Def,