| /freebsd/contrib/llvm-project/clang/lib/Parse/ |
| H A D | ParsePragma.cpp | 115 PP.Diag(Tok.getLocation(), diag::warn_pragma_fp_ignored) in HandlePragma() 127 Toks[0].setLocation(Tok.getLocation()); in HandlePragma() 128 Toks[0].setAnnotationEndLoc(Tok.getLocation()); in HandlePragma() 151 Toks[0].setLocation(Tok.getLocation()); in HandlePragma() 152 Toks[0].setAnnotationEndLoc(Tok.getLocation()); in HandlePragma() 310 PP.Diag(FirstToken.getLocation(), diag::warn_pragma_fp_ignored) in HandlePragma() 318 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_lparen) in HandlePragma() 324 PP.Diag(Tok.getLocation(), diag::warn_pragma_ms_fenv_access); in HandlePragma() 336 PP.Diag(Tok.getLocation(), diag::warn_pragma_ms_fenv_access); in HandlePragma() 340 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_rparen) in HandlePragma() [all …]
|
| H A D | ParseHLSL.cpp | 38 P.Diag(D->getLocation(), diag::err_invalid_declaration_in_hlsl_buffer) in validateDeclsInsideHLSLBuffer() 45 P.Diag(D->getLocation(), diag::err_invalid_declaration_in_hlsl_buffer) in validateDeclsInsideHLSLBuffer() 140 Diag(Tok.getLocation(), diag::err_expected_semantic_identifier); in ParseHLSLAnnotations() 146 *EndLoc = Tok.getLocation(); in ParseHLSLAnnotations() 158 Diag(Tok.getLocation(), diag::err_expected) << tok::identifier; in ParseHLSLAnnotations() 163 SourceLocation SlotLoc = Tok.getLocation(); in ParseHLSLAnnotations() 168 Diag(Tok.getLocation(), diag::err_expected) << tok::numeric_constant; in ParseHLSLAnnotations() 179 Diag(Tok.getLocation(), diag::err_expected) << tok::identifier; in ParseHLSLAnnotations() 184 SourceLocation SpaceLoc = Tok.getLocation(); in ParseHLSLAnnotations() 206 Diag(Tok.getLocation(), diag::err_expected) << tok::identifier; in ParseHLSLAnnotations() [all …]
|
| H A D | ParseTemplate.cpp | 94 Diag(Tok.getLocation(), diag::err_expected_template); in ParseTemplateDeclarationOrSpecialization() 167 Diag(Tok.getLocation(), diag::err_templated_invalid_declaration) in ParseDeclarationAfterTemplate() 243 Diag(Tok.getLocation(), diag::err_concept_legacy_bool_keyword) << in ParseConceptDefinition() 292 Diag(Tok.getLocation(), diag::err_expected) << tok::equal; in ParseConceptDefinition() 307 DeclEnd = Tok.getLocation(); in ParseConceptDefinition() 324 Diag(Tok.getLocation(), diag::err_expected_less_after) << "template"; in ParseTemplateParameters() 343 RAngleLoc = Tok.getLocation(); in ParseTemplateParameters() 344 Tok.setLocation(Tok.getLocation().getLocWithOffset(1)); in ParseTemplateParameters() 346 Diag(Tok.getLocation(), diag::err_expected) << tok::greater; in ParseTemplateParameters() 377 Diag(Tok.getLocation(), diag::err_expected_comma_greater); in ParseTemplateParameterList() [all …]
|
| H A D | ParseOpenMP.cpp | 84 SourceLocation Loc = Tok.getLocation(); in parseOpenMPDirectiveKind() 148 P.Diag(Tok.getLocation(), diag::err_omp_expected_reduction_identifier); in parseOpenMPReductionId() 184 Diag(Tok.getLocation(), diag::err_expected_type); in ParseOpenMPDeclareReductionDirective() 216 Diag(Tok.getLocation(), diag::err_expected_type); in ParseOpenMPDeclareReductionDirective() 235 Diag(Tok.getLocation(), diag::err_expected_expression); in ParseOpenMPDeclareReductionDirective() 255 ParseExpression().get(), D->getLocation(), /*DiscardedValue*/ false); in ParseOpenMPDeclareReductionDirective() 273 Diag(Tok.getLocation(), diag::err_expected) << "'initializer'"; in ParseOpenMPDeclareReductionDirective() 299 ParseAssignmentExpression().get(), D->getLocation(), in ParseOpenMPDeclareReductionDirective() 341 PreferredType.enterVariableInit(Tok.getLocation(), OmpPrivParm); in ParseOpenMPReductionInitializerForDecl() 363 OmpPrivParm->getLocation(), Exprs, LParLoc, /*Braced=*/false); in ParseOpenMPReductionInitializerForDecl() [all …]
|
| H A D | ParseStmt.cpp | 212 SourceLocation DeclStart = Tok.getLocation(), DeclEnd; in ParseStatementOrDeclarationAfterAttributes() 254 GNUAttributeLoc = Tok.getLocation(); in ParseStatementOrDeclarationAfterAttributes() 518 ExprStatementTokLoc = Tok.getLocation(); in ParseExprStatement() 537 << FixItHint::CreateInsertion(OldToken.getLocation(), "case "); in ParseExprStatement() 741 IdentTok.getLocation()); in ParseLabeledStatement() 745 return Actions.ActOnLabelStmt(IdentTok.getLocation(), LD, ColonLoc, in ParseLabeledStatement() 960 StackHandler.runWithSufficientStackSpace(Tok.getLocation(), [&, this]() { in ParseCompoundStatement() 1049 SourceLocation StartLoc = Tok.getLocation(); in ConsumeNullStmt() 1053 Tok.getLocation().isValid() && !Tok.getLocation().isMacroID()) { in ConsumeNullStmt() 1054 EndLoc = Tok.getLocation(); in ConsumeNullStmt() [all …]
|
| H A D | ParseExprCXX.cpp | 51 SourceLocation FirstLoc = SM.getSpellingLoc(First.getLocation()); in areTokensAdjacent() 53 return FirstEnd == SM.getSpellingLoc(Second.getLocation()); in areTokensAdjacent() 65 Range.setBegin(DigraphToken.getLocation()); in FixDigraph() 66 Range.setEnd(ColonToken.getLocation()); in FixDigraph() 67 P.Diag(DigraphToken.getLocation(), diag::err_missing_whitespace_digraph) in FixDigraph() 73 ColonToken.setLocation(ColonToken.getLocation().getLocWithOffset(-1)); in FixDigraph() 96 TemplateName.setIdentifier(&II, Tok.getLocation()); in CheckForTemplateAndDigraph() 159 Diag(Tok.getLocation(), diag::err_expected_coloncolon_after_super); in ParseOptionalCXXScopeSpecifier() 169 SourceLocation DeclLoc = Tok.getLocation(); in ParseOptionalCXXScopeSpecifier() 191 SourceLocation Start = Tok.getLocation(); in ParseOptionalCXXScopeSpecifier() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaSYCL.cpp | 70 DiagIfDeviceCode(FD->getLocation(), in deepTypeCheckForDevice() 74 DiagIfDeviceCode(D->getLocation(), diag::note_declared_at); in deepTypeCheckForDevice() 105 DiagIfDeviceCode(History[Index]->getLocation(), in deepTypeCheckForDevice() 175 Diag(FT->getLocation(), diag::warn_sycl_kernel_num_of_template_params); in handleKernelAttr() 183 Diag(FT->getLocation(), in handleKernelAttr() 191 Diag(FT->getLocation(), diag::warn_sycl_kernel_num_of_function_params); in handleKernelAttr() 198 Diag(FT->getLocation(), diag::warn_sycl_kernel_return_type); in handleKernelAttr() 224 Loc = TT->getDecl()->getLocation(); in SourceLocationForUserDeclaredType() 226 Loc = ObjCIT->getDecl()->getLocation(); in SourceLocationForUserDeclaredType() 264 Diag(SAI->getLocation(), diag::err_sycl_entry_point_invalid_redeclaration) in CheckSYCLEntryPointFunctionDecl() [all …]
|
| H A D | SemaObjCProperty.cpp | 96 S.Diag(property->getLocation(), in checkPropertyDeclWithOwnership() 329 Loc = Tok.getLocation(); in LocPropertyAttribute() 399 S.Diag(NewProperty->getLocation(), diag::warn_property_attribute) in checkAtomicPropertyMismatch() 402 S.Diag(OldProperty->getLocation(), diag::note_property_declare); in checkAtomicPropertyMismatch() 420 Diag(CDecl->getLocation(), diag::err_continuation_class); in HandlePropertyInClassExtension() 436 Diag(PIDecl->getLocation(), diag::note_property_declare); in HandlePropertyInClassExtension() 458 Diag(PIDecl->getLocation(), diag::note_property_declare); in HandlePropertyInClassExtension() 468 Diag(PIDecl->getLocation(), diag::note_property_declare); in HandlePropertyInClassExtension() 484 Diag(PIDecl->getLocation(), diag::note_property_declare); in HandlePropertyInClassExtension() 498 Diag(PIDecl->getLocation(), diag::note_property_declare); in HandlePropertyInClassExtension() [all …]
|
| H A D | SemaAVR.cpp | 25 Diag(D->getLocation(), diag::warn_attribute_wrong_decl_type) in handleInterruptAttr() 35 Diag(D->getLocation(), diag::warn_interrupt_signal_attribute_invalid) in handleInterruptAttr() 40 Diag(D->getLocation(), diag::warn_interrupt_signal_attribute_invalid) in handleInterruptAttr() 50 Diag(D->getLocation(), diag::warn_attribute_wrong_decl_type) in handleSignalAttr() 60 Diag(D->getLocation(), diag::warn_interrupt_signal_attribute_invalid) in handleSignalAttr() 65 Diag(D->getLocation(), diag::warn_interrupt_signal_attribute_invalid) in handleSignalAttr()
|
| H A D | SemaDecl.cpp | 159 MarkAnyDeclReferenced(TD->getLocation(), TD, /*OdrUse=*/false); in getTypeDeclType() 501 RealRes->getLocation() < IIDecl->getLocation()) { in getTypeName() 863 SemaRef.Diag((*I)->getLocation(), diag::note_decl_hiding_tag_type) in isTagTypeWithMissingTag() 1168 MarkAnyDeclReferenced(Type->getLocation(), Type, /*OdrUse=*/false); in ClassifyName() 1658 Diag(New->getLocation(), diag::err_mismatched_owning_module) in CheckRedeclarationModuleOwnership() 1664 Diag(Old->getLocation(), diag::note_previous_declaration); in CheckRedeclarationModuleOwnership() 1713 Diag(New->getLocation(), diag::err_redeclaration_non_exported) << New << S; in CheckRedeclarationExported() 1714 Diag(Old->getLocation(), diag::note_previous_declaration); in CheckRedeclarationExported() 1871 if (FD->isInlined() && !isMainFileLoc(*this, FD->getLocation())) in ShouldWarnIfUnusedFileScopedDecl() 1882 if (!isMainFileLoc(*this, VD->getLocation())) in ShouldWarnIfUnusedFileScopedDecl() [all …]
|
| H A D | SemaDeclObjC.cpp | 99 SourceLocation loc = method->getLocation(); in checkInitMethod() 121 S.Diag(NewD->getLocation(), diag::warn_overriding_method_missing_noescape); in diagnoseNoescape() 122 S.Diag(OldD->getLocation(), diag::note_overridden_marked_noescape); in diagnoseNoescape() 135 S.Diag(CD->getLocation(), diag::note_cat_conform_to_noescape_prot) in diagnoseNoescape() 167 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride() 173 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride() 180 Diag(Overridden->getLocation(), in CheckObjCMethodOverride() 185 Diag(Overridden->getLocation(), in CheckObjCMethodOverride() 191 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride() 196 Diag(Overridden->getLocation(), diag::note_previous_decl) << "method"; in CheckObjCMethodOverride() [all …]
|
| H A D | SemaDeclCXX.cpp | 173 return S.Diag(LC.getLocation(), diag::err_lambda_capture_default_arg); in VisitLambdaExpr() 282 if (RequireCompleteType(Param->getLocation(), Param->getType(), in ConvertParamDefaultArgument() 294 InitializationKind Kind = InitializationKind::CreateCopy(Param->getLocation(), in ConvertParamDefaultArgument() 428 SR = SourceRange((*Toks)[1].getLocation(), in CheckExtraCXXDefaultArguments() 429 Toks->back().getLocation()); in CheckExtraCXXDefaultArguments() 432 Diag(Param->getLocation(), diag::err_param_default_argument_nonfunc) in CheckExtraCXXDefaultArguments() 435 Diag(Param->getLocation(), diag::err_param_default_argument_nonfunc) in CheckExtraCXXDefaultArguments() 553 Diag(NewParam->getLocation(), DiagDefaultParamID) in MergeCXXFunctionDecl() 564 Diag(OldParam->getLocation(), diag::note_previous_definition) in MergeCXXFunctionDecl() 587 Diag(NewParam->getLocation(), in MergeCXXFunctionDecl() [all …]
|
| H A D | SemaTemplateInstantiateDecl.cpp | 104 Aligned->getLocation(), DeclarationName())) { in instantiateDependentAlignedAttr() 106 Aligned->getLocation(), in instantiateDependentAlignedAttr() 134 SourceLocation EllipsisLoc = Aligned->getLocation(); in instantiateDependentAlignedAttr() 191 S.getASTContext().UnsignedLongLongTy, Align->getLocation()); in instantiateDependentAllocAlignAttr() 259 S.Diag(A->getLocation(), diag::err_attr_cond_never_constant_expr) << A; in instantiateDependentFunctionAttrCondition() 506 New->getLocation()); in instantiateOMPDeclareVariantAttr() 516 New->getLocation(), SubstFD, /* Recursive */ true, in instantiateOMPDeclareVariantAttr() 522 /* NameLoc */ SubstFD->getLocation(), in instantiateOMPDeclareVariantAttr() 984 (void)CheckCXXDefaultArgExpr(Attr->getLocation(), Ctor, in InstantiateDefaultCtorDefaultArgs() 1053 LabelDecl *Inst = LabelDecl::Create(SemaRef.Context, Owner, D->getLocation(), in VisitLabelDecl() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | CommentParser.cpp | 64 Pos.BufferStartLoc = Tok.getLocation(); in setupBuffer() 401 Arg.getLocation(), in parseParamCommandArgs() 407 Arg.getLocation(), in parseParamCommandArgs() 417 Arg.getLocation(), in parseTParamCommandArgs() 430 SourceRange(Arg.getLocation(), Arg.getEndLocation()), Arg.getText()}; in parseCommandArgs() 447 SourceRange(Arg.getLocation(), Arg.getEndLocation()), Arg.getText()}; in parseThrowCommandArgs() 465 SourceRange(Arg.getLocation(), Arg.getEndLocation()), Arg.getText()}; in parseParCommandArgs() 482 PC = S.actOnParamCommandStart(Tok.getLocation(), in parseBlockCommand() 487 TPC = S.actOnTParamCommandStart(Tok.getLocation(), in parseBlockCommand() 492 BC = S.actOnBlockCommandStart(Tok.getLocation(), in parseBlockCommand() [all …]
|
| H A D | ODRDiagsEmitter.cpp | 81 return Diags.Report(FirstMethod->getLocation(), in diagnoseSubMismatchMethodParameters() 91 return Diags.Report(SecondMethod->getLocation(), in diagnoseSubMismatchMethodParameters() 159 return Diag(FirstField->getLocation(), diag::err_module_odr_violation_field) in diagnoseSubMismatchField() 165 return Diag(SecondField->getLocation(), in diagnoseSubMismatchField() 257 return Diag(FirstTD->getLocation(), diag::err_module_odr_violation_typedef) in diagnoseSubMismatchTypedef() 263 return Diag(SecondTD->getLocation(), in diagnoseSubMismatchTypedef() 301 return Diag(FirstVD->getLocation(), diag::err_module_odr_violation_variable) in diagnoseSubMismatchVar() 306 return Diag(SecondVD->getLocation(), in diagnoseSubMismatchVar() 391 DiagRefProtocolError(FirstContainer->getLocation(), in diagnoseSubMismatchProtocols() 394 DiagRefProtocolNote(SecondContainer->getLocation(), in diagnoseSubMismatchProtocols() [all …]
|
| H A D | CommentSema.cpp | 90 Diag(Command->getLocation(), in actOnParamCommandStart() 125 Diag(Comment->getLocation(), diag::warn_doc_function_method_decl_mismatch) in checkFunctionDeclVerbatimLine() 168 Diag(Comment->getLocation(), diag::warn_doc_api_container_decl_mismatch) in checkContainerDeclVerbatimLine() 217 Diag(Comment->getLocation(), diag::warn_doc_container_decl_mismatch) in checkContainerDecl() 292 Diag(Command->getLocation(), in actOnTParamCommandStart() 326 Diag(PrevCommand->getLocation(), diag::note_doc_tparam_previous) in actOnTParamCommandParamNameArg() 457 Diag(HET->getLocation(), diag::warn_doc_html_end_forbidden) in actOnHTMLEndTag() 473 Diag(HET->getLocation(), diag::warn_doc_html_end_unbalanced) in actOnHTMLEndTag() 494 HST->getLocation(), in actOnHTMLEndTag() 498 HET->getLocation(), in actOnHTMLEndTag() [all …]
|
| H A D | ASTStructuralEquivalence.cpp | 475 Context.Diag2(DiagnoseDecl->getLocation(), in CheckStructurallyEquivalentAttributes() 1561 Owner2->getLocation(), in IsStructurallyEquivalent() 1564 Context.Diag2(Field2->getLocation(), diag::note_odr_field_name) in IsStructurallyEquivalent() 1566 Context.Diag1(Field1->getLocation(), diag::note_odr_field_name) in IsStructurallyEquivalent() 1576 Owner2->getLocation(), in IsStructurallyEquivalent() 1579 Context.Diag2(Field2->getLocation(), diag::note_odr_field) in IsStructurallyEquivalent() 1581 Context.Diag1(Field1->getLocation(), diag::note_odr_field) in IsStructurallyEquivalent() 1603 (Context.*Diag)(FD->getLocation(), diag::note_odr_field_bit_width) in IsStructurallyEquivalent() 1606 (Context.*Diag)(FD->getLocation(), diag::note_odr_field_not_bit_field) in IsStructurallyEquivalent() 1612 Owner2->getLocation(), in IsStructurallyEquivalent() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Lex/ |
| H A D | TokenLexer.cpp | 49 ExpandLocStart = Tok.getLocation(); in Init() 65 assert(Tokens[0].getLocation().isValid()); in Init() 66 assert((Tokens[0].getLocation().isFileID() || Tokens[0].is(tok::comment)) && in Init() 74 MacroDefStart = SM.getExpansionLoc(Tokens[0].getLocation()); in Init() 166 PP.Diag(ResultToks.back().getLocation(), diag::ext_paste_comma); in MaybeRemoveCommaBeforeVaArgs() 272 VCtx.sawVAOptFollowedByOpeningParens(CurTok.getLocation(), in ExpandFunctionArguments() 292 VCtx.sawOpeningParen(Tokens[I].getLocation()); in ExpandFunctionArguments() 324 /*ClosingParenLoc*/ Tokens[I].getLocation()); in ExpandFunctionArguments() 383 getExpansionLocForMacroDefLoc(CurTok.getLocation()); in ExpandFunctionArguments() 385 getExpansionLocForMacroDefLoc(Tokens[I+1].getLocation()); in ExpandFunctionArguments() [all …]
|
| H A D | ModuleMapFile.cpp | 80 SourceLocation getLocation() const { in getLocation() function 128 SourceLocation getLocation() const { return Tok.getLocation(); }; in getLocation() function 163 auto Loc = SM.getDecomposedLoc(Parser.getLocation()); in parseModuleMap() 221 Diags.Report(Tok.getLocation(), diag::err_mmap_expected_module); in parseTopLevelDecls() 273 Diags.Report(Tok.getLocation(), diag::err_mmap_expected_module); in parseModuleDecl() 320 Diags.Report(Tok.getLocation(), diag::err_mmap_expected_lbrace) in parseModuleDecl() 339 Diags.Report(Tok.getLocation(), diag::err_mmap_config_macro_submodule); in parseModuleDecl() 363 Diags.Report(Tok.getLocation(), diag::err_mmap_submodule_export_as); in parseModuleDecl() 412 Diags.Report(Tok.getLocation(), diag::err_mmap_expected_member); in parseModuleDecl() 423 Diags.Report(Tok.getLocation(), diag::err_mmap_expected_rbrace); in parseModuleDecl() [all …]
|
| H A D | PPDirectives.cpp | 89 Res.setBegin(Tmp.getLocation()); in DiscardUntilEndOfDirective() 94 Res.setEnd(Tmp.getLocation()); in DiscardUntilEndOfDirective() 370 SourceLocation MacroNameLoc = MacroNameTok.getLocation(); in CheckMacroName() 459 return Tmp.getLocation(); in CheckEndOfDirective() 468 Hint = FixItHint::CreateInsertion(Tmp.getLocation(),"//"); in CheckEndOfDirective() 487 assert(Tok.getLocation().isFileID()); in SuggestTypoedDirective() 489 Tok.getLocation(), in SuggestTypoedDirective() 490 Tok.getLocation().getLocWithOffset(Directive.size())); in SuggestTypoedDirective() 626 assert(CurLexer->getSourceLocation(Hashptr) == Tok.getLocation()); in SkipExcludedConditionalBlock() 684 CurPPLexer->pushConditionalLevel(Tok.getLocation(), /*wasskipping*/true, in SkipExcludedConditionalBlock() [all …]
|
| H A D | PPMacroExpansion.cpp | 231 IsSystemMacro &= SourceMgr.isInSystemHeader(DMD->getLocation()); in updateModuleMacroInfo() 437 Callbacks->MacroExpands(Identifier, M, Identifier.getLocation(), in HandleMacroExpandedIdentifier() 450 SourceLocation ExpansionEnd = Identifier.getLocation(); in HandleMacroExpandedIdentifier() 478 SourceLocation ExpandLoc = Identifier.getLocation(); in HandleMacroExpandedIdentifier() 554 SourceMgr.createExpansionLoc(Identifier.getLocation(), ExpandLoc, in HandleMacroExpandedIdentifier() 668 SourceRange(ArgStartIterator->getLocation(), in GenerateNewArgTokens() 669 PP.getLocForEndOfToken(ClosingBrace->getLocation()))); in GenerateNewArgTokens() 677 TempToken.setLocation(ArgStartIterator->getLocation()); in GenerateNewArgTokens() 687 SourceLocation Loc = PP.getLocForEndOfToken((I - 1)->getLocation()); in GenerateNewArgTokens() 693 ParenHints.push_back(SourceRange(ArgStartIterator->getLocation(), in GenerateNewArgTokens() [all …]
|
| H A D | PPExpressions.cpp | 104 SourceLocation beginLoc(PeekTok.getLocation()); in EvaluateDefined() 114 LParenLoc = PeekTok.getLocation(); in EvaluateDefined() 150 Result.setEnd(PeekTok.getLocation()); in EvaluateDefined() 154 PP.Diag(PeekTok.getLocation(), diag::err_pp_expected_after) in EvaluateDefined() 161 Result.setEnd(PeekTok.getLocation()); in EvaluateDefined() 164 Result.setEnd(PeekTok.getLocation()); in EvaluateDefined() 216 SourceRange(beginLoc, PeekTok.getLocation())); in EvaluateDefined() 268 if (DiagEngine.isIgnored(DiagID, PeekTok.getLocation())) { in EvaluateValue() 283 Result.setRange(PeekTok.getLocation()); in EvaluateValue() 304 NumericLiteralParser Literal(Spelling, PeekTok.getLocation(), in EvaluateValue() [all …]
|
| H A D | Pragma.cpp | 209 SourceLocation PragmaLoc = Tok.getLocation(); in Handle_Pragma() 259 SourceLocation RParenLoc = Tok.getLocation(); in Handle_Pragma() 286 SourceLocation TokLoc = TmpTok.getLocation(); in Handle_Pragma() 360 SourceLocation PragmaLoc = Tok.getLocation(); in HandleMicrosoft__pragma() 434 Callbacks->PragmaMark(MarkTok.getLocation(), Buffer); in HandlePragmaMark() 492 PresumedLoc PLoc = SourceMgr.getPresumedLoc(SysHeaderTok.getLocation()); in HandlePragmaSystemHeader() 500 Callbacks->FileChanged(SysHeaderTok.getLocation(), in HandlePragmaSystemHeader() 506 SourceMgr.AddLineNote(SysHeaderTok.getLocation(), PLoc.getLine() + 1, in HandlePragmaSystemHeader() 519 Diag(FilenameTok.getLocation(), diag::err_pp_expects_filename); in HandlePragmaDependency() 531 GetIncludeFilenameSpelling(FilenameTok.getLocation(), Filename); in HandlePragmaDependency() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Index/ |
| H A D | IndexDecl.cpp | 157 MethodLoc = D->getLocation(); in handleObjCMethod() 263 IndexCtx.handleReference(Ctor->getParent(), Ctor->getLocation(), in VisitFunctionDecl() 286 Guide->getLocation(), Guide, in VisitFunctionDecl() 374 return IndexCtx.handleDecl(D, D->getLocation(), SymbolRoleSet(), in VisitTagDecl() 432 return IndexCtx.handleReference(D, D->getLocation(), nullptr, in VisitObjCInterfaceDecl() 445 return IndexCtx.handleReference(D, D->getLocation(), nullptr, in VisitObjCProtocolDecl() 465 if (I->getLocation().isInvalid()) in VisitObjCImplementationDecl() 470 cast<ObjCPropertyImplDecl>(I)->getLocation().isValid()) in VisitObjCImplementationDecl() 483 TRY_TO(IndexCtx.handleReference(C, D->getLocation(), D, D, SymbolRoleSet(), in VisitObjCCategoryDecl() 489 CategoryLoc = D->getLocation(); in VisitObjCCategoryDecl() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
| H A D | RewriteMacros.cpp | 113 SourceLocation PPLoc = SM.getExpansionLoc(PPTok.getLocation()); in RewriteMacrosInInput() 132 RB.InsertTextAfter(SM.getFileOffset(RawTok.getLocation()), "//"); in RewriteMacrosInInput() 138 RB.InsertTextAfter(SM.getFileOffset(RawTok.getLocation()), "//"); in RewriteMacrosInInput() 153 unsigned RawOffs = SM.getFileOffset(RawTok.getLocation()); in RewriteMacrosInInput() 175 RawOffs = SM.getFileOffset(RawTok.getLocation()); in RewriteMacrosInInput() 198 PPLoc = SM.getExpansionLoc(PPTok.getLocation()); in RewriteMacrosInInput()
|