/external/clang/lib/Rewrite/Frontend/ |
D | RewriteObjC.cpp | 2208 SourceLocation DeclLoc = ND->getTypeSpecStartLoc(); in RewriteTypeOfDecl() local 2209 const char *startBuf = SM->getCharacterData(DeclLoc); in RewriteTypeOfDecl() 2221 ReplaceText(DeclLoc, endBuf-startBuf-1, TypeAsString); in RewriteTypeOfDecl() 2227 ReplaceText(DeclLoc, endBuf-startBuf-1, TypeAsString); in RewriteTypeOfDecl() 3971 SourceLocation DeclLoc = FD->getLocation(); in RewriteBlockPointerFunctionArgs() local 3975 const char *startBuf = SM->getCharacterData(DeclLoc); in RewriteBlockPointerFunctionArgs() 3982 DeclLoc = DeclLoc.getLocWithOffset(startArgList-startBuf); in RewriteBlockPointerFunctionArgs() 3983 assert((DeclLoc.isValid()) && "Invalid DeclLoc"); in RewriteBlockPointerFunctionArgs() 3991 DeclLoc = DeclLoc.getLocWithOffset(argPtr-startArgList); in RewriteBlockPointerFunctionArgs() 3992 ReplaceText(DeclLoc, 1, "*"); in RewriteBlockPointerFunctionArgs() [all …]
|
D | RewriteModernObjC.cpp | 2323 SourceLocation DeclLoc = ND->getTypeSpecStartLoc(); in RewriteTypeOfDecl() local 2324 const char *startBuf = SM->getCharacterData(DeclLoc); in RewriteTypeOfDecl() 2336 ReplaceText(DeclLoc, endBuf-startBuf-1, TypeAsString); in RewriteTypeOfDecl() 2342 ReplaceText(DeclLoc, endBuf-startBuf-1, TypeAsString); in RewriteTypeOfDecl() 4904 SourceLocation DeclLoc = FD->getLocation(); in RewriteBlockPointerFunctionArgs() local 4908 const char *startBuf = SM->getCharacterData(DeclLoc); in RewriteBlockPointerFunctionArgs() 4915 DeclLoc = DeclLoc.getLocWithOffset(startArgList-startBuf); in RewriteBlockPointerFunctionArgs() 4916 assert((DeclLoc.isValid()) && "Invalid DeclLoc"); in RewriteBlockPointerFunctionArgs() 4924 DeclLoc = DeclLoc.getLocWithOffset(argPtr-startArgList); in RewriteBlockPointerFunctionArgs() 4925 ReplaceText(DeclLoc, 1, "*"); in RewriteBlockPointerFunctionArgs() [all …]
|
/external/clang/lib/Parse/ |
D | ParseExprCXX.cpp | 237 SourceLocation DeclLoc = Tok.getLocation(); in ParseOptionalCXXScopeSpecifier() local 242 AnnotateExistingDecltypeSpecifier(DS, DeclLoc, EndLoc); in ParseOptionalCXXScopeSpecifier() 247 SS.SetInvalid(SourceRange(DeclLoc, CCLoc)); in ParseOptionalCXXScopeSpecifier() 1116 SourceLocation DeclLoc = Tok.getLocation(); in ParseLambdaExpressionAfterIntroducer() local 1117 SourceLocation DeclEndLoc = DeclLoc; in ParseLambdaExpressionAfterIntroducer() 1163 DeclLoc, DeclEndLoc, D, in ParseLambdaExpressionAfterIntroducer()
|
/external/clang/lib/Sema/ |
D | SemaInit.cpp | 3128 ResolveConstructorOverload(Sema &S, SourceLocation DeclLoc, in ResolveConstructorOverload() argument 3196 return CandidateSet.BestViableFunction(S, DeclLoc, Best); in ResolveConstructorOverload() 3397 SourceLocation DeclLoc = Initializer->getLocStart(); in TryReferenceListInitialization() local 3400 = S.CompareReferenceRelationship(DeclLoc, cv1T1, cv2T2, dummy1, in TryReferenceListInitialization() 3651 SourceLocation DeclLoc = Initializer->getLocStart(); in TryRefInitWithConversionFunction() local 3656 = CandidateSet.BestViableFunction(S, DeclLoc, Best, true)) in TryRefInitWithConversionFunction() 3688 = S.CompareReferenceRelationship(DeclLoc, T1, in TryRefInitWithConversionFunction() 3811 SourceLocation DeclLoc = Initializer->getLocStart(); in TryReferenceInitializationCore() local 3820 = S.CompareReferenceRelationship(DeclLoc, cv1T1, cv2T2, DerivedToBase, in TryReferenceInitializationCore() 4231 SourceLocation DeclLoc = Initializer->getLocStart(); in TryUserDefinedConversion() local [all …]
|
D | SemaType.cpp | 703 SourceLocation DeclLoc = declarator.getIdentifierLoc(); in ConvertDeclSpecToType() local 704 if (DeclLoc.isInvalid()) in ConvertDeclSpecToType() 705 DeclLoc = DS.getLocStart(); in ConvertDeclSpecToType() 788 S.Diag(DeclLoc, diag::ext_missing_declspec) in ConvertDeclSpecToType() 798 S.Diag(DeclLoc, diag::err_missing_type_specifier) in ConvertDeclSpecToType() 806 S.Diag(DeclLoc, diag::ext_missing_type_specifier) in ConvertDeclSpecToType() 943 S.Diag(DeclLoc, diag::err_invalid_protocol_qualifiers) in ConvertDeclSpecToType() 1168 QualType Qualified = S.BuildQualifiedType(Result, DeclLoc, TypeQuals, &DS); in ConvertDeclSpecToType()
|
D | SemaDeclObjC.cpp | 2680 SourceLocation DeclLoc(IDecl->getLocation()); in ActOnAtEnd() local 2681 SourceLocation SuperClassLoc(getLocForEndOfToken(DeclLoc)); in ActOnAtEnd() 2682 Diag(DeclLoc, diag::warn_objc_root_class_missing) in ActOnAtEnd() 2688 DeclLoc, LookupOrdinaryName); in ActOnAtEnd()
|
D | SemaOverload.cpp | 4071 QualType DeclType, SourceLocation DeclLoc, in FindConversionForRefInit() argument 4078 OverloadCandidateSet CandidateSet(DeclLoc, OverloadCandidateSet::CSK_Normal); in FindConversionForRefInit() 4118 DeclLoc, in FindConversionForRefInit() 4151 switch (CandidateSet.BestViableFunction(S, DeclLoc, Best, true)) { in FindConversionForRefInit() 4200 SourceLocation DeclLoc, in TryReferenceInit() argument 4229 = S.CompareReferenceRelationship(DeclLoc, T1, T2, DerivedToBase, in TryReferenceInit() 4287 !S.RequireCompleteType(DeclLoc, T2, 0) && in TryReferenceInit() 4289 if (FindConversionForRefInit(S, ICS, DeclType, DeclLoc, in TryReferenceInit() 4360 T2->isRecordType() && !S.RequireCompleteType(DeclLoc, T2, 0) && in TryReferenceInit() 4361 FindConversionForRefInit(S, ICS, DeclType, DeclLoc, in TryReferenceInit()
|
D | SemaTemplate.cpp | 1612 SourceLocation DeclStartLoc, SourceLocation DeclLoc, const CXXScopeSpec &SS, in MatchTemplateParametersToScopeSpecifier() argument 1723 Diag(DeclLoc, diag::err_specialize_member_of_template) in MatchTemplateParametersToScopeSpecifier() 1745 Diag(DeclLoc, diag::err_template_spec_needs_header) in MatchTemplateParametersToScopeSpecifier() 1890 Diag(DeclLoc, diag::err_template_spec_needs_template_parameters) in MatchTemplateParametersToScopeSpecifier()
|
D | SemaDecl.cpp | 12188 void Sema::ActOnLastBitfield(SourceLocation DeclLoc, in ActOnLastBitfield() argument 12210 Expr * BW = IntegerLiteral::Create(Context, Zero, Context.IntTy, DeclLoc); in ActOnLastBitfield() 12213 DeclLoc, DeclLoc, nullptr, in ActOnLastBitfield() 12216 DeclLoc), in ActOnLastBitfield()
|
/external/clang/lib/AST/ |
D | ASTContext.cpp | 140 SourceLocation DeclLoc; in getRawCommentForDeclNoCache() local 145 DeclLoc = D->getLocStart(); in getRawCommentForDeclNoCache() 147 DeclLoc = D->getLocation(); in getRawCommentForDeclNoCache() 148 if (DeclLoc.isMacroID()) { in getRawCommentForDeclNoCache() 153 DeclLoc = D->getLocStart(); in getRawCommentForDeclNoCache() 160 if (SourceMgr.isMacroArgExpansion(DeclLoc) && in getRawCommentForDeclNoCache() 162 DeclLoc = SourceMgr.getExpansionLoc(DeclLoc); in getRawCommentForDeclNoCache() 169 if (DeclLoc.isInvalid() || !DeclLoc.isFileID()) in getRawCommentForDeclNoCache() 179 SourceMgr, SourceRange(DeclLoc), false, in getRawCommentForDeclNoCache() 202 std::pair<FileID, unsigned> DeclLocDecomp = SourceMgr.getDecomposedLoc(DeclLoc); in getRawCommentForDeclNoCache()
|
/external/clang/include/clang/Sema/ |
D | Sema.h | 5245 SourceLocation DeclStartLoc, SourceLocation DeclLoc,
|