/external/clang/unittests/Lex/ |
D | PPConditionalDirectiveRecordTest.cpp | 118 SourceRange(toks[0].getLocation(), toks[1].getLocation()))); in TEST_F() 120 SourceRange(toks[0].getLocation(), toks[2].getLocation()))); in TEST_F() 122 SourceRange(toks[3].getLocation(), toks[4].getLocation()))); in TEST_F() 124 SourceRange(toks[1].getLocation(), toks[5].getLocation()))); in TEST_F() 126 SourceRange(toks[2].getLocation(), toks[6].getLocation()))); in TEST_F() 128 SourceRange(toks[2].getLocation(), toks[5].getLocation()))); in TEST_F() 130 SourceRange(toks[0].getLocation(), toks[6].getLocation()))); in TEST_F() 132 SourceRange(toks[2].getLocation(), toks[8].getLocation()))); in TEST_F() 134 SourceRange(toks[0].getLocation(), toks[9].getLocation()))); in TEST_F() 137 toks[0].getLocation(), toks[2].getLocation())); in TEST_F() [all …]
|
D | LexerTest.cpp | 94 Begin.getLocation(), End.getLocation())), in getSourceText() 284 SourceLocation lsqrLoc = toks[0].getLocation(); in TEST_F() 285 SourceLocation idLoc = toks[1].getLocation(); in TEST_F() 286 SourceLocation rsqrLoc = toks[2].getLocation(); in TEST_F() 317 SourceLocation macroLsqrLoc = toks[3].getLocation(); in TEST_F() 318 SourceLocation macroIdLoc = toks[4].getLocation(); in TEST_F() 319 SourceLocation macroRsqrLoc = toks[5].getLocation(); in TEST_F() 348 SourceLocation idLoc1 = toks[6].getLocation(); in TEST_F() 349 SourceLocation idLoc2 = toks[7].getLocation(); in TEST_F() 350 SourceLocation idLoc3 = toks[8].getLocation(); in TEST_F() [all …]
|
/external/clang/lib/Parse/ |
D | ParsePragma.cpp | 87 Tok.getLocation()); in HandlePragmaWeak() 95 SourceLocation WeakNameLoc = Tok.getLocation(); in HandlePragmaWeakAlias() 98 SourceLocation AliasNameLoc = Tok.getLocation(); in HandlePragmaWeakAlias() 109 SourceLocation RedefNameLoc = Tok.getLocation(); in HandlePragmaRedefineExtname() 112 SourceLocation AliasNameLoc = Tok.getLocation(); in HandlePragmaRedefineExtname() 137 SourceLocation Loc = Tok.getLocation(); in HandlePragmaCaptured() 164 SourceLocation NameLoc = Tok.getLocation(); in HandlePragmaOpenCLExtension() 191 SourceLocation VisLoc = VisTok.getLocation(); in HandlePragma() 204 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_lparen) in HandlePragma() 211 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_identifier) in HandlePragma() [all …]
|
D | ParseCXXInlineMethods.cpp | 233 Eof.setLocation(Tok.getLocation()); in ParseCXXNonStaticMemberInitializer() 324 SourceLocation origLoc = Tok.getLocation(); in ParseLexedMethodDeclaration() 355 Diag(Tok.getLocation(), diag::err_default_arg_unparsed); in ParseLexedMethodDeclaration() 361 Tok.getLocation()) && in ParseLexedMethodDeclaration() 365 while (Tok.getLocation() != origLoc && Tok.isNot(tok::eof)) in ParseLexedMethodDeclaration() 408 SourceLocation origLoc = Tok.getLocation(); in ParseLexedMethodDef() 429 Tok.getLocation()) && in ParseLexedMethodDef() 433 while (Tok.getLocation() != origLoc && Tok.isNot(tok::eof)) in ParseLexedMethodDef() 444 while (Tok.getLocation() != origLoc && Tok.isNot(tok::eof)) in ParseLexedMethodDef() 463 if (Tok.getLocation() != origLoc) { in ParseLexedMethodDef() [all …]
|
D | ParseOpenMP.cpp | 108 Directive = Actions.ActOnDeclStmt(Res, Loc, Tok.getLocation()); in ParseOpenMPDeclarativeOrExecutableDirective() 131 EndLoc = Tok.getLocation(); in ParseOpenMPDeclarativeOrExecutableDirective() 219 Diag(PrevTok.getLocation(), diag::err_expected_ident) in ParseOpenMPSimpleVarList() 220 << SourceRange(PrevTok.getLocation(), PrevTokLocation); in ParseOpenMPSimpleVarList() 297 SourceLocation Loc = Tok.getLocation(); in ParseOpenMPSimpleClause() 308 SourceLocation TypeLoc = Tok.getLocation(); in ParseOpenMPSimpleClause() 317 Tok.getLocation()); in ParseOpenMPSimpleClause() 327 SourceLocation Loc = Tok.getLocation(); in ParseOpenMPVarListClause() 364 Tok.getLocation()); in ParseOpenMPVarListClause()
|
/external/clang/lib/AST/ |
D | CommentParser.cpp | 56 Pos.BufferStartLoc = Tok.getLocation(); in setupBuffer() 263 Arg.getLocation(), in parseParamCommandArgs() 269 Arg.getLocation(), in parseParamCommandArgs() 279 Arg.getLocation(), in parseTParamCommandArgs() 293 Args[ParsedArgs] = Argument(SourceRange(Arg.getLocation(), in parseBlockCommandArgs() 312 PC = S.actOnParamCommandStart(Tok.getLocation(), in parseBlockCommand() 317 TPC = S.actOnTParamCommandStart(Tok.getLocation(), in parseBlockCommand() 322 BC = S.actOnBlockCommandStart(Tok.getLocation(), in parseBlockCommand() 407 IC = S.actOnInlineCommand(CommandTok.getLocation(), in parseInlineCommand() 410 ArgTok.getLocation(), in parseInlineCommand() [all …]
|
/external/clang/tools/libclang/ |
D | CXStoredDiagnostic.cpp | 42 CXSourceLocation CXStoredDiagnostic::getLocation() const { in getLocation() function in CXStoredDiagnostic 43 if (Diag.getLocation().isInvalid()) in getLocation() 46 return translateSourceLocation(Diag.getLocation().getManager(), in getLocation() 47 LangOpts, Diag.getLocation()); in getLocation() 82 if (Diag.getLocation().isInvalid()) in getNumRanges() 89 assert(Diag.getLocation().isValid()); in getRange() 90 return translateSourceRange(Diag.getLocation().getManager(), in getRange() 96 if (Diag.getLocation().isInvalid()) in getNumFixIts() 108 *ReplacementRange = translateSourceRange(Diag.getLocation().getManager(), in getFixIt()
|
D | IndexingContext.cpp | 73 CXIdxLoc Loc = IdxCtx.getIndexLoc(A->getLocation()); in AttrListInfo() 274 getIndexLoc(ImportD->getLocation()), in importedModule() 386 return handleDecl(D, D->getLocation(), getCursor(D), DInfo); in handleFunction() 392 return handleDecl(D, D->getLocation(), getCursor(D), DInfo); in handleVar() 398 return handleDecl(D, D->getLocation(), getCursor(D), DInfo); in handleField() 404 return handleDecl(D, D->getLocation(), getCursor(D), DInfo); in handleMSProperty() 410 return handleDecl(D, D->getLocation(), getCursor(D), DInfo); in handleEnumerator() 419 return handleDecl(D, D->getLocation(), getCursor(D), DInfo); in handleTagDecl() 425 return handleDecl(D, D->getLocation(), getCursor(D), DInfo); in handleTypedefName() 431 if (shouldSuppressRefs() && markEntityOccurrenceInFile(D, D->getLocation())) in handleObjCInterface() [all …]
|
/external/clang/lib/Sema/ |
D | SemaObjCProperty.cpp | 99 S.Diag(property->getLocation(), in checkARCPropertyDecl() 307 Loc = Tok.getLocation(); in LocPropertyAttribute() 353 Diag(prevDecl->getLocation(), diag::note_property_declare); in HandlePropertyInClassExtension() 384 Diag(CDecl->getLocation(), diag::err_continuation_class); in HandlePropertyInClassExtension() 428 Diag(PIDecl->getLocation(), diag::note_property_declare); in HandlePropertyInClassExtension() 443 Diag(PIDecl->getLocation(), diag::note_property_declare); in HandlePropertyInClassExtension() 489 Diag(PIDecl->getLocation(), diag::note_property_declare); in HandlePropertyInClassExtension() 550 Diag(PDecl->getLocation(), diag::err_duplicate_property); in CreatePropertyDecl() 551 Diag(prevDecl->getLocation(), diag::note_property_declare); in CreatePropertyDecl() 664 S.Diag(ivar->getLocation(), diag::err_arc_strong_property_ownership) in checkARCPropertyImpl() [all …]
|
D | SemaDeclObjC.cpp | 95 SourceLocation loc = method->getLocation(); in checkInitMethod() 140 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride() 146 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride() 153 Diag(Overridden->getLocation(), in CheckObjCMethodOverride() 158 Diag(Overridden->getLocation(), in CheckObjCMethodOverride() 164 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride() 166 Diag(Overridden->getLocation(), diag::note_previous_decl) in CheckObjCMethodOverride() 171 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride() 173 Diag(Overridden->getLocation(), diag::note_previous_decl) in CheckObjCMethodOverride() 185 Diag(newDecl->getLocation(), in CheckObjCMethodOverride() [all …]
|
D | SemaDecl.cpp | 248 Diag(FirstDecl->getLocation(), diag::note_previous_decl) in getTypeName() 280 (*Res)->getLocation().getRawEncoding() < in getTypeName() 281 IIDecl->getLocation().getRawEncoding()) in getTypeName() 449 Diag(Result->getLocation(), diag::note_previous_decl) in DiagnoseUnknownTypeName() 473 Diag(TplDecl->getLocation(), diag::note_template_decl_here) in DiagnoseUnknownTypeName() 566 SemaRef.Diag((*I)->getLocation(), diag::note_decl_hiding_tag_type) in isTagTypeWithMissingTag() 604 BuildCXXNestedNameSpecifier(S, *Name, NameLoc, NextToken.getLocation(), in ClassifyName() 717 Diag(FirstDecl->getLocation(), diag::note_previous_decl) in ClassifyName() 1379 Diag(D->getLocation(), DiagID) << D->getDeclName() << Hint; in DiagnoseUnusedDecl() 1387 S.Diag(L->getLocation(), diag::err_undeclared_label_use) <<L->getDeclName(); in CheckPoppedLabel() [all …]
|
D | SemaTemplateInstantiateDecl.cpp | 71 S.AddAlignedAttr(Aligned->getLocation(), New, Result.takeAs<Expr>(), in instantiateDependentAlignedAttr() 75 TemplateArgs, Aligned->getLocation(), in instantiateDependentAlignedAttr() 78 S.AddAlignedAttr(Aligned->getLocation(), New, Result, in instantiateDependentAlignedAttr() 104 SourceLocation EllipsisLoc = Aligned->getLocation(); in instantiateDependentAlignedAttr() 167 LabelDecl *Inst = LabelDecl::Create(SemaRef.Context, Owner, D->getLocation(), in VisitLabelDecl() 199 D->getLocation(), D->getDeclName()); in InstantiateTypedefNameDecl() 205 SemaRef.MarkDeclarationsReferencedInType(D->getLocation(), DI->getType()); in InstantiateTypedefNameDecl() 228 D->getLocation(), D->getIdentifier(), DI); in InstantiateTypedefNameDecl() 231 D->getLocation(), D->getIdentifier(), DI); in InstantiateTypedefNameDecl() 247 NamedDecl *InstPrev = SemaRef.FindInstantiatedDecl(D->getLocation(), Prev, in InstantiateTypedefNameDecl() [all …]
|
D | SemaDeclCXX.cpp | 253 if (RequireCompleteType(Param->getLocation(), Param->getType(), in SetParamDefaultArgument() 267 InitializationKind Kind = InitializationKind::CreateCopy(Param->getLocation(), in SetParamDefaultArgument() 391 Diag(Param->getLocation(), diag::err_param_default_argument_nonfunc) in CheckExtraCXXDefaultArguments() 392 << SourceRange((*Toks)[1].getLocation(), in CheckExtraCXXDefaultArguments() 393 Toks->back().getLocation()); in CheckExtraCXXDefaultArguments() 397 Diag(Param->getLocation(), diag::err_param_default_argument_nonfunc) in CheckExtraCXXDefaultArguments() 489 Diag(NewParam->getLocation(), DiagDefaultParamID) in MergeCXXFunctionDecl() 502 Diag(OldParam->getLocation(), diag::note_previous_definition) in MergeCXXFunctionDecl() 517 Diag(NewParam->getLocation(), in MergeCXXFunctionDecl() 520 Diag(Old->getLocation(), diag::note_template_prev_declaration) in MergeCXXFunctionDecl() [all …]
|
D | SemaTemplate.cpp | 350 Diag(Template->getLocation(), diag::note_previous_decl) in LookupTemplateName() 398 Diag(Found.getRepresentativeDecl()->getLocation(), in LookupTemplateName() 401 Diag(FoundOuter.getFoundDecl()->getLocation(), in LookupTemplateName() 473 Diag(PrevDecl->getLocation(), diag::note_template_param_here); in DiagnoseTemplateParameterShadow() 507 DI = SemaRef.Context.getTrivialTypeSourceInfo(T, Arg.getLocation()); in translateTemplateArgument() 526 Arg.getLocation(), in translateTemplateArgument() 784 Diag(Param->getLocation(), diag::err_template_template_parm_no_parms) in ActOnTemplateTemplateParameter() 808 Diag(DefaultArg.getLocation(), diag::err_template_arg_not_class_template) in ActOnTemplateTemplateParameter() 814 if (DiagnoseUnexpandedParameterPack(DefaultArg.getLocation(), in ActOnTemplateTemplateParameter() 1003 Diag(PrevRecordDecl->getLocation(), diag::note_previous_use); in CheckClassTemplate() [all …]
|
D | SemaOpenMP.cpp | 85 Diag(Lookup.getFoundDecl()->getLocation(), diag::note_declared_at); in ActOnOpenMPIdExpression() 99 Diag(VD->getLocation(), in ActOnOpenMPIdExpression() 124 Diag(VD->getLocation(), IsDecl ? diag::note_previous_decl : in ActOnOpenMPIdExpression() 179 Diag(VD->getLocation(), IsDecl ? diag::note_previous_decl : in CheckOMPThreadPrivateDecl() 189 Diag(VD->getLocation(), IsDecl ? diag::note_previous_decl : in CheckOMPThreadPrivateDecl() 352 Diag(VD->getLocation(), IsDecl ? diag::note_previous_decl : in ActOnOpenMPPrivateClause() 380 Diag(VD->getLocation(), IsDecl ? diag::note_previous_decl : in ActOnOpenMPPrivateClause() 382 Diag(RD->getLocation(), diag::note_previous_decl) << RD; in ActOnOpenMPPrivateClause() 396 Diag(VD->getLocation(), IsDecl ? diag::note_previous_decl : in ActOnOpenMPPrivateClause() 398 Diag(RD->getLocation(), diag::note_previous_decl) << RD; in ActOnOpenMPPrivateClause()
|
/external/clang/lib/Lex/ |
D | TokenLexer.cpp | 36 ExpandLocStart = Tok.getLocation(); in Init() 50 assert(Tokens[0].getLocation().isValid()); in Init() 51 assert((Tokens[0].getLocation().isFileID() || Tokens[0].is(tok::comment)) && in Init() 59 MacroDefStart = SM.getExpansionLoc(Tokens[0].getLocation()); in Init() 154 PP.Diag(ResultToks.back().getLocation(), diag::ext_paste_comma); in MaybeRemoveCommaBeforeVaArgs() 197 getExpansionLocForMacroDefLoc(CurTok.getLocation()); in ExpandFunctionArguments() 199 getExpansionLocForMacroDefLoc(Tokens[i+1].getLocation()); in ExpandFunctionArguments() 298 updateLocForMacroArgTokens(CurTok.getLocation(), in ExpandFunctionArguments() 332 PP.Diag(ResultToks.back().getLocation(), diag::ext_paste_comma); in ExpandFunctionArguments() 348 updateLocForMacroArgTokens(CurTok.getLocation(), in ExpandFunctionArguments() [all …]
|
D | PPDirectives.cpp | 224 Hint = FixItHint::CreateInsertion(Tmp.getLocation(),"//"); in CheckEndOfDirective() 351 CurPPLexer->pushConditionalLevel(Tok.getLocation(), /*wasskipping*/true, in SkipExcludedConditionalBlock() 372 Callbacks->Endif(Tok.getLocation(), CondInfo.IfLoc); in SkipExcludedConditionalBlock() 399 Callbacks->Else(Tok.getLocation(), CondInfo.IfLoc); in SkipExcludedConditionalBlock() 432 Callbacks->Elif(Tok.getLocation(), in SkipExcludedConditionalBlock() 452 Callbacks->SourceRangeSkipped(SourceRange(BeginLoc, Tok.getLocation())); in SkipExcludedConditionalBlock() 740 return HandleIncludeDirective(SavedHash.getLocation(), Result); in HandleDirective() 743 return HandleIncludeMacrosDirective(SavedHash.getLocation(), Result); in HandleDirective() 761 return HandlePragmaDirective(SavedHash.getLocation(), PIK_HashPragma); in HandleDirective() 765 return HandleImportDirective(SavedHash.getLocation(), Result); in HandleDirective() [all …]
|
D | PPExpressions.cpp | 85 SourceLocation beginLoc(PeekTok.getLocation()); in EvaluateDefined() 95 LParenLoc = PeekTok.getLocation(); in EvaluateDefined() 129 Result.setEnd(PeekTok.getLocation()); in EvaluateDefined() 133 PP.Diag(PeekTok.getLocation(), diag::err_pp_missing_rparen) << "defined"; in EvaluateDefined() 138 Result.setEnd(PeekTok.getLocation()); in EvaluateDefined() 142 Result.setEnd(PeekTok.getLocation()); in EvaluateDefined() 153 SourceRange(beginLoc, PeekTok.getLocation())); in EvaluateDefined() 199 Result.setRange(PeekTok.getLocation()); in EvaluateValue() 221 NumericLiteralParser Literal(Spelling, PeekTok.getLocation(), PP); in EvaluateValue() 268 Result.setRange(PeekTok.getLocation()); in EvaluateValue() [all …]
|
D | PPMacroExpansion.cpp | 226 Identifier.getLocation(),/*Args=*/0); in HandleMacroExpandedIdentifier() 238 SourceLocation ExpansionEnd = Identifier.getLocation(); in HandleMacroExpandedIdentifier() 268 SourceLocation ExpandLoc = Identifier.getLocation(); in HandleMacroExpandedIdentifier() 361 SourceMgr.createExpansionLoc(Identifier.getLocation(), ExpandLoc, in HandleMacroExpandedIdentifier() 481 SourceRange(ArgStartIterator->getLocation(), in GenerateNewArgTokens() 482 PP.getLocForEndOfToken(ClosingBrace->getLocation()))); in GenerateNewArgTokens() 490 TempToken.setLocation(ArgStartIterator->getLocation()); in GenerateNewArgTokens() 500 SourceLocation Loc = PP.getLocForEndOfToken((I - 1)->getLocation()); in GenerateNewArgTokens() 506 ParenHints.push_back(SourceRange(ArgStartIterator->getLocation(), in GenerateNewArgTokens() 559 SourceLocation ArgStartLoc = Tok.getLocation(); in ReadFunctionLikeMacroArgs() [all …]
|
D | Pragma.cpp | 180 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() 473 const FileEntry *File = LookupFile(FilenameTok.getLocation(), Filename, in HandlePragmaDependency() 509 Diag(PragmaTok.getLocation(), diag::err_pragma_push_pop_macro_malformed) in ParsePragmaPushOrPopMacro() [all …]
|
/external/clang/unittests/Tooling/ |
D | RefactoringTest.cpp | 46 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() 127 Replaces.insert(Replacement(Context.Sources, Context.getLocation(ID, 2, 1), in TEST_F() 129 Replaces.insert(Replacement(Context.Sources, Context.getLocation(ID, 2, 1), in TEST_F() [all …]
|
D | RewriterTest.cpp | 18 Context.Rewrite.ReplaceText(Context.getLocation(ID, 2, 1), 5, "replaced"); in TEST() 27 Context.Rewrite.ReplaceText(Context.getLocation(FailingID, 1, 2), 1, "other"); in TEST() 30 Context.Rewrite.ReplaceText(Context.getLocation(WorkingID, 2, 1), 5, in TEST()
|
/external/mockito/src/org/mockito/internal/debugging/ |
D | LoggingListener.java | 26 "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/Rewrite/Frontend/ |
D | RewriteMacros.cpp | 115 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/clang/lib/ARCMigrate/ |
D | TransProtectedScope.cpp | 120 isInRange(I->getLocation(), BodyRange)) { in ProtectedScopeFixer() 133 SourceLocation ErrLoc = DiagI->getLocation(); in handleProtectedScopeError() 151 if (isInRange(Diag.getLocation(), info.Range)) { in handleProtectedNote() 158 Pass.TA.clearDiagnostic(Diag.getID(), Diag.getLocation()); in handleProtectedNote() 183 if (isInRange(DRE->getDecl()->getLocation(), info.Range) && in hasVarReferencedOutside() 184 !isInRange(DRE->getLocation(), info.Range)) in hasVarReferencedOutside()
|