| /openbsd-src/gnu/llvm/clang/lib/Analysis/FlowSensitive/ |
| H A D | Transfer.cpp | 195 auto *DeclLoc = Env.getStorageLocation(*VD, SkipPast::None); in VisitDeclRefExpr() local 196 if (DeclLoc == nullptr) in VisitDeclRefExpr() 200 assert(isa_and_nonnull<ReferenceValue>(Env.getValue((*DeclLoc))) && in VisitDeclRefExpr() 202 Env.setStorageLocation(*S, *DeclLoc); in VisitDeclRefExpr() 205 auto &Val = Env.takeOwnership(std::make_unique<ReferenceValue>(*DeclLoc)); in VisitDeclRefExpr()
|
| /openbsd-src/gnu/llvm/clang/lib/Frontend/Rewrite/ |
| H A D | RewriteObjC.cpp | 2205 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 …]
|
| H A D | RewriteModernObjC.cpp | 2292 SourceLocation DeclLoc = ND->getTypeSpecStartLoc(); in RewriteTypeOfDecl() local 2293 const char *startBuf = SM->getCharacterData(DeclLoc); in RewriteTypeOfDecl() 2305 ReplaceText(DeclLoc, endBuf-startBuf-1, TypeAsString); in RewriteTypeOfDecl() 2311 ReplaceText(DeclLoc, endBuf-startBuf-1, TypeAsString); in RewriteTypeOfDecl() 4768 SourceLocation DeclLoc = FD->getLocation(); in RewriteBlockPointerFunctionArgs() local 4772 const char *startBuf = SM->getCharacterData(DeclLoc); in RewriteBlockPointerFunctionArgs() 4779 DeclLoc = DeclLoc.getLocWithOffset(startArgList-startBuf); in RewriteBlockPointerFunctionArgs() 4780 assert((DeclLoc.isValid()) && "Invalid DeclLoc"); in RewriteBlockPointerFunctionArgs() 4788 DeclLoc = DeclLoc.getLocWithOffset(argPtr-startArgList); in RewriteBlockPointerFunctionArgs() 4789 ReplaceText(DeclLoc, 1, "*"); in RewriteBlockPointerFunctionArgs() [all …]
|
| /openbsd-src/gnu/llvm/clang/tools/libclang/ |
| H A D | CXIndexDataConsumer.cpp | 26 SourceLocation DeclLoc; member in __anon02cff6af0111::IndexingDeclVisitor 32 : DataConsumer(dataConsumer), DeclLoc(Loc), LexicalDC(lexicalDC) { } in IndexingDeclVisitor() 95 DataConsumer.handleSynthesizedObjCMethod(D, DeclLoc, LexicalDC); in VisitObjCMethodDecl() 97 DataConsumer.handleObjCMethod(D, DeclLoc); in VisitObjCMethodDecl()
|
| /openbsd-src/gnu/llvm/clang/lib/Sema/ |
| H A D | SemaInit.cpp | 3980 ResolveConstructorOverload(Sema &S, SourceLocation DeclLoc, in ResolveConstructorOverload() argument 4054 if (SourceRD && S.isCompleteType(DeclLoc, Initializer->getType())) { in ResolveConstructorOverload() 4083 return CandidateSet.BestViableFunction(S, DeclLoc, Best); in ResolveConstructorOverload() 4359 SourceLocation DeclLoc = Initializer->getBeginLoc(); in TryReferenceListInitialization() local 4361 = S.CompareReferenceRelationship(DeclLoc, cv1T1, cv2T2); in TryReferenceListInitialization() 4711 SourceLocation DeclLoc = Initializer->getBeginLoc(); in TryRefInitWithConversionFunction() local 4716 = CandidateSet.BestViableFunction(S, DeclLoc, Best)) in TryRefInitWithConversionFunction() 4747 S.CompareReferenceRelationship(DeclLoc, T1, cv3T3, &RefConv); in TryRefInitWithConversionFunction() 4843 SourceLocation DeclLoc = Initializer->getBeginLoc(); in TryReferenceInitializationCore() local 4852 S.CompareReferenceRelationship(DeclLoc, cv1T1, cv2T2, &RefConv); in TryReferenceInitializationCore() [all …]
|
| H A D | SemaType.cpp | 1276 SourceLocation DeclLoc = declarator.getIdentifierLoc(); in ConvertDeclSpecToType() local 1277 if (DeclLoc.isInvalid()) in ConvertDeclSpecToType() 1278 DeclLoc = DS.getBeginLoc(); in ConvertDeclSpecToType() 1355 S.Diag(DeclLoc, diag::warn_missing_type_specifier) in ConvertDeclSpecToType() 1364 S.Diag(DeclLoc, diag::err_missing_type_specifier) in ConvertDeclSpecToType() 1373 S.Diag(DeclLoc, diag::err_missing_actual_pipe_type) in ConvertDeclSpecToType() 1379 S.Diag(DeclLoc, diag::ext_missing_type_specifier) in ConvertDeclSpecToType() 1901 QualType Qualified = S.BuildQualifiedType(Result, DeclLoc, TypeQuals, &DS); in ConvertDeclSpecToType()
|
| H A D | SemaDeclObjC.cpp | 4135 SourceLocation DeclLoc(IDecl->getLocation()); in ActOnAtEnd() local 4136 SourceLocation SuperClassLoc(getLocForEndOfToken(DeclLoc)); in ActOnAtEnd() 4137 Diag(DeclLoc, diag::warn_objc_root_class_missing) in ActOnAtEnd() 4143 DeclLoc, LookupOrdinaryName); in ActOnAtEnd()
|
| H A D | SemaOverload.cpp | 4717 QualType DeclType, SourceLocation DeclLoc, in FindConversionForRefInit() argument 4724 DeclLoc, OverloadCandidateSet::CSK_InitByUserDefinedConversion); in FindConversionForRefInit() 4752 DeclLoc, in FindConversionForRefInit() 4785 switch (CandidateSet.BestViableFunction(S, DeclLoc, Best)) { in FindConversionForRefInit() 4834 SourceLocation DeclLoc, in TryReferenceInit() argument 4862 S.CompareReferenceRelationship(DeclLoc, T1, T2, &RefConv); in TryReferenceInit() 4932 S.isCompleteType(DeclLoc, T2) && in TryReferenceInit() 4934 if (FindConversionForRefInit(S, ICS, DeclType, DeclLoc, in TryReferenceInit() 4980 T2->isRecordType() && S.isCompleteType(DeclLoc, T2) && in TryReferenceInit() 4981 FindConversionForRefInit(S, ICS, DeclType, DeclLoc, in TryReferenceInit()
|
| H A D | SemaLookup.cpp | 5693 SourceLocation DeclLoc, in diagnoseMissingImport() argument 5702 Diag(DeclLoc, diag::note_unreachable_entity) << (int)MIK; in diagnoseMissingImport() 5718 PP.getHeaderToIncludeForDiagnostics(UseLoc, DeclLoc)) { in diagnoseMissingImport()
|
| H A D | SemaTemplate.cpp | 3208 SourceLocation DeclStartLoc, SourceLocation DeclLoc, const CXXScopeSpec &SS, in MatchTemplateParametersToScopeSpecifier() argument 3320 Diag(DeclLoc, diag::err_specialize_member_of_template) in MatchTemplateParametersToScopeSpecifier() 3343 Diag(DeclLoc, diag::err_template_spec_needs_header) in MatchTemplateParametersToScopeSpecifier() 3490 Diag(DeclLoc, diag::err_template_spec_needs_template_parameters) in MatchTemplateParametersToScopeSpecifier()
|
| H A D | SemaDecl.cpp | 18311 void Sema::ActOnLastBitfield(SourceLocation DeclLoc, in ActOnLastBitfield() argument 18333 Expr * BW = IntegerLiteral::Create(Context, Zero, Context.IntTy, DeclLoc); in ActOnLastBitfield() 18336 DeclLoc, DeclLoc, nullptr, in ActOnLastBitfield() 18339 DeclLoc), in ActOnLastBitfield()
|
| /openbsd-src/gnu/llvm/clang/lib/AST/ |
| H A D | ASTContext.cpp | 182 const SourceLocation DeclLoc = D->getLocation(); in getDeclLocForCommentSearch() local 183 if (DeclLoc.isMacroID()) { in getDeclLocForCommentSearch() 197 if (SourceMgr.isMacroArgExpansion(DeclLoc) && TD->isCompleteDefinition()) in getDeclLocForCommentSearch() 198 return SourceMgr.getExpansionLoc(DeclLoc); in getDeclLocForCommentSearch() 202 return DeclLoc; in getDeclLocForCommentSearch() 284 const SourceLocation DeclLoc = getDeclLocForCommentSearch(D, SourceMgr); in getRawCommentForDeclNoCache() local 288 if (DeclLoc.isInvalid() || !DeclLoc.isFileID()) in getRawCommentForDeclNoCache() 299 const FileID File = SourceMgr.getDecomposedLoc(DeclLoc).first; in getRawCommentForDeclNoCache() 307 return getRawCommentForDeclNoCacheImpl(D, DeclLoc, *CommentsInThisFile); in getRawCommentForDeclNoCache() 522 const SourceLocation DeclLoc = getDeclLocForCommentSearch(D, SourceMgr); in attachCommentsToJustParsedDecls() local [all …]
|
| H A D | ExprConstant.cpp | 15395 SourceLocation DeclLoc = VD->getLocation(); in EvaluateAsInitializer() local 15418 return CheckConstantExpression(Info, DeclLoc, DeclTy, Value, in EvaluateAsInitializer()
|
| /openbsd-src/gnu/llvm/clang/lib/Parse/ |
| H A D | ParseExprCXX.cpp | 217 SourceLocation DeclLoc = Tok.getLocation(); in ParseOptionalCXXScopeSpecifier() local 225 AnnotateExistingDecltypeSpecifier(DS, DeclLoc, EndLoc); in ParseOptionalCXXScopeSpecifier() 230 SS.SetInvalid(SourceRange(DeclLoc, CCLoc)); in ParseOptionalCXXScopeSpecifier()
|
| /openbsd-src/gnu/llvm/clang/lib/Serialization/ |
| H A D | ASTReaderDecl.cpp | 3625 SourceLocation DeclLoc; in ReadDeclRecord() local 3626 RecordLocation Loc = DeclCursorForID(ID, DeclLoc); in ReadDeclRecord() 3645 ASTDeclReader Reader(*this, Record, Loc, ID, DeclLoc); in ReadDeclRecord()
|
| /openbsd-src/gnu/llvm/clang/include/clang/Sema/ |
| H A D | Sema.h | 3237 SourceLocation DeclLoc, ArrayRef<Module *> Modules, 8146 SourceLocation DeclStartLoc, SourceLocation DeclLoc,
|