Home
last modified time | relevance | path

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

/freebsd-12-stable/contrib/llvm-project/clang/lib/Frontend/Rewrite/
DRewriteObjC.cpp2205 SourceLocation DeclLoc = ND->getTypeSpecStartLoc(); in RewriteTypeOfDecl() local
2206 const char *startBuf = SM->getCharacterData(DeclLoc); in RewriteTypeOfDecl()
2218 ReplaceText(DeclLoc, endBuf-startBuf-1, TypeAsString); in RewriteTypeOfDecl()
2224 ReplaceText(DeclLoc, endBuf-startBuf-1, TypeAsString); in RewriteTypeOfDecl()
3921 SourceLocation DeclLoc = FD->getLocation(); in RewriteBlockPointerFunctionArgs() local
3925 const char *startBuf = SM->getCharacterData(DeclLoc); in RewriteBlockPointerFunctionArgs()
3932 DeclLoc = DeclLoc.getLocWithOffset(startArgList-startBuf); in RewriteBlockPointerFunctionArgs()
3933 assert((DeclLoc.isValid()) && "Invalid DeclLoc"); in RewriteBlockPointerFunctionArgs()
3941 DeclLoc = DeclLoc.getLocWithOffset(argPtr-startArgList); in RewriteBlockPointerFunctionArgs()
3942 ReplaceText(DeclLoc, 1, "*"); in RewriteBlockPointerFunctionArgs()
[all …]
DRewriteModernObjC.cpp2291 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()
4767 SourceLocation DeclLoc = FD->getLocation(); in RewriteBlockPointerFunctionArgs() local
4771 const char *startBuf = SM->getCharacterData(DeclLoc); in RewriteBlockPointerFunctionArgs()
4778 DeclLoc = DeclLoc.getLocWithOffset(startArgList-startBuf); in RewriteBlockPointerFunctionArgs()
4779 assert((DeclLoc.isValid()) && "Invalid DeclLoc"); in RewriteBlockPointerFunctionArgs()
4787 DeclLoc = DeclLoc.getLocWithOffset(argPtr-startArgList); in RewriteBlockPointerFunctionArgs()
4788 ReplaceText(DeclLoc, 1, "*"); in RewriteBlockPointerFunctionArgs()
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/lib/Sema/
DSemaInit.cpp3925 ResolveConstructorOverload(Sema &S, SourceLocation DeclLoc, in ResolveConstructorOverload() argument
3999 if (SourceRD && S.isCompleteType(DeclLoc, Initializer->getType())) { in ResolveConstructorOverload()
4028 return CandidateSet.BestViableFunction(S, DeclLoc, Best); in ResolveConstructorOverload()
4304 SourceLocation DeclLoc = Initializer->getBeginLoc(); in TryReferenceListInitialization() local
4306 = S.CompareReferenceRelationship(DeclLoc, cv1T1, cv2T2); in TryReferenceListInitialization()
4656 SourceLocation DeclLoc = Initializer->getBeginLoc(); in TryRefInitWithConversionFunction() local
4661 = CandidateSet.BestViableFunction(S, DeclLoc, Best)) in TryRefInitWithConversionFunction()
4692 S.CompareReferenceRelationship(DeclLoc, T1, cv3T3, &RefConv); in TryRefInitWithConversionFunction()
4788 SourceLocation DeclLoc = Initializer->getBeginLoc(); in TryReferenceInitializationCore() local
4797 S.CompareReferenceRelationship(DeclLoc, cv1T1, cv2T2, &RefConv); in TryReferenceInitializationCore()
[all …]
DSemaType.cpp1273 SourceLocation DeclLoc = declarator.getIdentifierLoc(); in ConvertDeclSpecToType() local
1274 if (DeclLoc.isInvalid()) in ConvertDeclSpecToType()
1275 DeclLoc = DS.getBeginLoc(); in ConvertDeclSpecToType()
1355 S.Diag(DeclLoc, diag::ext_missing_declspec) in ConvertDeclSpecToType()
1365 S.Diag(DeclLoc, diag::err_missing_type_specifier) in ConvertDeclSpecToType()
1375 S.Diag(DeclLoc, diag::err_missing_actual_pipe_type) in ConvertDeclSpecToType()
1379 S.Diag(DeclLoc, diag::ext_missing_type_specifier) in ConvertDeclSpecToType()
1850 QualType Qualified = S.BuildQualifiedType(Result, DeclLoc, TypeQuals, &DS); in ConvertDeclSpecToType()
DSemaDeclObjC.cpp4119 SourceLocation DeclLoc(IDecl->getLocation()); in ActOnAtEnd() local
4120 SourceLocation SuperClassLoc(getLocForEndOfToken(DeclLoc)); in ActOnAtEnd()
4121 Diag(DeclLoc, diag::warn_objc_root_class_missing) in ActOnAtEnd()
4127 DeclLoc, LookupOrdinaryName); in ActOnAtEnd()
DSemaOverload.cpp4612 QualType DeclType, SourceLocation DeclLoc, in FindConversionForRefInit() argument
4619 DeclLoc, OverloadCandidateSet::CSK_InitByUserDefinedConversion); in FindConversionForRefInit()
4647 DeclLoc, in FindConversionForRefInit()
4680 switch (CandidateSet.BestViableFunction(S, DeclLoc, Best)) { in FindConversionForRefInit()
4729 SourceLocation DeclLoc, in TryReferenceInit() argument
4757 S.CompareReferenceRelationship(DeclLoc, T1, T2, &RefConv); in TryReferenceInit()
4827 S.isCompleteType(DeclLoc, T2) && in TryReferenceInit()
4829 if (FindConversionForRefInit(S, ICS, DeclType, DeclLoc, in TryReferenceInit()
4875 T2->isRecordType() && S.isCompleteType(DeclLoc, T2) && in TryReferenceInit()
4876 FindConversionForRefInit(S, ICS, DeclType, DeclLoc, in TryReferenceInit()
DSemaLookup.cpp5372 SourceLocation DeclLoc, in diagnoseMissingImport() argument
5381 Diag(DeclLoc, diag::note_unreachable_entity) << (int)MIK; in diagnoseMissingImport()
5397 PP.getHeaderToIncludeForDiagnostics(UseLoc, DeclLoc)) { in diagnoseMissingImport()
DSemaTemplate.cpp3056 SourceLocation DeclStartLoc, SourceLocation DeclLoc, const CXXScopeSpec &SS, in MatchTemplateParametersToScopeSpecifier() argument
3168 Diag(DeclLoc, diag::err_specialize_member_of_template) in MatchTemplateParametersToScopeSpecifier()
3191 Diag(DeclLoc, diag::err_template_spec_needs_header) in MatchTemplateParametersToScopeSpecifier()
3338 Diag(DeclLoc, diag::err_template_spec_needs_template_parameters) in MatchTemplateParametersToScopeSpecifier()
DSemaDecl.cpp17201 void Sema::ActOnLastBitfield(SourceLocation DeclLoc, in ActOnLastBitfield() argument
17223 Expr * BW = IntegerLiteral::Create(Context, Zero, Context.IntTy, DeclLoc); in ActOnLastBitfield()
17226 DeclLoc, DeclLoc, nullptr, in ActOnLastBitfield()
17229 DeclLoc), in ActOnLastBitfield()
/freebsd-12-stable/contrib/llvm-project/clang/lib/AST/
DASTContext.cpp176 const SourceLocation DeclLoc = D->getLocation(); in getDeclLocForCommentSearch() local
177 if (DeclLoc.isMacroID()) { in getDeclLocForCommentSearch()
189 if (SourceMgr.isMacroArgExpansion(DeclLoc) && in getDeclLocForCommentSearch()
191 return SourceMgr.getExpansionLoc(DeclLoc); in getDeclLocForCommentSearch()
194 return DeclLoc; in getDeclLocForCommentSearch()
279 const SourceLocation DeclLoc = getDeclLocForCommentSearch(D, SourceMgr); in getRawCommentForDeclNoCache() local
283 if (DeclLoc.isInvalid() || !DeclLoc.isFileID()) in getRawCommentForDeclNoCache()
294 const FileID File = SourceMgr.getDecomposedLoc(DeclLoc).first; in getRawCommentForDeclNoCache()
299 return getRawCommentForDeclNoCacheImpl(D, DeclLoc, *CommentsInThisFile); in getRawCommentForDeclNoCache()
514 const SourceLocation DeclLoc = getDeclLocForCommentSearch(D, SourceMgr); in attachCommentsToJustParsedDecls() local
[all …]
DExprConstant.cpp14931 SourceLocation DeclLoc = VD->getLocation(); in EvaluateAsInitializer() local
14954 return CheckConstantExpression(Info, DeclLoc, DeclTy, Value, in EvaluateAsInitializer()
/freebsd-12-stable/contrib/llvm-project/clang/lib/Parse/
DParseExprCXX.cpp215 SourceLocation DeclLoc = Tok.getLocation(); in ParseOptionalCXXScopeSpecifier() local
223 AnnotateExistingDecltypeSpecifier(DS, DeclLoc, EndLoc); in ParseOptionalCXXScopeSpecifier()
228 SS.SetInvalid(SourceRange(DeclLoc, CCLoc)); in ParseOptionalCXXScopeSpecifier()
/freebsd-12-stable/contrib/llvm-project/clang/lib/Serialization/
DASTReaderDecl.cpp3789 SourceLocation DeclLoc; in ReadDeclRecord() local
3790 RecordLocation Loc = DeclCursorForID(ID, DeclLoc); in ReadDeclRecord()
3809 ASTDeclReader Reader(*this, Record, Loc, ID, DeclLoc); in ReadDeclRecord()
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/Sema/
DSema.h2964 SourceLocation DeclLoc, ArrayRef<Module *> Modules,
7599 SourceLocation DeclStartLoc, SourceLocation DeclLoc,