Home
last modified time | relevance | path

Searched refs:DeclLoc (Results 1 – 18 of 18) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DHLSLExternalSemaSource.cpp218 SourceLocation DeclLoc = SourceLocation(); in constructBufferConceptDecl() local
222 Context, NSD->getDeclContext(), DeclLoc, DeclLoc, in constructBufferConceptDecl()
234 Context, DeclLoc, DeclLoc, {T}, DeclLoc, nullptr); in constructBufferConceptDecl()
242 ConstraintExpr = constructTypedBufferConstraintExpr(S, DeclLoc, T); in constructBufferConceptDecl()
246 ConstraintExpr = constructStructuredBufferConstraintExpr(S, DeclLoc, T); in constructBufferConceptDecl()
251 ConceptDecl::Create(Context, NSD->getDeclContext(), DeclLoc, DeclName, in constructBufferConceptDecl()
H A DSemaAvailability.cpp173 auto DeclLoc = Ctx->getBeginLoc(); in ShouldDiagnoseAvailabilityInContext() local
175 if (DeclLoc.isMacroID() && S.getLangOpts().CPlusPlus && in ShouldDiagnoseAvailabilityInContext()
177 StringRef MacroName = S.getPreprocessor().getImmediateMacroName(DeclLoc); in ShouldDiagnoseAvailabilityInContext()
H A DSemaInit.cpp4347 Sema &S, SourceLocation DeclLoc, MultiExprArg Args, in ResolveConstructorOverload() argument
4418 if (SourceRD && S.isCompleteType(DeclLoc, Initializer->getType())) { in ResolveConstructorOverload()
4447 return CandidateSet.BestViableFunction(S, DeclLoc, Best); in ResolveConstructorOverload()
4825 SourceLocation DeclLoc = Initializer->getBeginLoc(); in TryReferenceListInitialization() local
4827 = S.CompareReferenceRelationship(DeclLoc, cv1T1, cv2T2); in TryReferenceListInitialization()
5243 SourceLocation DeclLoc = Initializer->getBeginLoc(); in TryRefInitWithConversionFunction() local
5248 = CandidateSet.BestViableFunction(S, DeclLoc, Best)) in TryRefInitWithConversionFunction()
5279 S.CompareReferenceRelationship(DeclLoc, T1, cv3T3, &RefConv); in TryRefInitWithConversionFunction()
5377 SourceLocation DeclLoc = Initializer->getBeginLoc(); in TryReferenceInitializationCore() local
5386 S.CompareReferenceRelationship(DeclLoc, cv1T1, cv2T2, &RefConv); in TryReferenceInitializationCore()
[all …]
H A DAnalysisBasedWarnings.cpp1977 OptionalNotes makeManagedMismatchNoteForParam(SourceLocation DeclLoc) { in makeManagedMismatchNoteForParam() argument
1978 return DeclLoc.isValid() in makeManagedMismatchNoteForParam()
1980 DeclLoc, in makeManagedMismatchNoteForParam()
H A DSemaType.cpp902 SourceLocation DeclLoc = declarator.getIdentifierLoc(); in ConvertDeclSpecToType() local
903 if (DeclLoc.isInvalid()) in ConvertDeclSpecToType()
904 DeclLoc = DS.getBeginLoc(); in ConvertDeclSpecToType()
981 S.Diag(DeclLoc, diag::warn_missing_type_specifier) in ConvertDeclSpecToType()
990 S.Diag(DeclLoc, diag::err_missing_type_specifier) in ConvertDeclSpecToType()
999 S.Diag(DeclLoc, diag::err_missing_actual_pipe_type) in ConvertDeclSpecToType()
1005 S.Diag(DeclLoc, diag::ext_missing_type_specifier) in ConvertDeclSpecToType()
1550 QualType Qualified = S.BuildQualifiedType(Result, DeclLoc, TypeQuals, &DS); in ConvertDeclSpecToType()
H A DSemaDeclObjC.cpp4142 SourceLocation DeclLoc(IDecl->getLocation()); in ActOnAtEnd() local
4143 SourceLocation SuperClassLoc(SemaRef.getLocForEndOfToken(DeclLoc)); in ActOnAtEnd()
4144 Diag(DeclLoc, diag::warn_objc_root_class_missing) in ActOnAtEnd()
4150 DeclLoc, Sema::LookupOrdinaryName); in ActOnAtEnd()
H A DSemaLookup.cpp5635 SourceLocation DeclLoc, in diagnoseMissingImport() argument
5649 Diag(DeclLoc, diag::note_unreachable_entity) << (int)MIK; in diagnoseMissingImport()
5665 PP.getHeaderToIncludeForDiagnostics(UseLoc, DeclLoc)) { in diagnoseMissingImport()
H A DSemaOverload.cpp5144 QualType DeclType, SourceLocation DeclLoc, in FindConversionForRefInit() argument
5151 DeclLoc, OverloadCandidateSet::CSK_InitByUserDefinedConversion); in FindConversionForRefInit()
5179 DeclLoc, in FindConversionForRefInit()
5212 switch (CandidateSet.BestViableFunction(S, DeclLoc, Best)) { in FindConversionForRefInit()
5264 SourceLocation DeclLoc, in TryReferenceInit() argument
5292 S.CompareReferenceRelationship(DeclLoc, T1, T2, &RefConv); in TryReferenceInit()
5364 S.isCompleteType(DeclLoc, T2) && in TryReferenceInit()
5366 if (FindConversionForRefInit(S, ICS, DeclType, DeclLoc, in TryReferenceInit()
5412 T2->isRecordType() && S.isCompleteType(DeclLoc, T2) && in TryReferenceInit()
5413 FindConversionForRefInit(S, ICS, DeclType, DeclLoc, in TryReferenceInit()
H A DSemaTemplate.cpp2717 SourceLocation DeclStartLoc, SourceLocation DeclLoc, const CXXScopeSpec &SS, in MatchTemplateParametersToScopeSpecifier() argument
2830 Diag(DeclLoc, diag::err_specialize_member_of_template) in MatchTemplateParametersToScopeSpecifier()
2853 Diag(DeclLoc, diag::err_template_spec_needs_header) in MatchTemplateParametersToScopeSpecifier()
3000 Diag(DeclLoc, diag::err_template_spec_needs_template_parameters) in MatchTemplateParametersToScopeSpecifier()
H A DSemaDecl.cpp19122 void Sema::ActOnLastBitfield(SourceLocation DeclLoc, in ActOnLastBitfield() argument
19144 Expr * BW = IntegerLiteral::Create(Context, Zero, Context.IntTy, DeclLoc); in ActOnLastBitfield()
19149 Context, cast<ObjCContainerDecl>(CurContext), DeclLoc, DeclLoc, nullptr, in ActOnLastBitfield()
19150 Context.CharTy, Context.getTrivialTypeSourceInfo(Context.CharTy, DeclLoc), in ActOnLastBitfield()
/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteObjC.cpp2203 SourceLocation DeclLoc = ND->getTypeSpecStartLoc(); in RewriteTypeOfDecl() local
2204 const char *startBuf = SM->getCharacterData(DeclLoc); in RewriteTypeOfDecl()
2216 ReplaceText(DeclLoc, endBuf-startBuf-1, TypeAsString); in RewriteTypeOfDecl()
2222 ReplaceText(DeclLoc, endBuf-startBuf-1, TypeAsString); in RewriteTypeOfDecl()
3913 SourceLocation DeclLoc = FD->getLocation(); in RewriteBlockPointerFunctionArgs() local
3917 const char *startBuf = SM->getCharacterData(DeclLoc); in RewriteBlockPointerFunctionArgs()
3924 DeclLoc = DeclLoc.getLocWithOffset(startArgList-startBuf); in RewriteBlockPointerFunctionArgs()
3925 assert((DeclLoc.isValid()) && "Invalid DeclLoc"); in RewriteBlockPointerFunctionArgs()
3933 DeclLoc = DeclLoc.getLocWithOffset(argPtr-startArgList); in RewriteBlockPointerFunctionArgs()
3934 ReplaceText(DeclLoc, 1, "*"); in RewriteBlockPointerFunctionArgs()
[all …]
H A DRewriteModernObjC.cpp2290 SourceLocation DeclLoc = ND->getTypeSpecStartLoc(); in RewriteTypeOfDecl() local
2291 const char *startBuf = SM->getCharacterData(DeclLoc); in RewriteTypeOfDecl()
2303 ReplaceText(DeclLoc, endBuf-startBuf-1, TypeAsString); in RewriteTypeOfDecl()
2309 ReplaceText(DeclLoc, endBuf-startBuf-1, TypeAsString); in RewriteTypeOfDecl()
4749 SourceLocation DeclLoc = FD->getLocation(); in RewriteBlockPointerFunctionArgs() local
4753 const char *startBuf = SM->getCharacterData(DeclLoc); in RewriteBlockPointerFunctionArgs()
4760 DeclLoc = DeclLoc.getLocWithOffset(startArgList-startBuf); in RewriteBlockPointerFunctionArgs()
4761 assert((DeclLoc.isValid()) && "Invalid DeclLoc"); in RewriteBlockPointerFunctionArgs()
4769 DeclLoc = DeclLoc.getLocWithOffset(argPtr-startArgList); in RewriteBlockPointerFunctionArgs()
4770 ReplaceText(DeclLoc, 1, "*"); in RewriteBlockPointerFunctionArgs()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DTransfer.cpp222 auto *DeclLoc = Env.getStorageLocation(*VD); in VisitDeclRefExpr() local
223 if (DeclLoc == nullptr) in VisitDeclRefExpr()
226 Env.setStorageLocation(*S, *DeclLoc); in VisitDeclRefExpr()
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseExprCXX.cpp169 SourceLocation DeclLoc = Tok.getLocation(); in ParseOptionalCXXScopeSpecifier() local
177 AnnotateExistingDecltypeSpecifier(DS, DeclLoc, EndLoc); in ParseOptionalCXXScopeSpecifier()
182 SS.SetInvalid(SourceRange(DeclLoc, CCLoc)); in ParseOptionalCXXScopeSpecifier()
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTReaderDecl.cpp3890 SourceLocation DeclLoc; in ReadDeclRecord() local
3891 RecordLocation Loc = DeclCursorForID(ID, DeclLoc); in ReadDeclRecord()
3910 ASTDeclReader Reader(*this, Record, Loc, ID, DeclLoc); in ReadDeclRecord()
4240 runWithSufficientStackSpace(DeclLoc, [&] { Reader.Visit(D); }); in ReadDeclRecord()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DASTContext.cpp317 for (const auto DeclLoc : DeclLocs) { in getRawCommentForDeclNoCache() local
320 if (DeclLoc.isInvalid() || !DeclLoc.isFileID()) in getRawCommentForDeclNoCache()
331 const FileID File = SourceMgr.getDecomposedLoc(DeclLoc).first; in getRawCommentForDeclNoCache()
340 getRawCommentForDeclNoCacheImpl(D, DeclLoc, *CommentsInThisFile)) in getRawCommentForDeclNoCache()
578 for (const auto DeclLoc : DeclLocs) { in attachCommentsToJustParsedDecls() local
579 if (DeclLoc.isInvalid() || !DeclLoc.isFileID()) in attachCommentsToJustParsedDecls()
583 D, DeclLoc, *CommentsInThisFile)) { in attachCommentsToJustParsedDecls()
H A DExprConstant.cpp17086 SourceLocation DeclLoc = VD->getLocation(); in EvaluateAsInitializer() local
17094 return CheckConstantExpression(Info, DeclLoc, DeclTy, Value, in EvaluateAsInitializer()
17125 return CheckConstantExpression(Info, DeclLoc, DeclTy, Value, in EvaluateAsInitializer()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h9715 SourceLocation DeclLoc, ArrayRef<Module *> Modules,
11574 SourceLocation DeclStartLoc, SourceLocation DeclLoc,