| /src/external/apache2/llvm/dist/clang/lib/Sema/ |
| SemaTemplate.cpp | 879 /// that the template parameter 'PrevDecl' is being shadowed by a new 882 void Sema::DiagnoseTemplateParameterShadow(SourceLocation Loc, Decl *PrevDecl) { 883 assert(PrevDecl->isTemplateParameter() && "Not a template parameter"); 892 Diag(Loc, DiagId) << cast<NamedDecl>(PrevDecl)->getDeclName(); 893 Diag(PrevDecl->getLocation(), diag::note_template_param_here); 964 NamedDecl *PrevDecl = SemaRef.LookupSingleName( 966 if (PrevDecl && PrevDecl->isTemplateParameter()) 967 SemaRef.DiagnoseTemplateParameterShadow(Loc, PrevDecl); 1791 NamedDecl *PrevDecl = nullptr [all...] |
| SemaDeclObjC.cpp | 552 NamedDecl *PrevDecl = LookupSingleName(TUScope, SuperName, SuperLoc, 555 if (!PrevDecl) { 564 PrevDecl = Corrected.getCorrectionDeclAs<ObjCInterfaceDecl>(); 568 if (declaresSameEntity(PrevDecl, IDecl)) { 574 dyn_cast_or_null<ObjCInterfaceDecl>(PrevDecl); 583 if (PrevDecl && !SuperClassDecl) { 587 dyn_cast_or_null<TypedefNameDecl>(PrevDecl)) { 610 Diag(PrevDecl->getLocation(), diag::note_previous_definition); 614 if (!dyn_cast_or_null<TypedefNameDecl>(PrevDecl)) { 985 NamedDecl *PrevDecl [all...] |
| SemaDecl.cpp | 1441 /// PrevDecl with another declaration. 4843 NamedDecl *PrevDecl = R.getRepresentativeDecl()->getUnderlyingDecl(); 4844 assert(PrevDecl && "Expected a non-null Decl"); 4846 if (!SemaRef.isDeclInScope(PrevDecl, Owner, S)) 4851 SemaRef.Diag(PrevDecl->getLocation(), diag::note_previous_declaration); 6250 /// previous declaration (PrevDecl) that is not in the scope where a 6256 /// \param PrevDecl the previous declaration found by name 6262 /// \returns true if PrevDecl is an out-of-scope previous declaration 6265 isOutOfScopePreviousDeclaration(NamedDecl *PrevDecl, DeclContext *DC, 6267 if (!PrevDecl) [all...] |
| SemaTemplateInstantiateDecl.cpp | 1300 EnumDecl *PrevDecl = nullptr; 1306 PrevDecl = cast<EnumDecl>(Prev); 1311 D->getLocation(), D->getIdentifier(), PrevDecl, 1472 CXXRecordDecl *PrevDecl = nullptr; 1480 PrevDecl = PrevClassTemplate->getTemplatedDecl(); 1511 PrevDecl = PrevClassTemplate->getTemplatedDecl(); 1540 Pattern->getLocation(), Pattern->getIdentifier(), PrevDecl, 1763 CXXRecordDecl *PrevDecl = nullptr; 1765 PrevDecl = cast<CXXRecordDecl>(Owner); 1771 PrevDecl = cast<CXXRecordDecl>(Prev) [all...] |
| SemaAccess.cpp | 1118 NamedDecl *PrevDecl = nullptr; 1120 PrevDecl = VD->getPreviousDecl(); 1122 PrevDecl = FD->getPreviousDecl(); 1124 PrevDecl = TND->getPreviousDecl(); 1128 PrevDecl = TD->getPreviousDecl(); 1130 if (!PrevDecl) break; 1131 D = PrevDecl;
|
| SemaDeclCXX.cpp | 10936 NamedDecl *PrevDecl = 10938 PrevNS = dyn_cast_or_null<NamespaceDecl>(PrevDecl); 10945 } else if (PrevDecl) { 10949 Diag(PrevDecl->getLocation(), diag::note_previous_definition); 11247 /*PrevDecl=*/nullptr); 11807 UsingShadowDecl *PrevDecl) { 11836 Shadow->setPreviousDecl(PrevDecl); 12249 UsingShadowDecl *PrevDecl = nullptr; 12250 if (!CheckUsingShadowDecl(UD, *I, Previous, PrevDecl)) 12251 BuildUsingShadowDecl(S, UD, *I, PrevDecl); [all...] |
| Sema.cpp | 1096 Decl *PrevDecl = LookupSingleName(TUScope, WeakID.first, SourceLocation(), 1098 if (PrevDecl != nullptr && 1099 !(isa<FunctionDecl>(PrevDecl) || isa<VarDecl>(PrevDecl)))
|
| SemaOpenMP.cpp | 19326 auto *PrevDecl = cast<OMPDeclareReductionDecl>(Filter.next()); 19328 auto I = UsedAsPrevious.find(PrevDecl); 19330 UsedAsPrevious[PrevDecl] = false; 19331 if (OMPDeclareReductionDecl *D = PrevDecl->getPrevDeclInScope()) 19334 PreviousRedeclTypes[PrevDecl->getType().getCanonicalType()] = 19335 PrevDecl->getLocation(); 19578 auto *PrevDecl = cast<OMPDeclareMapperDecl>(Filter.next()); 19580 auto I = UsedAsPrevious.find(PrevDecl); 19582 UsedAsPrevious[PrevDecl] = false; 19583 if (OMPDeclareMapperDecl *D = PrevDecl->getPrevDeclInScope() [all...] |
| /src/external/apache2/llvm/dist/clang/lib/AST/ |
| DeclObjC.cpp | 1496 ObjCInterfaceDecl *PrevDecl, 1500 ObjCInterfaceDecl(C, DC, atLoc, Id, typeParamList, ClassLoc, PrevDecl, 1503 C.getObjCInterfaceType(Result, PrevDecl); 1520 ObjCInterfaceDecl *PrevDecl, 1524 setPreviousDecl(PrevDecl); 1527 if (PrevDecl) 1528 Data = PrevDecl->Data; 1883 ObjCProtocolDecl *PrevDecl) 1886 setPreviousDecl(PrevDecl); 1887 if (PrevDecl) [all...] |
| DeclTemplate.cpp | 894 ClassTemplateSpecializationDecl *PrevDecl) 896 SpecializedTemplate->getIdentifier(), PrevDecl), 915 ClassTemplateSpecializationDecl *PrevDecl) { 919 SpecializedTemplate, Args, PrevDecl); 922 Context.getTypeDeclType(Result, PrevDecl); 1034 ClassTemplatePartialSpecializationDecl *PrevDecl) 1038 SpecializedTemplate, Args, PrevDecl), 1053 ClassTemplatePartialSpecializationDecl *PrevDecl) { 1060 ASTArgInfos, PrevDecl);
|
| Decl.cpp | 3257 FunctionDecl::setPreviousDeclaration(FunctionDecl *PrevDecl) { 3258 redeclarable_base::setPreviousDecl(PrevDecl); 3262 = PrevDecl? PrevDecl->getDescribedFunctionTemplate() : nullptr; 3263 assert((!PrevDecl || PrevFunTmpl) && "Function/function template mismatch"); 3267 if (PrevDecl && PrevDecl->isInlined()) 4249 SourceLocation L, IdentifierInfo *Id, TagDecl *PrevDecl, 4255 setPreviousDecl(PrevDecl); 4367 SourceLocation IdLoc, IdentifierInfo *Id, EnumDecl *PrevDecl, [all...] |
| DeclCXX.cpp | 126 CXXRecordDecl *PrevDecl) 127 : RecordDecl(K, TK, C, DC, StartLoc, IdLoc, Id, PrevDecl), 128 DefinitionData(PrevDecl ? PrevDecl->DefinitionData 134 CXXRecordDecl *PrevDecl, 137 PrevDecl); 142 C.getTypeDeclType(R, PrevDecl); 159 C.getTypeDeclType(R, /*PrevDecl=*/nullptr); 2866 IdentifierInfo *Id, NamespaceDecl *PrevDecl) 2870 setPreviousDecl(PrevDecl); [all...] |
| DeclBase.cpp | 1306 Decl *PrevDecl = nullptr; 1311 if (PrevDecl) 1312 PrevDecl->NextInContextAndBits.setPointer(D); 1316 PrevDecl = D; 1319 return std::make_pair(FirstNewDecl, PrevDecl);
|
| DeclPrinter.cpp | 1170 FunctionDecl *PrevDecl = D->getTemplatedDecl(); 1172 if (PrevDecl->isDefined(Def) && Def != PrevDecl) 1176 if (!PrevDecl->isThisDeclarationADefinition())
|
| ASTImporter.cpp | 2390 /*PrevDecl=*/nullptr)) 2675 EnumDecl *PrevDecl = nullptr; 2696 PrevDecl = FoundEnum->getMostRecentDecl(); 2726 Loc, Name.getAsIdentifierInfo(), PrevDecl, D->isScoped(), 2789 RecordDecl *PrevDecl = nullptr; 2845 PrevDecl = FoundRecord->getMostRecentDecl(); 2894 cast_or_null<CXXRecordDecl>(PrevDecl), DelayTypeCreation)) 2902 cast_or_null<CXXRecordDecl>(PrevDecl))) 2972 Name.getAsIdentifierInfo(), PrevDecl)) 4516 /*PrevDecl=*/nullptr) [all...] |
| ASTContext.cpp | 4478 } else if (CXXRecordDecl *PrevDecl = Decl->getPreviousDecl()) { 4479 assert(PrevDecl->TypeForDecl && "previous declaration has no type"); 4480 Decl->TypeForDecl = PrevDecl->TypeForDecl; 4539 if (const RecordDecl *PrevDecl = Decl->getPreviousDecl()) 4540 if (PrevDecl->TypeForDecl) 4541 return QualType(Decl->TypeForDecl = PrevDecl->TypeForDecl, 0); 4552 if (const EnumDecl *PrevDecl = Decl->getPreviousDecl()) 4553 if (PrevDecl->TypeForDecl) 4554 return QualType(Decl->TypeForDecl = PrevDecl->TypeForDecl, 0); 5375 ObjCInterfaceDecl *PrevDecl) const [all...] |
| /src/external/apache2/llvm/dist/clang/include/clang/AST/ |
| Redeclarable.h | 234 /// Set the previous declaration. If PrevDecl is NULL, set this as the 236 void setPreviousDecl(decl_type *PrevDecl);
|
| Decl.h | 534 IdentifierInfo *Id, NamespaceDecl *PrevDecl); 549 NamespaceDecl *PrevDecl); 2442 void setPreviousDeclaration(FunctionDecl * PrevDecl); 3323 SourceLocation L, IdentifierInfo *Id, TagDecl *PrevDecl, 3588 SourceLocation IdLoc, IdentifierInfo *Id, EnumDecl *PrevDecl, 3660 IdentifierInfo *Id, EnumDecl *PrevDecl, 3851 IdentifierInfo *Id, RecordDecl *PrevDecl); 3856 IdentifierInfo *Id, RecordDecl* PrevDecl = nullptr); 4559 void Redeclarable<decl_type>::setPreviousDecl(decl_type *PrevDecl) { 4565 if (PrevDecl) { [all...] |
| ASTContext.h | 1460 const TypeDecl *PrevDecl = nullptr) const { 1464 if (PrevDecl) { 1465 assert(PrevDecl->TypeForDecl && "previous decl has no TypeForDecl"); 1466 Decl->TypeForDecl = PrevDecl->TypeForDecl; 1467 return QualType(PrevDecl->TypeForDecl, 0); 1557 ObjCInterfaceDecl *PrevDecl = nullptr) const;
|
| DeclObjC.h | 1231 SourceLocation CLoc, ObjCInterfaceDecl *PrevDecl, 1265 ObjCInterfaceDecl *PrevDecl, 2059 ObjCProtocolDecl *PrevDecl); 2093 ObjCProtocolDecl *PrevDecl);
|
| DeclTemplate.h | 1852 ClassTemplateSpecializationDecl *PrevDecl); 1865 ClassTemplateSpecializationDecl *PrevDecl); 2096 ClassTemplatePartialSpecializationDecl *PrevDecl); 2116 ClassTemplatePartialSpecializationDecl *PrevDecl);
|
| DeclCXX.h | 484 IdentifierInfo *Id, CXXRecordDecl *PrevDecl); 546 CXXRecordDecl *PrevDecl = nullptr,
|
| /src/external/apache2/llvm/dist/clang/include/clang/Sema/ |
| Template.h | 606 VarTemplateSpecializationDecl *PrevDecl = nullptr);
|
| Sema.h | 3044 AccessSpecifier AS, NamedDecl *PrevDecl, 5683 UsingShadowDecl *PrevDecl); 7445 void DiagnoseTemplateParameterShadow(SourceLocation Loc, Decl *PrevDecl); 7652 NamedDecl *PrevDecl,
|