Home
last modified time | relevance | path

Searched refs:getDeclName (Results 1 – 25 of 144) sorted by relevance

123456

/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/Models/
H A DChromiumCheckModel.cpp31 if (ParentClass == nullptr || !ParentClass->getDeclName().isIdentifier() || in isCheckLikeMethod()
38 if (N == nullptr || !N->getDeclName().isIdentifier() || in isCheckLikeMethod()
47 if (M->getDeclName().isIdentifier() && M->getName().ends_with("Check")) in isCheckLikeMethod()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaObjCProperty.cpp98 << property->getDeclName() in checkPropertyDeclWithOwnership()
400 << NewProperty->getDeclName() << "atomic" in checkAtomicPropertyMismatch()
457 << CCPrimary->getDeclName(); in HandlePropertyInClassExtension()
700 << PDecl->getDeclName(); in CreatePropertyDecl()
750 << property->getDeclName() in checkARCPropertyImpl()
751 << ivar->getDeclName() in checkARCPropertyImpl()
757 << property->getDeclName() in checkARCPropertyImpl()
758 << ivar->getDeclName(); in checkARCPropertyImpl()
763 << property->getDeclName() << ivar->getDeclName() in checkARCPropertyImpl()
1017 for (auto *Found : OrigClass->lookup(Prop->getDeclName())) { in hasWrittenStorageAttribute()
[all …]
H A DSemaDeclObjC.cpp309 << ND->getDeclName(); in DiagnoseObjCImplementedDeprecations()
327 << ND->getDeclName(); in DiagnoseObjCImplementedDeprecations()
628 SuperClassDecl->getDeclName(), ClassName, in ActOnSuperClassOfClassInterface()
880 << newTypeParam->getDeclName() in checkTypeParamListConsistency()
882 << prevTypeParam->getDeclName(); in checkTypeParamListConsistency()
907 << prevTypeParam->getDeclName(); in checkTypeParamListConsistency()
926 << newTypeParam->getDeclName() in checkTypeParamListConsistency()
929 << (newTypeParam->getDeclName() == prevTypeParam->getDeclName()) in checkTypeParamListConsistency()
930 << prevTypeParam->getDeclName() in checkTypeParamListConsistency()
937 << prevTypeParam->getDeclName(); in checkTypeParamListConsistency()
[all …]
H A DSemaBPF.cpp61 if (!RT->getDecl()->getDeclName().isEmpty()) in isValidPreserveTypeInfoArg()
64 if (!ET->getDecl()->getDeclName().isEmpty()) in isValidPreserveTypeInfoArg()
H A DSemaTemplateInstantiateDecl.cpp1444 D->getLocation(), D->getDeclName()); in InstantiateTypedefNameDecl()
1557 DeclContext::lookup_result Found = Owner->lookup(Pattern->getDeclName()); in InstantiateTypeAliasTemplateDecl()
1570 D->getDeclName(), InstParams, AliasInst); in InstantiateTypeAliasTemplateDecl()
1653 D->getDeclName(), /*AllowDeducedTST*/true); in VisitVarDecl()
1746 D->getLocation(), D->getDeclName()); in VisitFieldDecl()
1782 FieldDecl *Field = SemaRef.CheckFieldDecl(D->getDeclName(), in VisitFieldDecl()
1805 if (!Field->getDeclName() || Field->isPlaceholderVar(SemaRef.getLangOpts())) { in VisitFieldDecl()
1832 D->getLocation(), D->getDeclName()); in VisitMSPropertyDecl()
1852 SemaRef.Context, Owner, D->getLocation(), D->getDeclName(), DI->getType(), in VisitMSPropertyDecl()
2205 DeclContext::lookup_result Found = Owner->lookup(Pattern->getDeclName()); in VisitClassTemplateDecl()
[all …]
H A DSemaExprObjC.cpp1199 << Method->getDeclName(); in HelperToDiagnoseMismatchedMethodsInGlobalPool()
1202 << MatchingMethodDecl->getDeclName(); in HelperToDiagnoseMismatchedMethodsInGlobalPool()
1332 << Method->getDeclName(); in ParseObjCSelectorExpression()
1343 << LikelyTargetMethod->getDeclName(); in ParseObjCSelectorExpression()
1351 << GlobalDirectMethod->getDeclName(); in ParseObjCSelectorExpression()
2146 << MemberName << QualType(OPT, 0) << Ivar->getDeclName() in HandleExprPropertyRefExpr()
2397 << Method->getDeclName(); in ActOnSuperMessage()
2574 << Method->getDeclName(); in DiagnoseCStringFormatDirectiveInObjCAPI()
2666 << Method->getDeclName(); in BuildClassMessage()
2705 << Method->getDeclName(); in BuildClassMessage()
[all …]
H A DSemaDeclCXX.cpp117 << Param->getDeclName() << DefaultArg->getSourceRange(); in VisitDeclRefExpr()
607 << New->getDeclName() in MergeCXXFunctionDecl()
1363 S.BuildReferenceType(T, E.get()->isLValue(), Loc, B->getDeclName()); in checkTupleLikeDecomposition()
1368 B->getDeclName().getAsIdentifierInfo(), RefType, in checkTupleLikeDecomposition()
1390 DeclarationNameInfo(B->getDeclName(), Loc), in checkTupleLikeDecomposition()
1490 if (!FD->getDeclName()) { in CheckMemberDecompositionFields()
1571 DeclarationNameInfo(FD->getDeclName(), Loc)); in checkMemberDecomposition()
1830 << (FD ? FD->getDeclName() : DeclarationName()) << T; in CheckConstexprDestructorSubobjects()
1832 << !FD << (FD ? FD->getDeclName() : DeclarationName()) << T; in CheckConstexprDestructorSubobjects()
2802 << BaseDecl->getDeclName(); in CheckBaseSpecifier()
[all …]
H A DAnalysisBasedWarnings.cpp373 FD->getDeclName().getCXXOverloadedOperator() == OO_Delete || in EmitDiagForCXXThrowInNonThrowingFunc()
374 FD->getDeclName().getCXXOverloadedOperator() == OO_Array_Delete)) { in EmitDiagForCXXThrowInNonThrowingFunc()
925 << VD->getDeclName() in SuggestInitializationFixit()
945 S.Diag(Loc, diag::note_var_fixit_add_initialization) << VD->getDeclName() in SuggestInitializationFixit()
983 << VD->getDeclName() << IsCapturedByBlock in DiagUninitUse()
990 << VD->getDeclName() << IsCapturedByBlock in DiagUninitUse()
1126 << VD->getDeclName() << IsCapturedByBlock << DiagKind in DiagUninitUse()
1139 << VD->getDeclName() << IsCapturedByBlock in DiagUninitUse()
1147 << VD->getDeclName() << Use.getUser()->getSourceRange(); in DiagnoseUninitializedConstRefUse()
1155 << VD->getDeclName() << Use.getUser()->getSourceRange(); in DiagnoseUninitializedConstPtrUse()
[all …]
H A DSemaAccess.cpp281 if (From->getDeclName() != To->getDeclName()) in MightInstantiateTo()
383 if (Context->getDeclName() != Friend->getDeclName()) in MightInstantiateTo()
492 if (CTD->getDeclName() != Friend->getDeclName()) in MatchesFriend()
1288 << (D ? D->getDeclName() : DeclarationName()) in DiagnoseBadAccess()
H A DSemaDecl.cpp1271 LookupResult Result(*this, Found->getDeclName(), NameLoc, LookupOrdinaryName); in ActOnNameClassifiedAsNonType()
1535 if (isa<UsingEnumDecl>(D) && D->getDeclName().isEmpty()) { in PushOnScopeChains()
1540 IdentifierResolver::iterator I = IdResolver.begin(D->getDeclName()), in PushOnScopeChains()
1558 for (I = IdResolver.begin(D->getDeclName()); I != IEnd; ++I) { in PushOnScopeChains()
1946 } else if (!D->getDeclName()) { in ShouldDiagnoseUnusedDecl()
2119 if (!VD->isReferenced() || !VD->getDeclName() || VD->hasAttr<CleanupAttr>()) in DiagnoseUnusedButSetDecl()
2238 if (!D->getDeclName()) continue; in ActOnPopScope()
2536 << New->getDeclName(); in MergeTypedefNameDecl()
2620 << New->getDeclName(); in MergeTypedefNameDecl()
2641 << New->getDeclName(); in MergeTypedefNameDecl()
[all …]
H A DSemaExprMember.cpp244 DeclarationName N = Method->getParamDecl(0)->getDeclName(); in diagnoseInstanceReference()
781 DeclarationNameInfo memberNameInfo(field->getDeclName(), loc); in BuildAnonymousStructUnionMemberReference()
799 DeclarationNameInfo memberNameInfo(field->getDeclName(), loc); in BuildAnonymousStructUnionMemberReference()
1357 << IDecl->getDeclName() << MemberName); in LookupMemberExpr()
1383 << IDecl->getDeclName() << MemberName in LookupMemberExpr()
1424 << IV->getDeclName(); in LookupMemberExpr()
1428 << IV->getDeclName(); in LookupMemberExpr()
1451 S.Diag(MemberLoc, diag::warn_direct_ivar_access) << IV->getDeclName(); in LookupMemberExpr()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DASTImporterLookupTable.cpp105 DeclList &Decls = LookupTable[DC][ND->getDeclName()]; in add()
111 const DeclarationName Name = ND->getDeclName(); in remove()
159 LookupTable[OldDC][ND->getDeclName()].remove(ND); in updateForced()
178 return lookup(DC, ND->getDeclName()).contains(ND); in contains()
H A DODRDiagsEmitter.cpp79 DeclarationName FirstName = FirstMethod->getDeclName(); in diagnoseSubMismatchMethodParameters()
89 DeclarationName SecondName = SecondMethod->getDeclName(); in diagnoseSubMismatchMethodParameters()
132 DeclarationName FirstParamName = FirstParam->getDeclName(); in diagnoseSubMismatchMethodParameters()
133 DeclarationName SecondParamName = SecondParam->getDeclName(); in diagnoseSubMismatchMethodParameters()
268 DeclarationName FirstName = FirstTD->getDeclName(); in diagnoseSubMismatchTypedef()
269 DeclarationName SecondName = SecondTD->getDeclName(); in diagnoseSubMismatchTypedef()
311 DeclarationName FirstName = FirstVD->getDeclName(); in diagnoseSubMismatchVar()
312 DeclarationName SecondName = SecondVD->getDeclName(); in diagnoseSubMismatchVar()
403 DeclarationName FirstProtocolName = FirstProtocol->getDeclName(); in diagnoseSubMismatchProtocols()
404 DeclarationName SecondProtocolName = SecondProtocol->getDeclName(); in diagnoseSubMismatchProtocols()
[all …]
H A DDeclPrinter.cpp611 if (D->getDeclName()) in VisitEnumDecl()
612 Out << ' ' << D->getDeclName(); in VisitEnumDecl()
733 Proto = GuideDecl->getDeducedTemplate()->getDeclName().getAsString(); in VisitFunctionDecl()
1079 if (D->getDeclName()) in VisitNamespaceDecl()
1080 Out << D->getDeclName() << ' '; in VisitNamespaceDecl()
1282 else if (TTP->getDeclName()) in VisitTemplateDecl()
1285 if (TTP->getDeclName()) { in VisitTemplateDecl()
1289 Out << TTP->getDeclName(); in VisitTemplateDecl()
1412 Out << Param->getDeclName(); in PrintObjCTypeParams()
1774 Out << D->getDeclName(); in VisitUnresolvedUsingTypenameDecl()
[all …]
H A DASTStructuralEquivalence.cpp138 Context, Name1.getCXXDeductionGuideTemplate()->getDeclName(), in IsStructurallyEquivalent()
139 Name2.getCXXDeductionGuideTemplate()->getDeclName())) in IsStructurallyEquivalent()
233 if (!IsStructurallyEquivalent(Context, DE1->getDeclName(), in IsStmtEquivalent()
234 DE2->getDeclName())) in IsStmtEquivalent()
666 return TN1->getDeclName() == TN2->getDeclName(); in IsStructurallyEquivalent()
1565 << Field2->getDeclName(); in IsStructurallyEquivalent()
1567 << Field1->getDeclName(); in IsStructurallyEquivalent()
1580 << Field2->getDeclName() << Field2->getType(); in IsStructurallyEquivalent()
1582 << Field1->getDeclName() << Field1->getType(); in IsStructurallyEquivalent()
1604 << FD->getDeclName() << FD->getBitWidthValue(); in IsStructurallyEquivalent()
[all …]
H A DDeclarationName.cpp93 return compare(LHS.getCXXDeductionGuideTemplate()->getDeclName(), in compare()
94 RHS.getCXXDeductionGuideTemplate()->getDeclName()); in compare()
164 getCXXDeductionGuideTemplate()->getDeclName().print(OS, Policy); in print()
/freebsd/contrib/llvm-project/clang/lib/Interpreter/
H A DIncrementalParser.cpp179 if (!ND || ND->getDeclName().isEmpty()) in CleanUpPTU()
182 if (ND->getDeclName().getFETokenInfo() && !D->getLangOpts().ObjC && in CleanUpPTU()
H A DCodeCompletion.cpp188 if (!Result.Declaration->getDeclName().isIdentifier() || in ProcessCodeCompleteResults()
326 importedNamedDecl->getDeclName(), in completeVisibleDeclsMap()
350 SetExternalVisibleDeclsForName(ChildDeclContext, Meth->getDeclName(), in completeVisibleDeclsMap()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DVirtualCallChecker.cpp135 OS << "virtual method '" << MD->getParent()->getDeclName() in checkPreCall()
136 << "::" << MD->getDeclName() << "' during "; in checkPreCall()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DASTUtils.h94 if (!ND->getDeclName().isIdentifier()) in safeGetName()
/freebsd/contrib/llvm-project/clang/lib/Index/
H A DIndexingContext.cpp241 for (const NamedDecl *BaseND : Pattern->lookup(ND->getDeclName())) { in adjustTemplateImplicitInstantiation()
251 for (const NamedDecl *BaseECD : Pattern->lookup(ECD->getDeclName())) in adjustTemplateImplicitInstantiation()
282 return (ND->getDeclName().isEmpty() && !isa<TagDecl>(ND) && in shouldSkipNamelessDecl()
H A DFileIndexRecord.cpp63 OS << ' ' << ND->getDeclName(); in print()
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DInterpFrame.cpp128 if (FD->getDeclName().getCXXOverloadedOperator() == OO_New || in shouldSkipInBacktrace()
129 FD->getDeclName().getCXXOverloadedOperator() == OO_Array_New) in shouldSkipInBacktrace()
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangExternalASTSourceCallbacks.cpp61 if (omd->getDeclName() == Name) in FindExternalVisibleDeclsByName()
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTWriterDecl.cpp595 Record.AddDeclarationName(D->getDeclName()); in VisitNamedDecl()
627 D->getDeclName().getNameKind() == DeclarationName::Identifier) in VisitTypedefDecl()
665 Record.AddIdentifierRef(TD->getDeclName().getAsIdentifierInfo()); in VisitTagDecl()
706 D->getDeclName().getNameKind() == DeclarationName::Identifier) in VisitEnumDecl()
747 D->getDeclName().getNameKind() == DeclarationName::Identifier) in VisitRecordDecl()
864 Record.AddDeclarationNameLoc(D->DNLoc, D->getDeclName()); in VisitFunctionDecl()
1094 D->getDeclName()) in VisitObjCIvarDecl()
1214 if (!D->getDeclName() || D->isPlaceholderVar(Writer.getLangOpts())) in VisitFieldDecl()
1232 D->getDeclName()) in VisitFieldDecl()
1354 D->getDeclName().getNameKind() == DeclarationName::Identifier && in VisitVarDecl()
[all …]

123456