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

Declarations

tools/clang/include/clang/Basic/SourceManager.h
 1620   bool isBeforeInTranslationUnit(SourceLocation LHS, SourceLocation RHS) const;

References

tools/clang/include/clang/AST/LexicallyOrderedRecursiveASTVisitor.h
  101         if (!SM.isBeforeInTranslationUnit(Sibling->getBeginLoc(),
tools/clang/include/clang/AST/RawCommentList.h
  185     return SM.isBeforeInTranslationUnit(LHS.getBeginLoc(), RHS.getBeginLoc());
tools/clang/include/clang/Basic/SourceManager.h
 1657            (isBeforeInTranslationUnit(Start, Location) &&
 1658             isBeforeInTranslationUnit(Location, End));
 1874     return SM.isBeforeInTranslationUnit(LHS, RHS);
 1887     return SM.isBeforeInTranslationUnit(LHS.getBegin(), RHS.getBegin());
tools/clang/include/clang/Lex/PPConditionalDirectiveRecord.h
   47         return SM.isBeforeInTranslationUnit(LHS.getLoc(), RHS.getLoc());
   50         return SM.isBeforeInTranslationUnit(LHS.getLoc(), RHS);
   53         return SM.isBeforeInTranslationUnit(LHS, RHS.getLoc());
tools/clang/lib/ARCMigrate/TransAutoreleasePool.cpp
  289       if (SM.isBeforeInTranslationUnit(loc, ScopeRange.getBegin()))
  291       return SM.isBeforeInTranslationUnit(loc, ScopeRange.getEnd());
tools/clang/lib/ARCMigrate/TransProtectedScope.cpp
  193     return !SM.isBeforeInTranslationUnit(Loc, R.getBegin()) &&
  194             SM.isBeforeInTranslationUnit(Loc, R.getEnd());
tools/clang/lib/ARCMigrate/TransformActions.cpp
  510     if (!SM.isBeforeInTranslationUnit(loc, I.End))
tools/clang/lib/AST/Decl.cpp
 3349       !SM.isBeforeInTranslationUnit(RTRange.getEnd(), Boundary))
tools/clang/lib/Analysis/CloneDetection.cpp
   47       SM.isBeforeInTranslationUnit(getBeginLoc(), Other.getBeginLoc()) ||
   53       SM.isBeforeInTranslationUnit(Other.getEndLoc(), getEndLoc()) ||
tools/clang/lib/Analysis/PathDiagnostic.cpp
  289         return SM.isBeforeInTranslationUnit(XR.getBegin(), YR.getBegin());
  290       return SM.isBeforeInTranslationUnit(XR.getEnd(), YR.getEnd());
tools/clang/lib/Basic/SourceLocation.cpp
  234   return SrcMgr->isBeforeInTranslationUnit(*this, Loc);
tools/clang/lib/CodeGen/CoverageMappingGen.cpp
  672     if (SM.isBeforeInTranslationUnit(StartLoc, S->getBeginLoc()))
tools/clang/lib/Format/AffectedRangeManager.cpp
   65     if (!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(), I->getBegin()) &&
   66         !SourceMgr.isBeforeInTranslationUnit(I->getEnd(), Range.getBegin()))
tools/clang/lib/Format/Format.cpp
 1664       return SM.isBeforeInTranslationUnit(LHS->Tok.getLocation(),
tools/clang/lib/Format/WhitespaceManager.cpp
   22   return SourceMgr.isBeforeInTranslationUnit(
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp
 3611     return Context->getSourceManager().isBeforeInTranslationUnit(
 3619     return Context->getSourceManager().isBeforeInTranslationUnit(
tools/clang/lib/Lex/MacroInfo.cpp
  207         SM.isBeforeInTranslationUnit(Def.getLocation(), L))
  209               SM.isBeforeInTranslationUnit(L, Def.getUndefLocation()))
tools/clang/lib/Lex/PPConditionalDirectiveRecord.cpp
   33   if (SourceMgr.isBeforeInTranslationUnit(Range.getEnd(), low->getLoc()))
   53   if (SourceMgr.isBeforeInTranslationUnit(CondDirectiveLocs.back().getLoc(),
   70          SourceMgr.isBeforeInTranslationUnit(CondDirectiveLocs.back().getLoc(),
tools/clang/lib/Lex/PreprocessingRecord.cpp
  139   assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin()));
  171   assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin()));
  189     return SM.isBeforeInTranslationUnit(LHS, RHS);
  194     return SM.isBeforeInTranslationUnit(LHS, RHS);
  199     return SM.isBeforeInTranslationUnit(LHS, RHS);
  229     if (SourceMgr.isBeforeInTranslationUnit((*I)->getSourceRange().getEnd(),
  258             !SourceMgr.isBeforeInTranslationUnit(
  268       !SourceMgr.isBeforeInTranslationUnit(BeginLoc,
  296     if (!SourceMgr.isBeforeInTranslationUnit(BeginLoc,
tools/clang/lib/Lex/Preprocessor.cpp
  369          SourceMgr.isBeforeInTranslationUnit(BestLocation, Location))) {
tools/clang/lib/Parse/ParseObjc.cpp
 3687     if (PP.getSourceManager().isBeforeInTranslationUnit(Tok.getLocation(),
tools/clang/lib/Sema/AnalysisBasedWarnings.cpp
 1413                return SM.isBeforeInTranslationUnit(LHS.first->getBeginLoc(),
 1600     return SM.isBeforeInTranslationUnit(left.first.first, right.first.first);
tools/clang/lib/Sema/DeclSpec.cpp
 1086             S.getSourceManager().isBeforeInTranslationUnit(ExtraLocs[I],
 1248       if (S.getSourceManager().isBeforeInTranslationUnit(
tools/clang/lib/Sema/SemaOverload.cpp
10947     return S.SourceMgr.isBeforeInTranslationUnit(LLoc, RLoc);
11179     return S.SourceMgr.isBeforeInTranslationUnit(LLoc, RLoc);
tools/clang/lib/Sema/SemaType.cpp
 2819             getSourceManager().isBeforeInTranslationUnit(QualLoc, Loc))
tools/clang/lib/Serialization/ASTReader.cpp
 6010     return Reader.getSourceManager().isBeforeInTranslationUnit(LHS, RHS);
 6015     return Reader.getSourceManager().isBeforeInTranslationUnit(LHS, RHS);
 6020     return Reader.getSourceManager().isBeforeInTranslationUnit(LHS, RHS);
 6067       if (SourceMgr.isBeforeInTranslationUnit(
 6089   assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin()));
 7987     return Reader.getSourceManager().isBeforeInTranslationUnit(LHS, RHS);
 7992     return Reader.getSourceManager().isBeforeInTranslationUnit(LHS, RHS);
 7997     return Reader.getSourceManager().isBeforeInTranslationUnit(LHS, RHS);
tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
 1708     if (SM.isBeforeInTranslationUnit(SecondLoc, FirstLoc))
tools/clang/lib/Tooling/Core/Lookup.cpp
  162               SM.isBeforeInTranslationUnit(
tools/clang/lib/Tooling/Refactoring/ASTSelection.cpp
  103         SM.isBeforeInTranslationUnit(SelectionEnd.isValid() ? SelectionEnd
tools/clang/lib/Tooling/Refactoring/Rename/USRFinder.cpp
   64            (Context.getSourceManager().isBeforeInTranslationUnit(Start,
   66             Context.getSourceManager().isBeforeInTranslationUnit(Point, End));
   88         SM.isBeforeInTranslationUnit(StartLoc, Point) !=
   89             SM.isBeforeInTranslationUnit(EndLoc, Point))
tools/clang/lib/Tooling/Syntax/BuildTree.cpp
   80            Arena.sourceManager().isBeforeInTranslationUnit(First, Last));
  265     return SM.isBeforeInTranslationUnit(T.location(), L);
tools/clang/lib/Tooling/Syntax/Tokens.cpp
  297          Collector->PP.getSourceManager().isBeforeInTranslationUnit(
tools/clang/lib/Tooling/Transformer/RangeSelector.cpp
  163     if (Result.SourceManager->isBeforeInTranslationUnit(E, B)) {
tools/clang/tools/extra/clang-change-namespace/ChangeNamespace.cpp
  281   return SM.isBeforeInTranslationUnit(DeclLoc, Loc) &&
tools/clang/tools/extra/clang-move/Move.cpp
  317     if (SM.isBeforeInTranslationUnit(Full.getEnd(), Comment->getEndLoc()))
  321     if (SM.isBeforeInTranslationUnit(Comment->getBeginLoc(), Full.getBegin()))
tools/clang/tools/extra/clang-tidy/ExpandModularHeadersPPCallbacks.cpp
  135          Sources.isBeforeInTranslationUnit(CurrentToken.getLocation(), Loc)) {
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/InterfacesGlobalInitCheck.cpp
   46       Result.SourceManager->isBeforeInTranslationUnit(
tools/clang/tools/extra/clang-tidy/modernize/UseOverrideCheck.cpp
   63     if (Sources.isBeforeInTranslationUnit(Range.getEnd(), Tok.getLocation()))
  149           !Sources.isBeforeInTranslationUnit(T.getLocation(), MethodLoc)) {
  161                Sources.isBeforeInTranslationUnit(Loc, InsertLoc)) &&
  162               !Sources.isBeforeInTranslationUnit(Loc, MethodLoc))
tools/clang/tools/extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp
  220          SM.isBeforeInTranslationUnit(T.getLocation(), BeginNameF)) {
  291     if (!SM.isBeforeInTranslationUnit(Tokens[I].T.getLocation(),
  302     if (SM.isBeforeInTranslationUnit(ReturnTypeRange.getEnd(),
  342     if (SM.isBeforeInTranslationUnit(CT.T.getLocation(),
  344         SM.isBeforeInTranslationUnit(ReturnTypeCVRange.getEnd(),
tools/clang/tools/extra/clang-tidy/performance/InefficientVectorOperationCheck.cpp
  219     if (SM.isBeforeInTranslationUnit(Ref->getLocation(),
tools/clang/tools/extra/clang-tidy/readability/AvoidConstParamsInDecls.cpp
   63     if (Sources.isBeforeInTranslationUnit(Range.getEnd(), Tok.getLocation()))
tools/clang/tools/extra/clang-tidy/readability/InconsistentDeclarationParameterNameCheck.cpp
  165               return SM.isBeforeInTranslationUnit(Info1.DeclarationLocation,
tools/clang/tools/extra/clang-tidy/readability/NamespaceCommentCheck.cpp
   93     if (Sources.isBeforeInTranslationUnit(NestedNamespaceBegin,
tools/clang/tools/extra/clang-tidy/utils/LexerUtils.cpp
  107          !SM.isBeforeInTranslationUnit(Range.getEnd(), Tok.getLocation())) {
tools/clang/tools/extra/clangd/SourceCode.cpp
  449       SM.isBeforeInTranslationUnit(R1.getBegin(), R2.getBegin())
  453       SM.isBeforeInTranslationUnit(getLocForTokenEnd(R1.getEnd(), SM, LangOpts),
tools/clang/tools/extra/clangd/refactor/tweaks/DefineInline.cpp
  121     if (SM.isBeforeInTranslationUnit(DeclLoc, TargetLoc))
tools/clang/tools/extra/clangd/refactor/tweaks/RawStringLiteral.cpp
   61     if (SM.isBeforeInTranslationUnit(*I, Cursor) || *I == Cursor)
tools/clang/tools/extra/clangd/refactor/tweaks/RemoveUsingNamespace.cpp
  139         SM.isBeforeInTranslationUnit(D->getBeginLoc(), FirstUsingDirectiveLoc))
  171       if (SM.isBeforeInTranslationUnit(Loc, FirstUsingDirectiveLoc))
tools/clang/tools/extra/clangd/unittests/FindTargetTests.cpp
  542       return SM.isBeforeInTranslationUnit(L.NameLoc, R.NameLoc);
tools/clang/tools/libclang/CIndex.cpp
  113       SM.isBeforeInTranslationUnit(R1.getEnd(), R2.getBegin()))
  116       SM.isBeforeInTranslationUnit(R2.getEnd(), R1.getBegin()))
  129   if (SM.isBeforeInTranslationUnit(L, R.getBegin()))
  131   if (SM.isBeforeInTranslationUnit(R.getEnd(), L))
  996     if (SM.isBeforeInTranslationUnit(L, EndLoc)) {
 1048                return L_A != L_B ? SM.isBeforeInTranslationUnit(L_A, L_B)
 1049                                  : SM.isBeforeInTranslationUnit(A->getEndLoc(),
 6096         SrcMgr.isBeforeInTranslationUnit(StartLoc, R.getBegin()))
 7372       if (!SM.isBeforeInTranslationUnit(getTokenLoc(CurIdx),
 7382       if (!SM.isBeforeInTranslationUnit(tokLoc, macroRange.getEnd()))
 8849   if (SM.isBeforeInTranslationUnit(Tok.getLocation(), DefRange.getBegin()))
 8851   if (SM.isBeforeInTranslationUnit(DefRange.getEnd(), Tok.getLocation()))
tools/clang/unittests/Basic/SourceManagerTest.cpp
   99   EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(lsqrLoc, idLoc));
  100   EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(idLoc, rsqrLoc));
  101   EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(macroExpStartLoc, idLoc));
  102   EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(idLoc, macroExpEndLoc));
  457   EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(Macros[3].Loc, Macros[4].Loc));
  461   EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(Macros[10].Loc, Macros[11].Loc));