/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
H A D | RewriteModernObjC.cpp | 2291 SourceLocation DeclLoc = ND->getTypeSpecStartLoc(); in RewriteTypeOfDecl() local 2292 const char *startBuf = SM->getCharacterData(DeclLoc); in RewriteTypeOfDecl() 2304 ReplaceText(DeclLoc, endBuf-startBuf-1, TypeAsString); in RewriteTypeOfDecl() 2310 ReplaceText(DeclLoc, endBuf-startBuf-1, TypeAsString); in RewriteTypeOfDecl() 4765 SourceLocation DeclLoc = FD->getLocation(); in RewriteBlockPointerFunctionArgs() local 4769 const char *startBuf = SM->getCharacterData(DeclLoc); in RewriteBlockPointerFunctionArgs() 4776 DeclLoc = DeclLoc.getLocWithOffset(startArgList-startBuf); in RewriteBlockPointerFunctionArgs() 4777 assert((DeclLoc.isValid()) && "Invalid DeclLoc"); in RewriteBlockPointerFunctionArgs() 4785 DeclLoc = DeclLoc.getLocWithOffset(argPtr-startArgList); in RewriteBlockPointerFunctionArgs() 4786 ReplaceText(DeclLoc, 1, "*"); in RewriteBlockPointerFunctionArgs() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/ |
H A D | Transfer.cpp | 217 auto *DeclLoc = Env.getStorageLocation(*VD); in VisitDeclRefExpr() local 218 if (DeclLoc == nullptr) in VisitDeclRefExpr() 221 Env.setStorageLocation(*S, *DeclLoc); in VisitDeclRefExpr()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaAvailability.cpp | 160 auto DeclLoc = Ctx->getBeginLoc(); in ShouldDiagnoseAvailabilityInContext() local 162 if (DeclLoc.isMacroID() && S.getLangOpts().CPlusPlus && in ShouldDiagnoseAvailabilityInContext() 164 StringRef MacroName = S.getPreprocessor().getImmediateMacroName(DeclLoc); in ShouldDiagnoseAvailabilityInContext()
|
H A D | SemaInit.cpp | 4228 Sema &S, SourceLocation DeclLoc, MultiExprArg Args, in ResolveConstructorOverload() argument 4299 if (SourceRD && S.isCompleteType(DeclLoc, Initializer->getType())) { in ResolveConstructorOverload() 4328 return CandidateSet.BestViableFunction(S, DeclLoc, Best); in ResolveConstructorOverload() 4605 SourceLocation DeclLoc = Initializer->getBeginLoc(); in TryReferenceListInitialization() local 4607 = S.CompareReferenceRelationship(DeclLoc, cv1T1, cv2T2); in TryReferenceListInitialization() 4986 SourceLocation DeclLoc = Initializer->getBeginLoc(); in TryRefInitWithConversionFunction() local 4991 = CandidateSet.BestViableFunction(S, DeclLoc, Best)) in TryRefInitWithConversionFunction() 5022 S.CompareReferenceRelationship(DeclLoc, T1, cv3T3, &RefConv); in TryRefInitWithConversionFunction() 5120 SourceLocation DeclLoc = Initializer->getBeginLoc(); in TryReferenceInitializationCore() local 5129 S.CompareReferenceRelationship(DeclLoc, cv1T1, cv2T2, &RefConv); in TryReferenceInitializationCore() [all …]
|
H A D | SemaType.cpp | 891 SourceLocation DeclLoc = declarator.getIdentifierLoc(); in ConvertDeclSpecToType() local 892 if (DeclLoc.isInvalid()) in ConvertDeclSpecToType() 893 DeclLoc = DS.getBeginLoc(); in ConvertDeclSpecToType() 970 S.Diag(DeclLoc, diag::warn_missing_type_specifier) in ConvertDeclSpecToType() 979 S.Diag(DeclLoc, diag::err_missing_type_specifier) in ConvertDeclSpecToType() 988 S.Diag(DeclLoc, diag::err_missing_actual_pipe_type) in ConvertDeclSpecToType() 994 S.Diag(DeclLoc, diag::ext_missing_type_specifier) in ConvertDeclSpecToType() 1532 QualType Qualified = S.BuildQualifiedType(Result, DeclLoc, TypeQuals, &DS); in ConvertDeclSpecToType()
|
H A D | SemaDeclObjC.cpp | 4140 SourceLocation DeclLoc(IDecl->getLocation()); in ActOnAtEnd() local 4141 SourceLocation SuperClassLoc(SemaRef.getLocForEndOfToken(DeclLoc)); in ActOnAtEnd() 4142 Diag(DeclLoc, diag::warn_objc_root_class_missing) in ActOnAtEnd() 4148 DeclLoc, Sema::LookupOrdinaryName); in ActOnAtEnd()
|
H A D | SemaOverload.cpp | 4913 QualType DeclType, SourceLocation DeclLoc, in FindConversionForRefInit() argument 4920 DeclLoc, OverloadCandidateSet::CSK_InitByUserDefinedConversion); in FindConversionForRefInit() 4948 DeclLoc, in FindConversionForRefInit() 4981 switch (CandidateSet.BestViableFunction(S, DeclLoc, Best)) { in FindConversionForRefInit() 5030 SourceLocation DeclLoc, in TryReferenceInit() argument 5058 S.CompareReferenceRelationship(DeclLoc, T1, T2, &RefConv); in TryReferenceInit() 5129 S.isCompleteType(DeclLoc, T2) && in TryReferenceInit() 5131 if (FindConversionForRefInit(S, ICS, DeclType, DeclLoc, in TryReferenceInit() 5177 T2->isRecordType() && S.isCompleteType(DeclLoc, T2) && in TryReferenceInit() 5178 FindConversionForRefInit(S, ICS, DeclType, DeclLoc, in TryReferenceInit()
|
H A D | SemaLookup.cpp | 5577 SourceLocation DeclLoc, in diagnoseMissingImport() argument 5591 Diag(DeclLoc, diag::note_unreachable_entity) << (int)MIK; in diagnoseMissingImport() 5607 PP.getHeaderToIncludeForDiagnostics(UseLoc, DeclLoc)) { in diagnoseMissingImport()
|
H A D | SemaTemplate.cpp | 2676 SourceLocation DeclStartLoc, SourceLocation DeclLoc, const CXXScopeSpec &SS, in MatchTemplateParametersToScopeSpecifier() argument 2788 Diag(DeclLoc, diag::err_specialize_member_of_template) in MatchTemplateParametersToScopeSpecifier() 2811 Diag(DeclLoc, diag::err_template_spec_needs_header) in MatchTemplateParametersToScopeSpecifier() 2958 Diag(DeclLoc, diag::err_template_spec_needs_template_parameters) in MatchTemplateParametersToScopeSpecifier()
|
H A D | SemaDecl.cpp | 18580 void Sema::ActOnLastBitfield(SourceLocation DeclLoc, in ActOnLastBitfield() argument 18602 Expr * BW = IntegerLiteral::Create(Context, Zero, Context.IntTy, DeclLoc); in ActOnLastBitfield() 18605 DeclLoc, DeclLoc, nullptr, in ActOnLastBitfield() 18608 DeclLoc), in ActOnLastBitfield()
|
/freebsd/contrib/llvm-project/clang/lib/Parse/ |
H A D | ParseExprCXX.cpp | 221 SourceLocation DeclLoc = Tok.getLocation(); in ParseOptionalCXXScopeSpecifier() local 229 AnnotateExistingDecltypeSpecifier(DS, DeclLoc, EndLoc); in ParseOptionalCXXScopeSpecifier() 234 SS.SetInvalid(SourceRange(DeclLoc, CCLoc)); in ParseOptionalCXXScopeSpecifier()
|
/freebsd/contrib/llvm-project/clang/lib/Serialization/ |
H A D | ASTReaderDecl.cpp | 3817 SourceLocation DeclLoc; in ReadDeclRecord() local 3818 RecordLocation Loc = DeclCursorForID(ID, DeclLoc); in ReadDeclRecord() 3837 ASTDeclReader Reader(*this, Record, Loc, ID, DeclLoc); in ReadDeclRecord() 4154 clang::runWithSufficientStackSpace([&] { warnStackExhausted(DeclLoc); }, in ReadDeclRecord()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | ASTContext.cpp | 298 for (const auto DeclLoc : DeclLocs) { in getRawCommentForDeclNoCache() local 301 if (DeclLoc.isInvalid() || !DeclLoc.isFileID()) in getRawCommentForDeclNoCache() 312 const FileID File = SourceMgr.getDecomposedLoc(DeclLoc).first; in getRawCommentForDeclNoCache() 321 getRawCommentForDeclNoCacheImpl(D, DeclLoc, *CommentsInThisFile)) in getRawCommentForDeclNoCache() 545 for (const auto DeclLoc : DeclLocs) { in attachCommentsToJustParsedDecls() local 546 if (DeclLoc.isInvalid() || !DeclLoc.isFileID()) in attachCommentsToJustParsedDecls() 550 D, DeclLoc, *CommentsInThisFile)) { in attachCommentsToJustParsedDecls()
|
H A D | ExprConstant.cpp | 16179 SourceLocation DeclLoc = VD->getLocation(); in EvaluateAsInitializer() local 16187 return CheckConstantExpression(Info, DeclLoc, DeclTy, Value, in EvaluateAsInitializer() 16218 return CheckConstantExpression(Info, DeclLoc, DeclTy, Value, in EvaluateAsInitializer()
|
/freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
H A D | Sema.h | 9496 SourceLocation DeclLoc, ArrayRef<Module *> Modules, 11356 SourceLocation DeclStartLoc, SourceLocation DeclLoc,
|