Home
last modified time | relevance | path

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

12345678910>>...14

/external/clang/unittests/Lex/
DPPConditionalDirectiveRecordTest.cpp122 SourceRange(toks[0].getLocation(), toks[1].getLocation()))); in TEST_F()
124 SourceRange(toks[0].getLocation(), toks[2].getLocation()))); in TEST_F()
126 SourceRange(toks[3].getLocation(), toks[4].getLocation()))); in TEST_F()
128 SourceRange(toks[1].getLocation(), toks[5].getLocation()))); in TEST_F()
130 SourceRange(toks[2].getLocation(), toks[6].getLocation()))); in TEST_F()
132 SourceRange(toks[2].getLocation(), toks[5].getLocation()))); in TEST_F()
134 SourceRange(toks[0].getLocation(), toks[6].getLocation()))); in TEST_F()
136 SourceRange(toks[2].getLocation(), toks[8].getLocation()))); in TEST_F()
138 SourceRange(toks[0].getLocation(), toks[9].getLocation()))); in TEST_F()
141 toks[0].getLocation(), toks[2].getLocation())); in TEST_F()
[all …]
DLexerTest.cpp98 Begin.getLocation(), End.getLocation())), in getSourceText()
288 SourceLocation lsqrLoc = toks[0].getLocation(); in TEST_F()
289 SourceLocation idLoc = toks[1].getLocation(); in TEST_F()
290 SourceLocation rsqrLoc = toks[2].getLocation(); in TEST_F()
321 SourceLocation macroLsqrLoc = toks[3].getLocation(); in TEST_F()
322 SourceLocation macroIdLoc = toks[4].getLocation(); in TEST_F()
323 SourceLocation macroRsqrLoc = toks[5].getLocation(); in TEST_F()
352 SourceLocation idLoc1 = toks[6].getLocation(); in TEST_F()
353 SourceLocation idLoc2 = toks[7].getLocation(); in TEST_F()
354 SourceLocation idLoc3 = toks[8].getLocation(); in TEST_F()
[all …]
/external/clang/lib/Parse/
DParsePragma.cpp374 Tok.getLocation()); in HandlePragmaWeak()
382 SourceLocation WeakNameLoc = Tok.getLocation(); in HandlePragmaWeakAlias()
385 SourceLocation AliasNameLoc = Tok.getLocation(); in HandlePragmaWeakAlias()
396 SourceLocation RedefNameLoc = Tok.getLocation(); in HandlePragmaRedefineExtname()
399 SourceLocation AliasNameLoc = Tok.getLocation(); in HandlePragmaRedefineExtname()
424 SourceLocation Loc = Tok.getLocation(); in HandlePragmaCaptured()
451 SourceLocation NameLoc = Tok.getLocation(); in HandlePragmaOpenCLExtension()
710 Toks[0].setLocation(Tok.getLocation()); in HandlePragmaMSInitSeg()
773 Actions.Context, Info->PragmaName.getLocation(), PragmaNameInfo); in HandlePragmaLoopHint()
781 Actions.Context, Info->Option.getLocation(), OptionInfo); in HandlePragmaLoopHint()
[all …]
DParseTemplate.cpp109 Diag(Tok.getLocation(), diag::err_expected_template); in ParseTemplateDeclarationOrSpecialization()
171 Diag(Tok.getLocation(), diag::err_templated_invalid_declaration) in ParseSingleDeclarationAfterTemplate()
319 Diag(Tok.getLocation(), diag::err_expected_less_after) << "template"; in ParseTemplateParameters()
335 RAngleLoc = Tok.getLocation(); in ParseTemplateParameters()
336 Tok.setLocation(Tok.getLocation().getLocWithOffset(1)); in ParseTemplateParameters()
338 Diag(Tok.getLocation(), diag::err_expected) << tok::greater; in ParseTemplateParameters()
376 Diag(Tok.getLocation(), diag::err_expected_comma_greater); in ParseTemplateParameterList()
513 Diag(Tok.getLocation(), diag::err_expected) << tok::identifier; in ParseTypeParameter()
572 Diag(Tok.getLocation(), in ParseTemplateTemplateParameter()
577 ? FixItHint::CreateReplacement(Tok.getLocation(), "class") in ParseTemplateTemplateParameter()
[all …]
DParseOpenMP.cpp165 Directive = Actions.ActOnDeclStmt(Res, Loc, Tok.getLocation()); in ParseOpenMPDeclarativeOrExecutableDirective()
210 DeclarationNameInfo(Tok.getIdentifierInfo(), Tok.getLocation()); in ParseOpenMPDeclarativeOrExecutableDirective()
246 EndLoc = Tok.getLocation(); in ParseOpenMPDeclarativeOrExecutableDirective()
322 Diag(PrevTok.getLocation(), diag::err_expected) in ParseOpenMPSimpleVarList()
324 << SourceRange(PrevTok.getLocation(), PrevTokLocation); in ParseOpenMPSimpleVarList()
516 SourceLocation Loc = Tok.getLocation(); in ParseOpenMPSimpleClause()
526 SourceLocation TypeLoc = Tok.getLocation(); in ParseOpenMPSimpleClause()
535 Tok.getLocation()); in ParseOpenMPSimpleClause()
556 SourceLocation Loc = Tok.getLocation(); in ParseOpenMPClause()
559 return Actions.ActOnOpenMPClause(Kind, Loc, Tok.getLocation()); in ParseOpenMPClause()
[all …]
/external/clang/lib/AST/
DCommentParser.cpp65 Pos.BufferStartLoc = Tok.getLocation(); in setupBuffer()
272 Arg.getLocation(), in parseParamCommandArgs()
278 Arg.getLocation(), in parseParamCommandArgs()
288 Arg.getLocation(), in parseTParamCommandArgs()
302 Args[ParsedArgs] = Argument(SourceRange(Arg.getLocation(), in parseBlockCommandArgs()
321 PC = S.actOnParamCommandStart(Tok.getLocation(), in parseBlockCommand()
326 TPC = S.actOnTParamCommandStart(Tok.getLocation(), in parseBlockCommand()
331 BC = S.actOnBlockCommandStart(Tok.getLocation(), in parseBlockCommand()
416 IC = S.actOnInlineCommand(CommandTok.getLocation(), in parseInlineCommand()
419 ArgTok.getLocation(), in parseInlineCommand()
[all …]
DCommentSema.cpp90 Diag(Command->getLocation(), in actOnParamCommandStart()
125 Diag(Comment->getLocation(), diag::warn_doc_function_method_decl_mismatch) in checkFunctionDeclVerbatimLine()
162 Diag(Comment->getLocation(), diag::warn_doc_api_container_decl_mismatch) in checkContainerDeclVerbatimLine()
212 Diag(Comment->getLocation(), diag::warn_doc_container_decl_mismatch) in checkContainerDecl()
291 Diag(Command->getLocation(), in actOnTParamCommandStart()
327 Diag(PrevCommand->getLocation(), diag::note_doc_tparam_previous) in actOnTParamCommandParamNameArg()
484 Diag(HET->getLocation(), diag::warn_doc_html_end_forbidden) in actOnHTMLEndTag()
500 Diag(HET->getLocation(), diag::warn_doc_html_end_unbalanced) in actOnHTMLEndTag()
521 HST->getLocation(), in actOnHTMLEndTag()
525 HET->getLocation(), in actOnHTMLEndTag()
[all …]
/external/clang/tools/libclang/
DCXStoredDiagnostic.cpp44 CXSourceLocation CXStoredDiagnostic::getLocation() const { in getLocation() function in CXStoredDiagnostic
45 if (Diag.getLocation().isInvalid()) in getLocation()
48 return translateSourceLocation(Diag.getLocation().getManager(), in getLocation()
49 LangOpts, Diag.getLocation()); in getLocation()
84 if (Diag.getLocation().isInvalid()) in getNumRanges()
91 assert(Diag.getLocation().isValid()); in getRange()
92 return translateSourceRange(Diag.getLocation().getManager(), in getRange()
98 if (Diag.getLocation().isInvalid()) in getNumFixIts()
110 *ReplacementRange = translateSourceRange(Diag.getLocation().getManager(), in getFixIt()
DIndexingContext.cpp72 CXIdxLoc Loc = IdxCtx.getIndexLoc(A->getLocation()); in AttrListInfo()
273 getIndexLoc(ImportD->getLocation()), in importedModule()
385 return handleDecl(D, D->getLocation(), getCursor(D), DInfo); in handleFunction()
391 return handleDecl(D, D->getLocation(), getCursor(D), DInfo); in handleVar()
397 return handleDecl(D, D->getLocation(), getCursor(D), DInfo); in handleField()
403 return handleDecl(D, D->getLocation(), getCursor(D), DInfo); in handleMSProperty()
409 return handleDecl(D, D->getLocation(), getCursor(D), DInfo); in handleEnumerator()
418 return handleDecl(D, D->getLocation(), getCursor(D), DInfo); in handleTagDecl()
424 return handleDecl(D, D->getLocation(), getCursor(D), DInfo); in handleTypedefName()
430 if (shouldSuppressRefs() && markEntityOccurrenceInFile(D, D->getLocation())) in handleObjCInterface()
[all …]
/external/clang/lib/Sema/
DSemaObjCProperty.cpp99 S.Diag(property->getLocation(), in checkARCPropertyDecl()
297 Loc = Tok.getLocation(); in LocPropertyAttribute()
340 Diag(prevDecl->getLocation(), diag::note_property_declare); in HandlePropertyInClassExtension()
371 Diag(CDecl->getLocation(), diag::err_continuation_class); in HandlePropertyInClassExtension()
419 Diag(PIDecl->getLocation(), diag::note_property_declare); in HandlePropertyInClassExtension()
436 Diag(PIDecl->getLocation(), diag::note_property_declare); in HandlePropertyInClassExtension()
449 Diag(PIDecl->getLocation(), diag::note_property_declare); in HandlePropertyInClassExtension()
510 Diag(PIDecl->getLocation(), diag::note_property_declare); in HandlePropertyInClassExtension()
571 Diag(PDecl->getLocation(), diag::err_duplicate_property); in CreatePropertyDecl()
572 Diag(prevDecl->getLocation(), diag::note_property_declare); in CreatePropertyDecl()
[all …]
DSemaDeclObjC.cpp95 SourceLocation loc = method->getLocation(); in checkInitMethod()
138 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride()
144 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride()
151 Diag(Overridden->getLocation(), in CheckObjCMethodOverride()
156 Diag(Overridden->getLocation(), in CheckObjCMethodOverride()
162 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride()
164 Diag(Overridden->getLocation(), diag::note_previous_decl) in CheckObjCMethodOverride()
169 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride()
171 Diag(Overridden->getLocation(), diag::note_previous_decl) in CheckObjCMethodOverride()
183 Diag(newDecl->getLocation(), in CheckObjCMethodOverride()
[all …]
DSemaDecl.cpp389 (*Res)->getLocation().getRawEncoding() < in getTypeName()
390 IIDecl->getLocation().getRawEncoding()) in getTypeName()
424 MarkAnyDeclReferenced(TD->getLocation(), TD, /*OdrUse=*/false); in getTypeName()
618 Diag(TplDecl->getLocation(), diag::note_template_decl_here) in DiagnoseUnknownTypeName()
704 SemaRef.Diag((*I)->getLocation(), diag::note_decl_hiding_tag_type) in isTagTypeWithMissingTag()
740 BuildCXXNestedNameSpecifier(S, *Name, NameLoc, NextToken.getLocation(), in ClassifyName()
975 MarkAnyDeclReferenced(Type->getLocation(), Type, /*OdrUse=*/false); in ClassifyName()
1383 if (FD->isInlined() && !isMainFileLoc(*this, FD->getLocation())) in ShouldWarnIfUnusedFileScopedDecl()
1394 if (!isMainFileLoc(*this, VD->getLocation())) in ShouldWarnIfUnusedFileScopedDecl()
1557 Diag(D->getLocation(), DiagID) << D->getDeclName() << Hint; in DiagnoseUnusedDecl()
[all …]
DSemaTemplateInstantiateDecl.cpp86 S.AddAlignedAttr(Aligned->getLocation(), New, Result.getAs<Expr>(), in instantiateDependentAlignedAttr()
90 TemplateArgs, Aligned->getLocation(), in instantiateDependentAlignedAttr()
93 S.AddAlignedAttr(Aligned->getLocation(), New, Result, in instantiateDependentAlignedAttr()
119 SourceLocation EllipsisLoc = Aligned->getLocation(); in instantiateDependentAlignedAttr()
155 S.AddAssumeAlignedAttr(Aligned->getLocation(), New, E, OE, in instantiateDependentAssumeAlignedAttr()
166 S.AddAlignValueAttr(Aligned->getLocation(), New, Result.getAs<Expr>(), in instantiateDependentAlignValueAttr()
192 S.Diag(A->getLocation(), diag::err_enable_if_never_constant_expr); in instantiateDependentEnableIfAttr()
199 EnableIfAttr(A->getLocation(), S.getASTContext(), Cond, in instantiateDependentEnableIfAttr()
298 LabelDecl *Inst = LabelDecl::Create(SemaRef.Context, Owner, D->getLocation(), in VisitLabelDecl()
330 D->getLocation(), D->getDeclName()); in InstantiateTypedefNameDecl()
[all …]
DSemaDeclCXX.cpp252 if (RequireCompleteType(Param->getLocation(), Param->getType(), in SetParamDefaultArgument()
266 InitializationKind Kind = InitializationKind::CreateCopy(Param->getLocation(), in SetParamDefaultArgument()
402 SR = SourceRange((*Toks)[1].getLocation(), in CheckExtraCXXDefaultArguments()
403 Toks->back().getLocation()); in CheckExtraCXXDefaultArguments()
406 Diag(Param->getLocation(), diag::err_param_default_argument_nonfunc) in CheckExtraCXXDefaultArguments()
411 Diag(Param->getLocation(), diag::err_param_default_argument_nonfunc) in CheckExtraCXXDefaultArguments()
516 Diag(NewParam->getLocation(), DiagDefaultParamID) in MergeCXXFunctionDecl()
526 Diag(OldParam->getLocation(), diag::note_previous_definition) in MergeCXXFunctionDecl()
543 Diag(NewParam->getLocation(), in MergeCXXFunctionDecl()
546 Diag(Old->getLocation(), diag::note_template_prev_declaration) in MergeCXXFunctionDecl()
[all …]
/external/clang/lib/Lex/
DTokenLexer.cpp36 ExpandLocStart = Tok.getLocation(); in Init()
51 assert(Tokens[0].getLocation().isValid()); in Init()
52 assert((Tokens[0].getLocation().isFileID() || Tokens[0].is(tok::comment)) && in Init()
60 MacroDefStart = SM.getExpansionLoc(Tokens[0].getLocation()); in Init()
152 PP.Diag(ResultToks.back().getLocation(), diag::ext_paste_comma); in MaybeRemoveCommaBeforeVaArgs()
193 getExpansionLocForMacroDefLoc(CurTok.getLocation()); in ExpandFunctionArguments()
195 getExpansionLocForMacroDefLoc(Tokens[i+1].getLocation()); in ExpandFunctionArguments()
298 updateLocForMacroArgTokens(CurTok.getLocation(), in ExpandFunctionArguments()
327 PP.Diag(ResultToks.pop_back_val().getLocation(), diag::ext_paste_comma); in ExpandFunctionArguments()
342 updateLocForMacroArgTokens(CurTok.getLocation(), in ExpandFunctionArguments()
[all …]
DPPMacroExpansion.cpp238 Identifier.getLocation(), in HandleMacroExpandedIdentifier()
251 SourceLocation ExpansionEnd = Identifier.getLocation(); in HandleMacroExpandedIdentifier()
276 SourceLocation ExpandLoc = Identifier.getLocation(); in HandleMacroExpandedIdentifier()
357 SourceMgr.createExpansionLoc(Identifier.getLocation(), ExpandLoc, in HandleMacroExpandedIdentifier()
473 SourceRange(ArgStartIterator->getLocation(), in GenerateNewArgTokens()
474 PP.getLocForEndOfToken(ClosingBrace->getLocation()))); in GenerateNewArgTokens()
482 TempToken.setLocation(ArgStartIterator->getLocation()); in GenerateNewArgTokens()
492 SourceLocation Loc = PP.getLocForEndOfToken((I - 1)->getLocation()); in GenerateNewArgTokens()
498 ParenHints.push_back(SourceRange(ArgStartIterator->getLocation(), in GenerateNewArgTokens()
551 SourceLocation ArgStartLoc = Tok.getLocation(); in ReadFunctionLikeMacroArgs()
[all …]
DPPDirectives.cpp194 SourceLocation MacroNameLoc = MacroNameTok.getLocation(); in CheckMacroName()
279 Hint = FixItHint::CreateInsertion(Tmp.getLocation(),"//"); in CheckEndOfDirective()
406 CurPPLexer->pushConditionalLevel(Tok.getLocation(), /*wasskipping*/true, in SkipExcludedConditionalBlock()
427 Callbacks->Endif(Tok.getLocation(), CondInfo.IfLoc); in SkipExcludedConditionalBlock()
454 Callbacks->Else(Tok.getLocation(), CondInfo.IfLoc); in SkipExcludedConditionalBlock()
480 Callbacks->Elif(Tok.getLocation(), in SkipExcludedConditionalBlock()
505 Callbacks->SourceRangeSkipped(SourceRange(BeginLoc, Tok.getLocation())); in SkipExcludedConditionalBlock()
853 return HandleIncludeDirective(SavedHash.getLocation(), Result); in HandleDirective()
856 return HandleIncludeMacrosDirective(SavedHash.getLocation(), Result); in HandleDirective()
874 return HandlePragmaDirective(SavedHash.getLocation(), PIK_HashPragma); in HandleDirective()
[all …]
DPPExpressions.cpp84 SourceLocation beginLoc(PeekTok.getLocation()); in EvaluateDefined()
94 LParenLoc = PeekTok.getLocation(); in EvaluateDefined()
127 Result.setEnd(PeekTok.getLocation()); in EvaluateDefined()
131 PP.Diag(PeekTok.getLocation(), diag::err_pp_expected_after) in EvaluateDefined()
137 Result.setEnd(PeekTok.getLocation()); in EvaluateDefined()
141 Result.setEnd(PeekTok.getLocation()); in EvaluateDefined()
152 SourceRange(beginLoc, PeekTok.getLocation())); in EvaluateDefined()
198 Result.setRange(PeekTok.getLocation()); in EvaluateValue()
220 NumericLiteralParser Literal(Spelling, PeekTok.getLocation(), PP); in EvaluateValue()
270 Result.setRange(PeekTok.getLocation()); in EvaluateValue()
[all …]
DPragma.cpp180 SourceLocation PragmaLoc = Tok.getLocation(); in Handle_Pragma()
223 SourceLocation RParenLoc = Tok.getLocation(); in Handle_Pragma()
284 SourceLocation TokLoc = TmpTok.getLocation(); in Handle_Pragma()
304 SourceLocation PragmaLoc = Tok.getLocation(); in HandleMicrosoft__pragma()
428 PresumedLoc PLoc = SourceMgr.getPresumedLoc(SysHeaderTok.getLocation()); in HandlePragmaSystemHeader()
436 Callbacks->FileChanged(SysHeaderTok.getLocation(), in HandlePragmaSystemHeader()
442 SourceMgr.AddLineNote(SysHeaderTok.getLocation(), PLoc.getLine()+1, in HandlePragmaSystemHeader()
465 GetIncludeFilenameSpelling(FilenameTok.getLocation(), Filename); in HandlePragmaDependency()
474 LookupFile(FilenameTok.getLocation(), Filename, isAngled, nullptr, in HandlePragmaDependency()
510 Diag(PragmaTok.getLocation(), diag::err_pragma_push_pop_macro_malformed) in ParsePragmaPushOrPopMacro()
[all …]
/external/clang/unittests/Tooling/
DRefactoringTest.cpp46 SourceLocation Location = Context.getLocation(ID, 1, 1); in TEST_F()
54 SourceLocation Location = Context.getLocation(ID, 1, 1); in TEST_F()
62 SourceLocation Location = Context.getLocation(ID, 1, 1); in TEST_F()
71 SourceLocation Location = Context.getLocation(ID, 2, 3); in TEST_F()
80 SourceLocation Location1 = Context.getLocation(ID, 2, 3); in TEST_F()
87 SourceLocation Location2 = Context.getLocation(ID, 4, 4); in TEST_F()
115 Replaces.insert(Replacement(Context.Sources, Context.getLocation(ID, 2, 1), in TEST_F()
117 Replaces.insert(Replacement(Context.Sources, Context.getLocation(ID, 3, 1), in TEST_F()
130 Replaces.push_back(Replacement(Context.Sources, Context.getLocation(ID, 2, 1), in TEST_F()
133 Replacement(Context.Sources, Context.getLocation(ID, 3, 1), 5, "other")); in TEST_F()
[all …]
DRecursiveASTVisitorTestExprVisitor.cpp40 Match(Stream.str(), ArgLoc.getLocation()); in TraverseTemplateArgumentLoc()
60 Match("true", BE->getLocation()); in VisitCXXBoolLiteralExpr()
62 Match("false", BE->getLocation()); in VisitCXXBoolLiteralExpr()
85 Match(Class->getName(), Ctor->getLocation()); in VisitCXXConstructorDecl()
123 Match(Class->getName(), Expr->getLocation()); in VisitCXXConstructExpr()
166 Match(Reference->getNameInfo().getAsString(), Reference->getLocation()); in VisitDeclRefExpr()
/external/mockito/src/org/mockito/internal/debugging/
DLoggingListener.java26 "stubbed with those args here " + unused.getLocation(), in foundStubCalledWithDifferentArgs()
27 "BUT called with different args " + unstubbed.getInvocation().getLocation(), in foundStubCalledWithDifferentArgs()
32 logger.log("This stubbing was never used " + unused.getLocation() + "\n"); in foundUnusedStub()
40 unstubbed.getInvocation().getLocation(), in foundUnstubbed()
/external/clang/lib/Frontend/
DTextDiagnosticBuffer.cpp33 Notes.push_back(std::make_pair(Info.getLocation(), Buf.str())); in HandleDiagnostic()
36 Warnings.push_back(std::make_pair(Info.getLocation(), Buf.str())); in HandleDiagnostic()
39 Remarks.push_back(std::make_pair(Info.getLocation(), Buf.str())); in HandleDiagnostic()
43 Errors.push_back(std::make_pair(Info.getLocation(), Buf.str())); in HandleDiagnostic()
/external/clang/lib/Frontend/Rewrite/
DRewriteMacros.cpp115 SourceLocation PPLoc = SM.getExpansionLoc(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.getExpansionLoc(PPTok.getLocation()); in RewriteMacrosInInput()
/external/llvm/include/llvm/Analysis/
DAliasAnalysis.h141 Location getLocation(const LoadInst *LI);
142 Location getLocation(const StoreInst *SI);
143 Location getLocation(const VAArgInst *VI);
144 Location getLocation(const AtomicCmpXchgInst *CXI);
145 Location getLocation(const AtomicRMWInst *RMWI);
148 Location getLocation(const Instruction *Inst) { in getLocation() function
150 return getLocation(I); in getLocation()
152 return getLocation(I); in getLocation()
154 return getLocation(I); in getLocation()
156 return getLocation(I); in getLocation()
[all …]

12345678910>>...14