/external/clang/unittests/Lex/ |
D | PreprocessingRecordTest.cpp | 107 SourceRange(toks[0].getLocation(), toks[1].getLocation()))); in TEST_F() 109 SourceRange(toks[0].getLocation(), toks[2].getLocation()))); in TEST_F() 111 SourceRange(toks[3].getLocation(), toks[4].getLocation()))); in TEST_F() 113 SourceRange(toks[1].getLocation(), toks[5].getLocation()))); in TEST_F() 115 SourceRange(toks[2].getLocation(), toks[6].getLocation()))); in TEST_F() 117 SourceRange(toks[2].getLocation(), toks[5].getLocation()))); in TEST_F() 119 SourceRange(toks[0].getLocation(), toks[6].getLocation()))); in TEST_F() 121 SourceRange(toks[2].getLocation(), toks[8].getLocation()))); in TEST_F() 123 SourceRange(toks[0].getLocation(), toks[9].getLocation()))); in TEST_F() 126 toks[0].getLocation(), toks[2].getLocation())); in TEST_F() [all …]
|
D | LexerTest.cpp | 103 SourceLocation lsqrLoc = toks[0].getLocation(); in TEST_F() 104 SourceLocation idLoc = toks[1].getLocation(); in TEST_F() 105 SourceLocation rsqrLoc = toks[2].getLocation(); in TEST_F() 136 SourceLocation macroLsqrLoc = toks[3].getLocation(); in TEST_F() 137 SourceLocation macroIdLoc = toks[4].getLocation(); in TEST_F() 138 SourceLocation macroRsqrLoc = toks[5].getLocation(); in TEST_F() 167 SourceLocation idLoc1 = toks[6].getLocation(); in TEST_F() 168 SourceLocation idLoc2 = toks[7].getLocation(); in TEST_F() 169 SourceLocation idLoc3 = toks[8].getLocation(); in TEST_F() 170 SourceLocation idLoc4 = toks[9].getLocation(); in TEST_F()
|
/external/clang/lib/Parse/ |
D | ParsePragma.cpp | 63 SourceLocation VisLoc = VisTok.getLocation(); in HandlePragma() 76 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_lparen) in HandlePragma() 83 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_identifier) in HandlePragma() 89 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_rparen) in HandlePragma() 94 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_identifier) in HandlePragma() 100 PP.Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol) in HandlePragma() 122 SourceLocation PackLoc = PackTok.getLocation(); in HandlePragma() 127 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_lparen) << "pack"; in HandlePragma() 134 SourceLocation LParenLoc = Tok.getLocation(); in HandlePragma() 159 PP.Diag(Tok.getLocation(), diag::warn_pragma_pack_invalid_action); in HandlePragma() [all …]
|
D | ParseCXXInlineMethods.cpp | 219 Eof.setLocation(Tok.getLocation()); in ParseCXXNonStaticMemberInitializer() 305 SourceLocation origLoc = Tok.getLocation(); in ParseLexedMethodDeclaration() 336 Diag(Tok.getLocation(), diag::err_default_arg_unparsed); in ParseLexedMethodDeclaration() 342 Tok.getLocation()) && in ParseLexedMethodDeclaration() 346 while (Tok.getLocation() != origLoc && Tok.isNot(tok::eof)) in ParseLexedMethodDeclaration() 385 SourceLocation origLoc = Tok.getLocation(); in ParseLexedMethodDef() 406 Tok.getLocation()) && in ParseLexedMethodDef() 410 while (Tok.getLocation() != origLoc && Tok.isNot(tok::eof)) in ParseLexedMethodDef() 421 while (Tok.getLocation() != origLoc && Tok.isNot(tok::eof)) in ParseLexedMethodDef() 430 if (Tok.getLocation() != origLoc) { in ParseLexedMethodDef() [all …]
|
D | ParseTemplate.cpp | 133 Diag(Tok.getLocation(), diag::err_expected_template); in ParseTemplateDeclarationOrSpecialization() 311 Diag(Tok.getLocation(), diag::err_expected_less_after) << "template"; in ParseTemplateParameters() 328 RAngleLoc = Tok.getLocation(); in ParseTemplateParameters() 329 Tok.setLocation(Tok.getLocation().getLocWithOffset(1)); in ParseTemplateParameters() 333 Diag(Tok.getLocation(), diag::err_expected_greater); in ParseTemplateParameters() 370 Diag(Tok.getLocation(), diag::err_expected_comma_greater); in ParseTemplateParameterList() 510 Diag(Tok.getLocation(), diag::err_expected_ident); in ParseTypeParameter() 564 Diag(Tok.getLocation(), diag::err_class_on_template_template_param) in ParseTemplateTemplateParameter() 565 << (Replace ? FixItHint::CreateReplacement(Tok.getLocation(), "class") in ParseTemplateTemplateParameter() 566 : FixItHint::CreateInsertion(Tok.getLocation(), "class ")); in ParseTemplateTemplateParameter() [all …]
|
/external/clang/lib/AST/ |
D | CommentParser.cpp | 55 Pos.BufferStartLoc = Tok.getLocation(); in setupBuffer() 268 Arg.getLocation(), in parseParamCommandArgs() 274 Arg.getLocation(), in parseParamCommandArgs() 284 Arg.getLocation(), in parseTParamCommandArgs() 298 Args[ParsedArgs] = Argument(SourceRange(Arg.getLocation(), in parseBlockCommandArgs() 318 PC = S.actOnParamCommandStart(Tok.getLocation(), in parseBlockCommand() 323 TPC = S.actOnTParamCommandStart(Tok.getLocation(), in parseBlockCommand() 327 BC = S.actOnBlockCommandStart(Tok.getLocation(), in parseBlockCommand() 395 IC = S.actOnInlineCommand(CommandTok.getLocation(), in parseInlineCommand() 398 ArgTok.getLocation(), in parseInlineCommand() [all …]
|
D | CommentSema.cpp | 71 Diag(Command->getLocation(), in actOnParamCommandStart() 164 Diag(Command->getLocation(), in actOnTParamCommandStart() 201 Diag(PrevCommand->getLocation(), diag::note_doc_tparam_previous) in actOnTParamCommandParamNameArg() 349 Diag(HET->getLocation(), diag::warn_doc_html_end_forbidden) in actOnHTMLEndTag() 364 Diag(HET->getLocation(), diag::warn_doc_html_end_unbalanced) in actOnHTMLEndTag() 381 HST->getLocation(), in actOnHTMLEndTag() 385 HET->getLocation(), in actOnHTMLEndTag() 389 Diag(HST->getLocation(), diag::warn_doc_html_start_end_mismatch) in actOnHTMLEndTag() 393 Diag(HST->getLocation(), diag::warn_doc_html_start_end_mismatch) in actOnHTMLEndTag() 396 Diag(HET->getLocation(), diag::note_doc_html_end_tag) in actOnHTMLEndTag() [all …]
|
/external/clang/tools/libclang/ |
D | CXStoredDiagnostic.cpp | 43 CXSourceLocation CXStoredDiagnostic::getLocation() const { in getLocation() function in CXStoredDiagnostic 44 if (Diag.getLocation().isInvalid()) in getLocation() 47 return translateSourceLocation(Diag.getLocation().getManager(), in getLocation() 48 LangOpts, Diag.getLocation()); in getLocation() 83 if (Diag.getLocation().isInvalid()) in getNumRanges() 90 assert(Diag.getLocation().isValid()); in getRange() 91 return translateSourceRange(Diag.getLocation().getManager(), in getRange() 97 if (Diag.getLocation().isInvalid()) in getNumFixIts() 109 *ReplacementRange = translateSourceRange(Diag.getLocation().getManager(), in getFixIt()
|
D | IndexingContext.cpp | 74 CXIdxLoc Loc = IdxCtx.getIndexLoc(A->getLocation()); in AttrListInfo() 316 return handleDecl(D, D->getLocation(), getCursor(D), DInfo); in handleFunction() 322 return handleDecl(D, D->getLocation(), getCursor(D), DInfo); in handleVar() 328 return handleDecl(D, D->getLocation(), getCursor(D), DInfo); in handleField() 334 return handleDecl(D, D->getLocation(), getCursor(D), DInfo); in handleEnumerator() 343 return handleDecl(D, D->getLocation(), getCursor(D), DInfo); in handleTagDecl() 349 return handleDecl(D, D->getLocation(), getCursor(D), DInfo); in handleTypedefName() 355 if (shouldSuppressRefs() && markEntityOccurrenceInFile(D, D->getLocation())) in handleObjCInterface() 362 return handleObjCContainer(D, D->getLocation(), in handleObjCInterface() 363 MakeCursorObjCClassRef(D, D->getLocation(), in handleObjCInterface() [all …]
|
D | IndexBody.cpp | 43 IndexCtx.handleReference(E->getDecl(), E->getLocation(), in VisitDeclRefExpr() 66 IndexCtx.handleReference(E->getDecl(), E->getLocation(), in VisitObjCIvarRefExpr() 85 IndexCtx.handleReference(E->getExplicitProperty(), E->getLocation(), in VisitObjCPropertyRefExpr() 121 IndexCtx.handleReference(E->getConstructor(), E->getLocation(), in VisitCXXConstructExpr() 143 IndexCtx.handleReference(C.getCapturedVar(), C.getLocation(), in TraverseLambdaCapture()
|
/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() 148 getExpansionLocForMacroDefLoc(CurTok.getLocation()); in ExpandFunctionArguments() 150 getExpansionLocForMacroDefLoc(Tokens[i+1].getLocation()); in ExpandFunctionArguments() 237 updateLocForMacroArgTokens(CurTok.getLocation(), in ExpandFunctionArguments() 271 PP.Diag(ResultToks.back().getLocation(), diag::ext_paste_comma); in ExpandFunctionArguments() 287 updateLocForMacroArgTokens(CurTok.getLocation(), in ExpandFunctionArguments() 337 PP.Diag(ResultToks.back().getLocation(), diag::ext_paste_comma); in ExpandFunctionArguments() [all …]
|
D | PPDirectives.cpp | 190 Hint = FixItHint::CreateInsertion(Tmp.getLocation(),"//"); in CheckEndOfDirective() 317 CurPPLexer->pushConditionalLevel(Tok.getLocation(), /*wasskipping*/true, in SkipExcludedConditionalBlock() 338 Callbacks->Endif(Tok.getLocation(), CondInfo.IfLoc); in SkipExcludedConditionalBlock() 365 Callbacks->Else(Tok.getLocation(), CondInfo.IfLoc); in SkipExcludedConditionalBlock() 398 Callbacks->Elif(Tok.getLocation(), in SkipExcludedConditionalBlock() 418 Callbacks->SourceRangeSkipped(SourceRange(BeginLoc, Tok.getLocation())); in SkipExcludedConditionalBlock() 679 return HandleIncludeDirective(SavedHash.getLocation(), Result); in HandleDirective() 682 return HandleIncludeMacrosDirective(SavedHash.getLocation(), Result); in HandleDirective() 704 return HandleImportDirective(SavedHash.getLocation(), Result); in HandleDirective() 706 return HandleIncludeNextDirective(SavedHash.getLocation(), Result); in HandleDirective() [all …]
|
D | Pragma.cpp | 177 SourceLocation PragmaLoc = Tok.getLocation(); in Handle_Pragma() 220 SourceLocation RParenLoc = Tok.getLocation(); in Handle_Pragma() 255 SourceLocation TokLoc = TmpTok.getLocation(); in Handle_Pragma() 275 SourceLocation PragmaLoc = Tok.getLocation(); in HandleMicrosoft__pragma() 399 PresumedLoc PLoc = SourceMgr.getPresumedLoc(SysHeaderTok.getLocation()); in HandlePragmaSystemHeader() 407 Callbacks->FileChanged(SysHeaderTok.getLocation(), in HandlePragmaSystemHeader() 413 SourceMgr.AddLineNote(SysHeaderTok.getLocation(), PLoc.getLine(), FilenameID, in HandlePragmaSystemHeader() 435 GetIncludeFilenameSpelling(FilenameTok.getLocation(), Filename); in HandlePragmaDependency() 480 SourceLocation CommentLoc = Tok.getLocation(); in HandlePragmaComment() 499 Diag(Tok.getLocation(), diag::err_pragma_comment_unknown_kind); in HandlePragmaComment() [all …]
|
D | PPExpressions.cpp | 84 Result.setBegin(PeekTok.getLocation()); in EvaluateDefined() 93 LParenLoc = PeekTok.getLocation(); in EvaluateDefined() 127 Result.setEnd(PeekTok.getLocation()); in EvaluateDefined() 131 PP.Diag(PeekTok.getLocation(), diag::err_pp_missing_rparen) << "defined"; in EvaluateDefined() 136 Result.setEnd(PeekTok.getLocation()); in EvaluateDefined() 140 Result.setEnd(PeekTok.getLocation()); in EvaluateDefined() 185 Result.setRange(PeekTok.getLocation()); in EvaluateValue() 208 PeekTok.getLocation(), PP); in EvaluateValue() 250 Result.setRange(PeekTok.getLocation()); in EvaluateValue() 269 PeekTok.getLocation(), PP, PeekTok.getKind()); in EvaluateValue() [all …]
|
D | PPMacroExpansion.cpp | 206 Identifier.getLocation()); in HandleMacroExpandedIdentifier() 218 SourceLocation ExpansionEnd = Identifier.getLocation(); in HandleMacroExpandedIdentifier() 248 SourceLocation ExpandLoc = Identifier.getLocation(); in HandleMacroExpandedIdentifier() 323 SourceMgr.createExpansionLoc(Identifier.getLocation(), ExpandLoc, in HandleMacroExpandedIdentifier() 382 SourceLocation ArgStartLoc = Tok.getLocation(); in ReadFunctionLikeMacroArgs() 401 MacroEnd = Tok.getLocation(); in ReadFunctionLikeMacroArgs() 452 ArgStartLoc = ArgTokens[ArgTokenStart].getLocation(); in ReadFunctionLikeMacroArgs() 471 EOFTok.setLocation(Tok.getLocation()); in ReadFunctionLikeMacroArgs() 519 SourceLocation EndLoc = Tok.getLocation(); in ReadFunctionLikeMacroArgs() 604 DATELoc = TmpTok.getLocation(); in ComputeDATE_TIME() [all …]
|
D | ModuleMap.cpp | 485 SourceLocation getLocation() const { in getLocation() function 566 SourceLocation Result = Tok.getLocation(); in consumeToken() 571 Tok.Location = LToken.getLocation().getRawEncoding(); in consumeToken() 621 Diags.Report(LToken.getLocation(), diag::err_invalid_string_udl); in consumeToken() 649 Diags.Report(LToken.getLocation(), diag::err_mmap_unknown_token); in consumeToken() 714 Id.push_back(std::make_pair(Tok.getString(), Tok.getLocation())); in parseModuleId() 717 Diags.Report(Tok.getLocation(), diag::err_mmap_expected_module_name); in parseModuleId() 784 Diags.Report(Tok.getLocation(), diag::err_mmap_expected_module); in parseModuleDecl() 852 Diags.Report(Tok.getLocation(), diag::err_mmap_expected_attribute); in parseModuleDecl() 866 Diags.Report(Tok.getLocation(), diag::warn_mmap_unknown_attribute) in parseModuleDecl() [all …]
|
/external/clang/lib/Sema/ |
D | SemaObjCProperty.cpp | 98 S.Diag(property->getLocation(), in checkARCPropertyDecl() 236 Loc = Tok.getLocation(); in LocPropertyAttribute() 281 Diag(prevDecl->getLocation(), diag::note_property_declare); in HandlePropertyInClassExtension() 307 Diag(CDecl->getLocation(), diag::err_continuation_class); in HandlePropertyInClassExtension() 351 Diag(PIDecl->getLocation(), diag::note_property_declare); in HandlePropertyInClassExtension() 365 Diag(PIDecl->getLocation(), diag::note_property_declare); in HandlePropertyInClassExtension() 411 Diag(PIDecl->getLocation(), diag::note_property_declare); in HandlePropertyInClassExtension() 463 Diag(PDecl->getLocation(), diag::err_duplicate_property); in CreatePropertyDecl() 464 Diag(prevDecl->getLocation(), diag::note_property_declare); in CreatePropertyDecl() 605 S.Diag(property->getLocation(), diag::note_property_declare); in checkARCPropertyImpl() [all …]
|
D | SemaDeclObjC.cpp | 95 SourceLocation loc = method->getLocation(); in checkInitMethod() 141 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride() 147 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride() 154 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 | 249 Diag(FirstDecl->getLocation(), diag::note_previous_decl) in getTypeName() 281 (*Res)->getLocation().getRawEncoding() < in getTypeName() 282 IIDecl->getLocation().getRawEncoding()) in getTypeName() 442 Diag(Result->getLocation(), diag::note_previous_decl) in DiagnoseUnknownTypeName() 466 Diag(TplDecl->getLocation(), diag::note_template_decl_here) in DiagnoseUnknownTypeName() 559 SemaRef.Diag((*I)->getLocation(), diag::note_decl_hiding_tag_type) in isTagTypeWithMissingTag() 597 BuildCXXNestedNameSpecifier(S, *Name, NameLoc, NextToken.getLocation(), in ClassifyName() 706 Diag(FirstDecl->getLocation(), diag::note_previous_decl) in ClassifyName() 1334 Diag(D->getLocation(), DiagID) << D->getDeclName() << Hint; in DiagnoseUnusedDecl() 1342 S.Diag(L->getLocation(), diag::err_undeclared_label_use) <<L->getDeclName(); in CheckPoppedLabel() [all …]
|
D | SemaTemplateInstantiateDecl.cpp | 82 AddAlignedAttr(Aligned->getLocation(), New, Result.takeAs<Expr>(), in InstantiateAttrs() 87 Aligned->getLocation(), in InstantiateAttrs() 90 AddAlignedAttr(Aligned->getLocation(), New, Result, in InstantiateAttrs() 120 LabelDecl *Inst = LabelDecl::Create(SemaRef.Context, Owner, D->getLocation(), in VisitLabelDecl() 152 D->getLocation(), D->getDeclName()); in InstantiateTypedefNameDecl() 158 SemaRef.MarkDeclarationsReferencedInType(D->getLocation(), DI->getType()); in InstantiateTypedefNameDecl() 165 D->getLocation(), D->getIdentifier(), DI); in InstantiateTypedefNameDecl() 168 D->getLocation(), D->getIdentifier(), DI); in InstantiateTypedefNameDecl() 184 NamedDecl *InstPrev = SemaRef.FindInstantiatedDecl(D->getLocation(), Prev, in InstantiateTypedefNameDecl() 243 = TypeAliasTemplateDecl::Create(SemaRef.Context, Owner, D->getLocation(), in VisitTypeAliasTemplateDecl() [all …]
|
D | SemaDeclCXX.cpp | 232 if (RequireCompleteType(Param->getLocation(), Param->getType(), in SetParamDefaultArgument() 246 InitializationKind Kind = InitializationKind::CreateCopy(Param->getLocation(), in SetParamDefaultArgument() 362 Diag(Param->getLocation(), diag::err_param_default_argument_nonfunc) in CheckExtraCXXDefaultArguments() 363 << SourceRange((*Toks)[1].getLocation(), Toks->back().getLocation()); in CheckExtraCXXDefaultArguments() 367 Diag(Param->getLocation(), diag::err_param_default_argument_nonfunc) in CheckExtraCXXDefaultArguments() 446 Diag(NewParam->getLocation(), DiagDefaultParamID) in MergeCXXFunctionDecl() 459 Diag(OldParam->getLocation(), diag::note_previous_definition) in MergeCXXFunctionDecl() 474 Diag(NewParam->getLocation(), in MergeCXXFunctionDecl() 477 Diag(Old->getLocation(), diag::note_template_prev_declaration) in MergeCXXFunctionDecl() 491 Diag(NewParam->getLocation(), diag::err_template_spec_default_arg) in MergeCXXFunctionDecl() [all …]
|
D | SemaTemplate.cpp | 342 Diag(Template->getLocation(), diag::note_previous_decl) in LookupTemplateName() 390 Diag(Found.getRepresentativeDecl()->getLocation(), in LookupTemplateName() 393 Diag(FoundOuter.getFoundDecl()->getLocation(), in LookupTemplateName() 465 Diag(PrevDecl->getLocation(), diag::note_template_param_here); in DiagnoseTemplateParameterShadow() 499 DI = SemaRef.Context.getTrivialTypeSourceInfo(T, Arg.getLocation()); in translateTemplateArgument() 518 Arg.getLocation(), in translateTemplateArgument() 780 Diag(Param->getLocation(), diag::err_template_template_parm_no_parms) in ActOnTemplateTemplateParameter() 804 Diag(DefaultArg.getLocation(), diag::err_template_arg_not_class_template) in ActOnTemplateTemplateParameter() 810 if (DiagnoseUnexpandedParameterPack(DefaultArg.getLocation(), in ActOnTemplateTemplateParameter() 999 Diag(PrevRecordDecl->getLocation(), diag::note_previous_use); in CheckClassTemplate() [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/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()
|