reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/include/clang/AST/LexicallyOrderedRecursiveASTVisitor.h
  101         if (!SM.isBeforeInTranslationUnit(Sibling->getBeginLoc(),
tools/clang/include/clang/ASTMatchers/ASTMatchers.h
  240       SourceManager.getExpansionLoc(Node.getBeginLoc()));
  260   auto ExpansionLoc = SourceManager.getExpansionLoc(Node.getBeginLoc());
  286   auto ExpansionLoc = SourceManager.getExpansionLoc(Node.getBeginLoc());
tools/clang/lib/ARCMigrate/ObjCMT.cpp
 1411   commit.insertBefore(FirstFD->getBeginLoc(), PragmaString);
tools/clang/lib/AST/ASTContext.cpp
  167     return D->getBeginLoc();
  175         return D->getBeginLoc();
tools/clang/lib/AST/ASTImporter.cpp
 2461     ExpectedSLoc BeginLocOrErr = import(D->getBeginLoc());
tools/clang/lib/AST/Interp/ByteCodeEmitter.h
   59   bool bail(const Decl *D) { return bail(D->getBeginLoc()); }
tools/clang/lib/AST/Interp/ByteCodeGenError.h
   25   ByteCodeGenError(const Decl *D) : ByteCodeGenError(D->getBeginLoc()) {}
tools/clang/lib/AST/Interp/EvalEmitter.h
   61   bool bail(const Decl *D) { return bail(D->getBeginLoc()); }
tools/clang/lib/AST/Interp/Source.cpp
   21     return D->getBeginLoc();
tools/clang/lib/Analysis/AnalysisDeclContext.cpp
  508         printLocation(Out, SM, D->getBeginLoc());
  558         printSourceLocationAsJson(Out, D->getBeginLoc(), SM);
tools/clang/lib/Analysis/LiveVariables.cpp
  650       return A->getBeginLoc() < B->getBeginLoc();
  650       return A->getBeginLoc() < B->getBeginLoc();
tools/clang/lib/Analysis/PathDiagnostic.cpp
  566   return PathDiagnosticLocation(D->getBeginLoc(), SM, SingleLocK);
tools/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
 4721     emitGenericVarsProlog(CGF, D->getBeginLoc(), /*WithSPMDCheck=*/true);
tools/clang/lib/CodeGen/CodeGenModule.cpp
 5485     if (LimitedCoverage && SM.getMainFileID() != SM.getFileID(D->getBeginLoc()))
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp
  750           SourceLocation StartLoc = IFace->getBeginLoc();
  754                 StartLoc == (*DI)->getBeginLoc())
  775           SourceLocation StartLoc = Proto->getBeginLoc();
  779                 StartLoc == (*DI)->getBeginLoc())
 1060   SourceLocation startLoc = ClassDecl->getBeginLoc();
 1128   SourceLocation LocStart = CatDecl->getBeginLoc();
 1153   SourceLocation LocStart = PDecl->getBeginLoc();
 1188   SourceLocation LocStart = (*D.begin())->getBeginLoc();
 1197   SourceLocation LocStart = DG[0]->getBeginLoc();
 1338       ReplaceText(IMD->getBeginLoc(), 1, "/** ");
 1342       InsertText(IMD->getBeginLoc(), "// ");
 1346     InsertText(CID->getBeginLoc(), "// ");
 3061     Location = D->getBeginLoc();
 3885   SourceLocation LocStart = CDecl->getBeginLoc();
tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp
  682           SourceLocation StartLoc = IFace->getBeginLoc();
  686                 StartLoc == (*DI)->getBeginLoc())
  701           SourceLocation StartLoc = Proto->getBeginLoc();
  705                 StartLoc == (*DI)->getBeginLoc())
  903   SourceLocation startLoc = ClassDecl->getBeginLoc();
  967   SourceLocation LocStart = CatDecl->getBeginLoc();
  985   SourceLocation LocStart = PDecl->getBeginLoc();
 1020   SourceLocation LocStart = (*D.begin())->getBeginLoc();
 1029   SourceLocation LocStart = DG[0]->getBeginLoc();
 1168   InsertText(IMD ? IMD->getBeginLoc() : CID->getBeginLoc(), "// ");
 1168   InsertText(IMD ? IMD->getBeginLoc() : CID->getBeginLoc(), "// ");
 3095   SourceLocation LocStart = CDecl->getBeginLoc();
tools/clang/lib/Index/USRGeneration.cpp
  614       IgnoreResults || printLoc(Out, D->getBeginLoc(),
tools/clang/lib/Parse/ParseObjc.cpp
  180     Diag(Decl->getBeginLoc(), diag::note_objc_container_start) << (int)ock;
  705       Diag(CDecl->getBeginLoc(), diag::note_objc_container_start)
  787     Diag(CDecl->getBeginLoc(), diag::note_objc_container_start)
 2243       P.Diag(Dcl->getBeginLoc(), diag::note_objc_container_start)
tools/clang/lib/Sema/AnalysisBasedWarnings.cpp
  116   if (!S.getSourceManager().isInMainFile(AC.getDecl()->getBeginLoc()))
 2089   if (LogicalErrorHandler::hasActiveDiagnostics(Diags, D->getBeginLoc())) {
 2168     if (!Diags.isIgnored(diag::warn_thread_safety_beta, D->getBeginLoc()))
 2170     if (!Diags.isIgnored(diag::warn_thread_safety_verbose, D->getBeginLoc()))
 2185   if (!Diags.isIgnored(diag::warn_uninit_var, D->getBeginLoc()) ||
 2186       !Diags.isIgnored(diag::warn_sometimes_uninit_var, D->getBeginLoc()) ||
 2187       !Diags.isIgnored(diag::warn_maybe_uninit_var, D->getBeginLoc())) {
 2210       !Diags.isIgnored(diag::warn_unannotated_fallthrough, D->getBeginLoc());
 2212       diag::warn_unannotated_fallthrough_per_function, D->getBeginLoc());
 2219       !Diags.isIgnored(diag::warn_arc_repeated_use_of_weak, D->getBeginLoc()))
 2225                        D->getBeginLoc())) {
 2232   if (!Diags.isIgnored(diag::warn_throw_in_noexcept_func, D->getBeginLoc()))
 2239   if (LogicalErrorHandler::hasActiveDiagnostics(Diags, D->getBeginLoc())) {
tools/clang/lib/Sema/SemaAttr.cpp
  839   Diags.Report(PragmaAttributeCurrentTargetDecl->getBeginLoc(),
tools/clang/lib/Sema/SemaChecking.cpp
13364     DiagRuntimeBehavior(ND->getBeginLoc(), BaseExpr,
tools/clang/lib/Sema/SemaDecl.cpp
 1824         CharSourceRange::getCharRange(D->getBeginLoc(), AfterColon));
tools/clang/lib/Sema/SemaDeclAttr.cpp
  431     Sema::SemaDiagnosticBuilder DB = S.Diag(D->getBeginLoc(), DiagID);
 1074     S.Diag(D->getBeginLoc(), diag::err_attribute_only_once_per_parameter) << AL;
 1097     S.Diag(D->getBeginLoc(), diag::err_attribute_pointers_only) << AL << 1;
 4986       S.Diag(D->getBeginLoc(), diag::warn_ns_attribute_wrong_parameter_type)
 5009     S.Diag(D->getBeginLoc(), diag::warn_attribute_wrong_decl_type)
 5049       S.Diag(D->getBeginLoc(), diag::warn_ns_attribute_wrong_parameter_type)
 5062       S.Diag(D->getBeginLoc(), diag::warn_ns_attribute_wrong_return_type)
 5109     S.Diag(D->getBeginLoc(), diag::warn_ns_attribute_wrong_return_type)
 5127     S.Diag(D->getBeginLoc(), diag::warn_objc_requires_super_protocol) << Attrs
 5133     S.Diag(D->getBeginLoc(), diag::warn_objc_requires_super_protocol) << Attrs
 5145     S.Diag(D->getBeginLoc(), diag::err_objc_attr_not_id) << AL << 0;
 5172     S.Diag(D->getBeginLoc(), diag::err_objc_attr_not_id) << AL << 0;
 5185     S.Diag(D->getBeginLoc(), diag::err_objc_attr_not_id) << AL << 0;
 5259   S.Diag(D->getBeginLoc(), diag::err_attribute_wrong_decl_type)
 5590     S.Diag(D->getBeginLoc(), diag::err_anyx86_interrupt_attribute)
 6372       S.Diag(D->getBeginLoc(), diag::warn_ignored_objc_externally_retained)
 6416       S.Diag(D->getBeginLoc(),
 7718     return {"", D->getBeginLoc(), "\n"};
tools/clang/lib/Sema/SemaDeclCXX.cpp
 3401         Diag(TD->getBeginLoc(), diag::note_deduction_guide_template_access)
 3409         Diag(LastAccessSpec->getBeginLoc(), diag::note_deduction_guide_access)
tools/clang/lib/Sema/SemaExprCXX.cpp
 6777             Diag(CD->getBeginLoc(),
tools/clang/lib/Sema/SemaExprObjC.cpp
 2632           S.LookupSingleName(S.TUScope, II, Protocol->getBeginLoc(),
 3845                 S.Diag(Target->getBeginLoc(), diag::note_declared_at);
 3856             S.Diag(Target->getBeginLoc(), diag::note_declared_at);
 3915                 S.Diag(Target->getBeginLoc(), diag::note_declared_at);
 3926           S.Diag(Target->getBeginLoc(), diag::note_declared_at);
 4062         Diag(Target->getBeginLoc(), diag::note_declared_at);
 4133         Diag(RelatedClass->getBeginLoc(), diag::note_declared_at);
 4176         Diag(RelatedClass->getBeginLoc(), diag::note_declared_at);
tools/clang/lib/Sema/SemaInit.cpp
 7847         << SourceRange(Entity.getDecl()->getBeginLoc(), Args[0]->getEndLoc());
tools/clang/lib/Sema/SemaModule.cpp
   31         ExternCLoc = LSD->getBeginLoc();
   49     S.Diag(cast<Decl>(DC)->getBeginLoc(),
  700         ED->hasBraces() ? ED->getBeginLoc() : SourceLocation();
tools/clang/lib/Sema/SemaObjCProperty.cpp
 1063     PropertyDiagLoc = ClassImpDecl->getBeginLoc();
 2101           loc = impDecl->getBeginLoc();
tools/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
 1110     FriendDecl *FD = SemaRef.CheckFriendTypeDecl(D->getBeginLoc(),
tools/clang/lib/Serialization/ASTReader.cpp
10813             FirstLoc = FirstSA->getBeginLoc();
10820             SecondLoc = SecondSA->getBeginLoc();
tools/clang/lib/Serialization/ASTWriterDecl.cpp
  335   Record.AddSourceLocation(D->getBeginLoc());
  347   Record.AddSourceLocation(D->getBeginLoc());
 1190   Record.AddSourceLocation(D->getBeginLoc());
 1810   Record.AddSourceLocation(D->getBeginLoc());
 1825   Record.AddSourceLocation(D->getBeginLoc());
tools/clang/lib/StaticAnalyzer/Checkers/NullabilityChecker.cpp
  767   StringRef FilePath = SM.getFilename(SM.getSpellingLoc(Decl->getBeginLoc()));
tools/clang/lib/StaticAnalyzer/Checkers/StackAddrEscapeChecker.cpp
   91     SourceLocation L = BD->getBeginLoc();
tools/clang/lib/Tooling/Refactoring/Extract/Extract.cpp
   54   return D->getBeginLoc();
tools/clang/lib/Tooling/Refactoring/Rename/USRFinder.cpp
   85     SourceLocation StartLoc = CurrDecl->getBeginLoc();
tools/clang/lib/Tooling/Refactoring/Rename/USRLocFinder.cpp
  578     Replace(Using->getBeginLoc(), Using->getEndLoc(), "using " + NewName.str());
tools/clang/lib/Tooling/Syntax/BuildTree.cpp
   84     return getRange(D->getBeginLoc(), D->getEndLoc());
tools/clang/tools/extra/clang-change-namespace/ChangeNamespace.cpp
  279   SourceLocation DeclLoc = SM.getSpellingLoc(D->getBeginLoc());
  737   SourceLocation Start = FwdDecl->getBeginLoc();
  908     auto ExpansionLoc = Result.SourceManager->getExpansionLoc(D->getBeginLoc());
  939   SourceLocation Start = UsingDeclaration->getBeginLoc();
tools/clang/tools/extra/clang-doc/Mapper.cpp
   89   return Context.getSourceManager().getPresumedLoc(D->getBeginLoc()).getLine();
   97                                   .getPresumedLoc(D->getBeginLoc())
tools/clang/tools/extra/clang-move/Move.cpp
  115   auto ExpansionLoc = SourceManager.getExpansionLoc(Node.getBeginLoc());
  314   SourceRange Full(SM.getExpansionLoc(D->getBeginLoc()), getLocForEndOfDecl(D));
  340   auto ExpansionLoc = SM.getExpansionLoc(D->getBeginLoc());
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/AvoidGotoCheck.cpp
   21   return Node.getBeginLoc() < Node.getLabel()->getBeginLoc();
   51   diag(Goto->getLabel()->getBeginLoc(), "label defined here",
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/OwningMemoryCheck.cpp
  210     diag(Decl->getBeginLoc(), "variable declared here", DiagnosticIDs::Note)
tools/clang/tools/extra/clang-tidy/fuchsia/TrailingReturnCheck.cpp
   45     diag(D->getBeginLoc(),
tools/clang/tools/extra/clang-tidy/google/GlobalNamesInHeadersCheck.cpp
   50   if (D->getBeginLoc().isMacroID())
   55           Result.SourceManager->getExpansionLoc(D->getBeginLoc()))) {
   58             D->getBeginLoc(), *Result.SourceManager, HeaderFileExtensions))
   72   diag(D->getBeginLoc(),
tools/clang/tools/extra/clang-tidy/google/UsingNamespaceDirectiveCheck.cpp
   32   SourceLocation Loc = U->getBeginLoc();
tools/clang/tools/extra/clang-tidy/hicpp/ExceptionBaseclassCheck.cpp
   61     diag(TypeDecl->getBeginLoc(), "type defined here", DiagnosticIDs::Note);
tools/clang/tools/extra/clang-tidy/misc/DefinitionsInHeadersCheck.cpp
   24       Node.getBeginLoc(), Finder->getASTContext().getSourceManager(),
tools/clang/tools/extra/clang-tidy/misc/UnusedAliasDeclsCheck.cpp
   36         AliasDecl->getBeginLoc(),
tools/clang/tools/extra/clang-tidy/misc/UnusedUsingDeclsCheck.cpp
   92         Using->getBeginLoc(),
tools/clang/tools/extra/clang-tidy/modernize/UseNullptrCheck.cpp
  436         Loc = D->getBeginLoc();
tools/clang/tools/extra/clang-tidy/readability/IdentifierNamingCheck.cpp
  865                    << Decl->getBeginLoc().printToString(*Result.SourceManager)
tools/clang/tools/extra/clang-tidy/readability/RedundantDeclarationCheck.cpp
   67       if (Other != D && Other->getBeginLoc() == VD->getBeginLoc()) {
tools/clang/tools/extra/clangd/CodeComplete.cpp
  223         if (SM.isInMainFile(SM.getExpansionLoc(RD->getBeginLoc())))
tools/clang/tools/extra/clangd/FindSymbols.cpp
  139   SourceLocation BeginLoc = SM.getSpellingLoc(SM.getFileLoc(ND.getBeginLoc()));
tools/clang/tools/extra/clangd/XRefs.cpp
  152       return L->getBeginLoc() < R->getBeginLoc();
  152       return L->getBeginLoc() < R->getBeginLoc();
 1046   SourceLocation BeginLoc = SM.getSpellingLoc(SM.getFileLoc(ND.getBeginLoc()));
tools/clang/tools/extra/clangd/index/SymbolCollector.cpp
  306       SM.isWrittenInMainFile(SM.getExpansionLoc(ND->getBeginLoc())) &&
tools/clang/tools/extra/clangd/refactor/Rename.cpp
   84   bool DeclaredInMainFile = isInsideMainFile(RenameDecl.getBeginLoc(), SM);
tools/clang/tools/extra/clangd/refactor/tweaks/DefineInline.cpp
  255     return FTD->getBeginLoc();
tools/clang/tools/extra/clangd/refactor/tweaks/ExtractVariable.cpp
  103     if (SM.isPointWithin(ReferencedDecl->getBeginLoc(), ScopeBegin, ScopeEnd) &&
tools/clang/tools/extra/clangd/refactor/tweaks/RemoveUsingNamespace.cpp
   82       CharSourceRange::getTokenRange(D->getBeginLoc(), NextTok->getLocation()),
  139         SM.isBeforeInTranslationUnit(D->getBeginLoc(), FirstUsingDirectiveLoc))
  140       FirstUsingDirectiveLoc = D->getBeginLoc();
tools/clang/tools/extra/clangd/unittests/SymbolCollectorTests.cpp
  128     bool MainFile = isInsideMainFile(ND.getBeginLoc(), SM);
tools/clang/tools/extra/tool-template/ToolTemplate.cpp
   68     if (D->getBeginLoc().isValid()) {
   69       AtomicChange Change(*Result.SourceManager, D->getBeginLoc());
tools/clang/tools/libclang/CIndex.cpp
  993     SourceLocation L = D_next->getBeginLoc();
 1038         SubDecl->getBeginLoc().isInvalid())
 1046                SourceLocation L_A = A->getBeginLoc();
 1047                SourceLocation L_B = B->getBeginLoc();
tools/clang/unittests/Tooling/LexicallyOrderedRecursiveASTVisitorTest.cpp
   63     Match(Path, D->getBeginLoc());
tools/clang/unittests/Tooling/RecursiveASTVisitorTests/LambdaTemplateParams.cpp
   36     Match(D->getName(), D->getBeginLoc());