Home
last modified time | relevance | path

Searched refs:getLocation (Results 1 – 25 of 177) sorted by relevance

12345678

/external/clang/lib/Parse/
DParsePragma.cpp38 SourceLocation VisLoc = VisTok.getLocation(); in HandlePragma()
54 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_lparen) in HandlePragma()
61 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_identifier) in HandlePragma()
67 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_rparen) in HandlePragma()
72 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_identifier) in HandlePragma()
78 PP.Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol) in HandlePragma()
93 SourceLocation PackLoc = PackTok.getLocation(); in HandlePragma()
98 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_lparen) << "pack"; in HandlePragma()
105 SourceLocation LParenLoc = Tok.getLocation(); in HandlePragma()
124 PP.Diag(Tok.getLocation(), diag::warn_pragma_pack_invalid_action); in HandlePragma()
[all …]
DParseCXXInlineMethods.cpp135 Diag(Tok.getLocation(), diag::err_expected_lbrace); in ParseCXXInlineMethodDef()
207 Eof.setLocation(Tok.getLocation()); in ParseCXXNonStaticMemberInitializer()
292 SourceLocation origLoc = Tok.getLocation(); in ParseLexedMethodDeclaration()
317 Diag(Tok.getLocation(), diag::err_default_arg_unparsed); in ParseLexedMethodDeclaration()
323 Tok.getLocation()) && in ParseLexedMethodDeclaration()
327 while (Tok.getLocation() != origLoc && Tok.isNot(tok::eof)) in ParseLexedMethodDeclaration()
365 SourceLocation origLoc = Tok.getLocation(); in ParseLexedMethodDef()
386 Tok.getLocation()) && in ParseLexedMethodDef()
390 while (Tok.getLocation() != origLoc && Tok.isNot(tok::eof)) in ParseLexedMethodDef()
408 if (Tok.getLocation() != origLoc) { in ParseLexedMethodDef()
[all …]
DParseExprCXX.cpp39 SourceLocation FirstLoc = SM.getSpellingLoc(First.getLocation()); in AreTokensAdjacent()
41 return FirstEnd == SM.getSpellingLoc(Second.getLocation()); in AreTokensAdjacent()
53 Range.setBegin(DigraphToken.getLocation()); in FixDigraph()
54 Range.setEnd(ColonToken.getLocation()); in FixDigraph()
55 P.Diag(DigraphToken.getLocation(), diag::err_missing_whitespace_digraph) in FixDigraph()
61 ColonToken.setLocation(ColonToken.getLocation().getFileLocWithOffset(-1)); in FixDigraph()
191 TemplateName.setIdentifier(Tok.getIdentifierInfo(), Tok.getLocation()); in ParseOptionalCXXScopeSpecifier()
304 Tok.getLocation(), in ParseOptionalCXXScopeSpecifier()
305 Next.getLocation(), ObjectType, in ParseOptionalCXXScopeSpecifier()
312 << FixItHint::CreateReplacement(Next.getLocation(), "::"); in ParseOptionalCXXScopeSpecifier()
[all …]
DParseTemplate.cpp126 Diag(Tok.getLocation(), diag::err_expected_template); in ParseTemplateDeclarationOrSpecialization()
297 Diag(Tok.getLocation(), diag::err_expected_less_after) << "template"; in ParseTemplateParameters()
307 Diag(Tok.getLocation(), diag::err_expected_greater); in ParseTemplateParameters()
348 Diag(Tok.getLocation(), diag::err_expected_comma_greater); in ParseTemplateParameterList()
486 Diag(Tok.getLocation(), diag::err_expected_ident); in ParseTypeParameter()
532 Diag(Tok.getLocation(), diag::err_expected_class_before) in ParseTemplateTemplateParameter()
557 Diag(Tok.getLocation(), diag::err_expected_ident); in ParseTemplateTemplateParameter()
577 Diag(Tok.getLocation(), in ParseTemplateTemplateParameter()
614 Diag(Tok.getLocation(), diag::err_parse_error); in ParseNonTypeTemplateParameter()
692 Diag(Tok.getLocation(), diag::err_expected_greater); in ParseTemplateIdAfterTemplateName()
[all …]
DParseInit.cpp115 Diag(Tok.getLocation(), diag::err_expected_field_designator); in ParseInitializerWithPotentialDesignator()
120 Tok.getLocation())); in ParseInitializerWithPotentialDesignator()
186 SourceLocation IILoc = Tok.getLocation(); in ParseInitializerWithPotentialDesignator()
244 CheckArrayDesignatorSyntax(*this, Tok.getLocation(), Desig); in ParseInitializerWithPotentialDesignator()
294 << FixItHint::CreateInsertion(Tok.getLocation(), "= "); in ParseInitializerWithPotentialDesignator()
295 return Actions.ActOnDesignatedInitializer(Desig, Tok.getLocation(), in ParseInitializerWithPotentialDesignator()
DParseDeclCXX.cpp146 << FixItHint::CreateInsertion(rBraceToken.getLocation(), RBraces); in ParseNamespace()
246 DeclEnd = Tok.getLocation(); in ParseNamespaceAlias()
276 Tok.is(tok::l_brace) ? Tok.getLocation() in ParseLinkage()
402 DeclEnd = Tok.getLocation(); in ParseUsingDirective()
436 TypenameLoc = Tok.getLocation(); in ParseUsingDeclaration()
477 Diag(Tok.getLocation(), diag::ext_alias_declaration); in ParseUsingDeclaration()
523 DeclEnd = Tok.getLocation(); in ParseUsingDeclaration()
602 DeclEnd = Tok.getLocation(); in ParseStaticAssertDeclaration()
619 SourceLocation LParenLoc = Tok.getLocation(); in ParseDecltypeSpecifier()
662 SourceLocation LParenLoc = Tok.getLocation(); in ParseUnderlyingTypeSpecifier()
[all …]
/external/clang/lib/Sema/
DSemaDecl.cpp168 (*Res)->getLocation().getRawEncoding() < in getTypeName()
169 IIDecl->getLocation().getRawEncoding()) in getTypeName()
323 Diag(Result->getLocation(), diag::note_previous_decl) in DiagnoseUnknownTypeName()
347 Diag(TplDecl->getLocation(), diag::note_template_decl_here) in DiagnoseUnknownTypeName()
406 BuildCXXNestedNameSpecifier(S, *Name, NameLoc, NextToken.getLocation(), in ClassifyName()
430 Diag(Property->getLocation(), diag::note_property_declare); in ClassifyName()
565 Diag(FirstDecl->getLocation(), diag::note_previous_decl) in ClassifyName()
1103 Diag(D->getLocation(), DiagID) << D->getDeclName(); in DiagnoseUnusedDecl()
1111 S.Diag(L->getLocation(), diag::err_undeclared_label_use) <<L->getDeclName(); in CheckPoppedLabel()
1172 Diag(IDecl->getLocation(), diag::note_previous_decl) in getObjCInterfaceDecl()
[all …]
DSemaDeclObjC.cpp93 SourceLocation loc = method->getLocation(); in checkInitMethod()
139 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride()
145 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride()
151 Diag(Overridden->getLocation(), diag::note_related_result_type_overridden) in CheckObjCMethodOverride()
308 S.Diag(ND->getLocation(), diag::note_method_declared_at); in DiagnoseObjCImplementedDeprecations()
310 S.Diag(ND->getLocation(), diag::note_previous_decl) << "class"; in DiagnoseObjCImplementedDeprecations()
348 RequireCompleteType(Param->getLocation(), Param->getType(), in ActOnStartOfObjCMethodDef()
362 Diag(MDecl->getLocation(), diag::err_arc_illegal_method_def) in ActOnStartOfObjCMethodDef()
386 MDecl->getLocation(), 0); in ActOnStartOfObjCMethodDef()
404 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnStartClassInterface()
[all …]
DSemaObjCProperty.cpp65 S.Diag(property->getLocation(), in checkARCPropertyDecl()
164 Diag(prevDecl->getLocation(), diag::note_property_declare); in HandlePropertyInClassExtension()
188 Diag(CDecl->getLocation(), diag::err_continuation_class); in HandlePropertyInClassExtension()
225 Diag(PIDecl->getLocation(), diag::note_property_declare); in HandlePropertyInClassExtension()
268 Diag(PIDecl->getLocation(), diag::note_property_declare); in HandlePropertyInClassExtension()
314 Diag(PDecl->getLocation(), diag::err_duplicate_property); in CreatePropertyDecl()
315 Diag(prevDecl->getLocation(), diag::note_property_declare); in CreatePropertyDecl()
498 S.Diag(property->getLocation(), diag::note_property_declare); in checkARCPropertyImpl()
546 Diag(IC->getLocation(), diag::warn_auto_implicit_atomic_property); in ActOnPropertyImplDecl()
547 Diag(property->getLocation(), diag::note_property_declare); in ActOnPropertyImplDecl()
[all …]
DSemaTemplateInstantiateDecl.cpp77 AddAlignedAttr(Aligned->getLocation(), New, Result.takeAs<Expr>()); in InstantiateAttrs()
82 Aligned->getLocation(), in InstantiateAttrs()
85 AddAlignedAttr(Aligned->getLocation(), New, Result); in InstantiateAttrs()
105 LabelDecl *Inst = LabelDecl::Create(SemaRef.Context, Owner, D->getLocation(), in VisitLabelDecl()
138 D->getLocation(), D->getDeclName()); in InstantiateTypedefNameDecl()
144 SemaRef.MarkDeclarationsReferencedInType(D->getLocation(), DI->getType()); in InstantiateTypedefNameDecl()
151 D->getLocation(), D->getIdentifier(), DI); in InstantiateTypedefNameDecl()
154 D->getLocation(), D->getIdentifier(), DI); in InstantiateTypedefNameDecl()
170 NamedDecl *InstPrev = SemaRef.FindInstantiatedDecl(D->getLocation(), Prev, in InstantiateTypedefNameDecl()
224 = TypeAliasTemplateDecl::Create(SemaRef.Context, Owner, D->getLocation(), in VisitTypeAliasTemplateDecl()
[all …]
DSemaDeclCXX.cpp213 if (RequireCompleteType(Param->getLocation(), Param->getType(), in SetParamDefaultArgument()
227 InitializationKind Kind = InitializationKind::CreateCopy(Param->getLocation(), in SetParamDefaultArgument()
344 Diag(Param->getLocation(), diag::err_param_default_argument_nonfunc) in CheckExtraCXXDefaultArguments()
345 << SourceRange((*Toks)[1].getLocation(), Toks->back().getLocation()); in CheckExtraCXXDefaultArguments()
349 Diag(Param->getLocation(), diag::err_param_default_argument_nonfunc) in CheckExtraCXXDefaultArguments()
418 Diag(NewParam->getLocation(), DiagDefaultParamID) in MergeCXXFunctionDecl()
431 Diag(OldParam->getLocation(), diag::note_previous_definition) in MergeCXXFunctionDecl()
446 Diag(NewParam->getLocation(), in MergeCXXFunctionDecl()
449 Diag(Old->getLocation(), diag::note_template_prev_declaration) in MergeCXXFunctionDecl()
463 Diag(NewParam->getLocation(), diag::err_template_spec_default_arg) in MergeCXXFunctionDecl()
[all …]
DSemaTemplate.cpp318 Diag(Template->getLocation(), diag::note_previous_decl) in LookupTemplateName()
362 Diag(Found.getRepresentativeDecl()->getLocation(), in LookupTemplateName()
365 Diag(FoundOuter.getFoundDecl()->getLocation(), in LookupTemplateName()
433 Diag(PrevDecl->getLocation(), diag::note_template_param_here); in DiagnoseTemplateParameterShadow()
467 DI = SemaRef.Context.getTrivialTypeSourceInfo(T, Arg.getLocation()); in translateTemplateArgument()
486 Arg.getLocation(), in translateTemplateArgument()
743 Diag(Param->getLocation(), diag::err_template_template_parm_no_parms) in ActOnTemplateTemplateParameter()
767 Diag(DefaultArg.getLocation(), diag::err_template_arg_not_class_template) in ActOnTemplateTemplateParameter()
773 if (DiagnoseUnexpandedParameterPack(DefaultArg.getLocation(), in ActOnTemplateTemplateParameter()
933 Diag(PrevRecordDecl->getLocation(), diag::note_previous_use); in CheckClassTemplate()
[all …]
DSemaExceptionSpec.cpp110 Old->getLocation(), in CheckEquivalentExceptionSpec()
112 New->getLocation(), in CheckEquivalentExceptionSpec()
136 (Old->getLocation().isInvalid() || in CheckEquivalentExceptionSpec()
137 Context.getSourceManager().isInSystemHeader(Old->getLocation())) && in CheckEquivalentExceptionSpec()
238 Diag(New->getLocation(), diag::warn_missing_exception_specification) in CheckEquivalentExceptionSpec()
243 Diag(New->getLocation(), diag::warn_missing_exception_specification) in CheckEquivalentExceptionSpec()
248 if (!Old->getLocation().isInvalid()) in CheckEquivalentExceptionSpec()
249 Diag(Old->getLocation(), diag::note_previous_declaration); in CheckEquivalentExceptionSpec()
254 Diag(New->getLocation(), DiagID); in CheckEquivalentExceptionSpec()
255 Diag(Old->getLocation(), diag::note_previous_declaration); in CheckEquivalentExceptionSpec()
[all …]
/external/clang/lib/Lex/
DPragma.cpp123 SourceLocation PragmaLoc = Tok.getLocation(); in Handle_Pragma()
149 SourceLocation RParenLoc = Tok.getLocation(); in Handle_Pragma()
183 SourceLocation TokLoc = TmpTok.getLocation(); in Handle_Pragma()
203 SourceLocation PragmaLoc = Tok.getLocation(); in HandleMicrosoft__pragma()
325 PresumedLoc PLoc = SourceMgr.getPresumedLoc(SysHeaderTok.getLocation()); in HandlePragmaSystemHeader()
333 Callbacks->FileChanged(SysHeaderTok.getLocation(), in HandlePragmaSystemHeader()
339 SourceMgr.AddLineNote(SysHeaderTok.getLocation(), PLoc.getLine(), FilenameID, in HandlePragmaSystemHeader()
361 GetIncludeFilenameSpelling(FilenameTok.getLocation(), Filename); in HandlePragmaDependency()
401 SourceLocation CommentLoc = Tok.getLocation(); in HandlePragmaComment()
420 Diag(Tok.getLocation(), diag::err_pragma_comment_unknown_kind); in HandlePragmaComment()
[all …]
DPPExpressions.cpp83 Result.setBegin(PeekTok.getLocation()); in EvaluateDefined()
92 LParenLoc = PeekTok.getLocation(); in EvaluateDefined()
119 Result.setEnd(PeekTok.getLocation()); in EvaluateDefined()
125 PP.Diag(PeekTok.getLocation(), diag::err_pp_missing_rparen) << "defined"; in EvaluateDefined()
130 Result.setEnd(PeekTok.getLocation()); in EvaluateDefined()
174 Result.setRange(PeekTok.getLocation()); in EvaluateValue()
197 PeekTok.getLocation(), PP); in EvaluateValue()
235 Result.setRange(PeekTok.getLocation()); in EvaluateValue()
247 PeekTok.getLocation(), PP); in EvaluateValue()
277 Result.setRange(PeekTok.getLocation()); in EvaluateValue()
[all …]
DTokenLexer.cpp35 ExpandLocStart = Tok.getLocation(); in Init()
49 assert(Tokens[0].getLocation().isValid()); in Init()
50 assert((Tokens[0].getLocation().isFileID() || Tokens[0].is(tok::comment)) && in Init()
58 SourceLocation macroStart = SM.getInstantiationLoc(Tokens[0].getLocation()); in Init()
149 hashInstLoc = getMacroExpansionLocation(CurTok.getLocation()); in ExpandFunctionArguments()
229 getMacroExpansionLocation(CurTok.getLocation()); in ExpandFunctionArguments()
234 Tok.setLocation(SM.createMacroArgInstantiationLoc(Tok.getLocation(), in ExpandFunctionArguments()
269 PP.Diag(ResultToks.back().getLocation(), diag::ext_paste_comma); in ExpandFunctionArguments()
286 getMacroExpansionLocation(CurTok.getLocation()); in ExpandFunctionArguments()
292 Tok.setLocation(SM.createMacroArgInstantiationLoc(Tok.getLocation(), in ExpandFunctionArguments()
[all …]
DPPMacroExpansion.cpp200 SourceLocation ExpansionEnd = Identifier.getLocation(); in HandleMacroExpandedIdentifier()
234 SourceLocation ExpandLoc = Identifier.getLocation(); in HandleMacroExpandedIdentifier()
287 SourceMgr.createInstantiationLoc(Identifier.getLocation(), ExpandLoc, in HandleMacroExpandedIdentifier()
344 SourceLocation ArgStartLoc = Tok.getLocation(); in ReadFunctionLikeMacroArgs()
370 MacroEnd = Tok.getLocation(); in ReadFunctionLikeMacroArgs()
409 ArgStartLoc = ArgTokens[ArgTokenStart].getLocation(); in ReadFunctionLikeMacroArgs()
426 EOFTok.setLocation(Tok.getLocation()); in ReadFunctionLikeMacroArgs()
472 SourceLocation EndLoc = Tok.getLocation(); in ReadFunctionLikeMacroArgs()
558 DATELoc = TmpTok.getLocation(); in ComputeDATE_TIME()
566 TIMELoc = TmpTok.getLocation(); in ComputeDATE_TIME()
[all …]
DPPDirectives.cpp177 Hint = FixItHint::CreateInsertion(Tmp.getLocation(),"//"); in CheckEndOfDirective()
225 if (!isCodeCompletionFile(Tok.getLocation())) in SkipExcludedConditionalBlock()
302 CurPPLexer->pushConditionalLevel(Tok.getLocation(), /*wasskipping*/true, in SkipExcludedConditionalBlock()
613 return HandleIncludeDirective(SavedHash.getLocation(), Result); in HandleDirective()
616 return HandleIncludeMacrosDirective(SavedHash.getLocation(), Result); in HandleDirective()
638 return HandleImportDirective(SavedHash.getLocation(), Result); in HandleDirective()
640 return HandleIncludeNextDirective(SavedHash.getLocation(), Result); in HandleDirective()
716 PP.Diag(PP.AdvanceToTokenCharacter(DigitTok.getLocation(), i), in GetLineValue()
739 PP.Diag(DigitTok.getLocation(), diag::warn_pp_line_decimal); in GetLineValue()
794 SourceMgr.AddLineNote(DigitTok.getLocation(), LineNo, FilenameID); in HandleLineDirective()
[all …]
DTokenConcatenation.cpp24 return *SM.getCharacterData(SM.getSpellingLoc(Tok.getLocation())) == 'L'; in StartsWithL()
44 return *SM.getCharacterData(SM.getSpellingLoc(Tok.getLocation())) == 'L'; in IsIdentifierL()
105 return *SM.getCharacterData(SM.getSpellingLoc(Tok.getLocation())); in GetFirstChar()
134 if (PrevTok.getLocation().isFileID() && Tok.getLocation().isFileID() && in AvoidConcat()
135 PrevTok.getLocation().getFileLocWithOffset(PrevTok.getLength()) == in AvoidConcat()
136 Tok.getLocation()) in AvoidConcat()
/external/clang/tools/libclang/
DCIndexDiagnostic.cpp198 if (!StoredDiag || StoredDiag->Diag.getLocation().isInvalid()) in clang_getDiagnosticLocation()
201 return translateSourceLocation(StoredDiag->Diag.getLocation().getManager(), in clang_getDiagnosticLocation()
203 StoredDiag->Diag.getLocation()); in clang_getDiagnosticLocation()
258 if (!StoredDiag || StoredDiag->Diag.getLocation().isInvalid()) in clang_getDiagnosticNumRanges()
267 StoredDiag->Diag.getLocation().isInvalid()) in clang_getDiagnosticRange()
270 return translateSourceRange(StoredDiag->Diag.getLocation().getManager(), in clang_getDiagnosticRange()
288 StoredDiag->Diag.getLocation().isInvalid()) { in clang_getDiagnosticFixIt()
301 = translateSourceRange(StoredDiag->Diag.getLocation().getManager(), in clang_getDiagnosticFixIt()
/external/clang/lib/Rewrite/
DRewriteMacros.cpp115 SourceLocation PPLoc = SM.getInstantiationLoc(PPTok.getLocation()); in RewriteMacrosInInput()
134 RB.InsertTextAfter(SM.getFileOffset(RawTok.getLocation()), "//"); in RewriteMacrosInInput()
140 RB.InsertTextAfter(SM.getFileOffset(RawTok.getLocation()), "//"); in RewriteMacrosInInput()
155 unsigned RawOffs = SM.getFileOffset(RawTok.getLocation()); in RewriteMacrosInInput()
177 RawOffs = SM.getFileOffset(RawTok.getLocation()); in RewriteMacrosInInput()
200 PPLoc = SM.getInstantiationLoc(PPTok.getLocation()); in RewriteMacrosInInput()
DFixItRewriter.cpp107 Diag(Info.getLocation(), diag::note_fixit_in_macro); in HandleDiagnostic()
112 Diag(Info.getLocation(), diag::note_fixit_unfixed_error); in HandleDiagnostic()
138 Diag(Info.getLocation(), diag::note_fixit_failed); in HandleDiagnostic()
142 Diag(Info.getLocation(), diag::note_fixit_applied); in HandleDiagnostic()
/external/clang/lib/ARCMigrate/
DTransProperties.cpp155 Pass.TA.insert(I->IvarD->getLocation(), in rewriteAssign()
159 I->ImplD->getLocation()); in rewriteAssign()
178 Pass.TA.insert(I->IvarD->getLocation(), in maybeAddWeakOrUnsafeUnretainedAttr()
182 I->ImplD->getLocation()); in maybeAddWeakOrUnsafeUnretainedAttr()
185 I->ImplD->getLocation()); in maybeAddWeakOrUnsafeUnretainedAttr()
231 Pass.TA.replaceText(tok.getLocation(), fromAttr, toAttr); in rewriteAttribute()
278 Pass.TA.insert(tok.getLocation(), std::string("(") + attr.str() + ") "); in addAttribute()
284 Pass.TA.insert(tok.getLocation(), attr); in addAttribute()
290 Pass.TA.insert(tok.getLocation(), std::string(attr) + ", "); in addAttribute()
/external/clang/lib/AST/
DASTImporter.cpp818 Context.Diag2(D2->getLocation(), diag::warn_odr_tag_type_inconsistent) in IsStructurallyEquivalent()
820 Context.Diag1(D1->getLocation(), diag::note_odr_tag_kind_here) in IsStructurallyEquivalent()
862 Context.Diag2(D2->getLocation(), diag::warn_odr_tag_type_inconsistent) in IsStructurallyEquivalent()
864 Context.Diag2(D2->getLocation(), diag::note_odr_number_of_bases) in IsStructurallyEquivalent()
866 Context.Diag1(D1->getLocation(), diag::note_odr_number_of_bases) in IsStructurallyEquivalent()
879 Context.Diag2(D2->getLocation(), diag::warn_odr_tag_type_inconsistent) in IsStructurallyEquivalent()
892 Context.Diag2(D2->getLocation(), diag::warn_odr_tag_type_inconsistent) in IsStructurallyEquivalent()
904 Context.Diag2(D2->getLocation(), diag::warn_odr_tag_type_inconsistent) in IsStructurallyEquivalent()
910 Context.Diag2(D2->getLocation(), diag::note_odr_missing_base); in IsStructurallyEquivalent()
923 Context.Diag2(D2->getLocation(), diag::warn_odr_tag_type_inconsistent) in IsStructurallyEquivalent()
[all …]
/external/clang/lib/Frontend/
DTextDiagnosticBuffer.cpp31 Notes.push_back(std::make_pair(Info.getLocation(), Buf.str())); in HandleDiagnostic()
34 Warnings.push_back(std::make_pair(Info.getLocation(), Buf.str())); in HandleDiagnostic()
38 Errors.push_back(std::make_pair(Info.getLocation(), Buf.str())); in HandleDiagnostic()

12345678