Home
last modified time | relevance | path

Searched refs:isBeforeInTranslationUnit (Results 1 – 25 of 63) sorted by relevance

123

/llvm-project-15.0.7/clang/lib/Tooling/Refactoring/Rename/
H A DUSRFinder.cpp65 (Context.getSourceManager().isBeforeInTranslationUnit(Start, in isPointWithin()
67 Context.getSourceManager().isBeforeInTranslationUnit(Point, End)); in isPointWithin()
89 SM.isBeforeInTranslationUnit(StartLoc, Point) != in getNamedDeclAt()
90 SM.isBeforeInTranslationUnit(EndLoc, Point)) in getNamedDeclAt()
/llvm-project-15.0.7/clang/lib/Lex/
H A DPreprocessingRecord.cpp140 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in getPreprocessedEntitiesInRangeSlow()
172 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in findLocalPreprocessedEntitiesInRange()
190 return SM.isBeforeInTranslationUnit(LHS, RHS); in operator ()()
195 return SM.isBeforeInTranslationUnit(LHS, RHS); in operator ()()
200 return SM.isBeforeInTranslationUnit(LHS, RHS); in operator ()()
230 if (SourceMgr.isBeforeInTranslationUnit((*I)->getSourceRange().getEnd(), in findBeginLocalPreprocessedEntity()
259 !SourceMgr.isBeforeInTranslationUnit( in addPreprocessedEntity()
269 !SourceMgr.isBeforeInTranslationUnit(BeginLoc, in addPreprocessedEntity()
297 if (!SourceMgr.isBeforeInTranslationUnit(BeginLoc, in addPreprocessedEntity()
H A DPPConditionalDirectiveRecord.cpp33 if (SourceMgr.isBeforeInTranslationUnit(Range.getEnd(), low->getLoc())) in rangeIntersectsConditionalDirective()
53 if (SourceMgr.isBeforeInTranslationUnit(CondDirectiveLocs.back().getLoc(), in findConditionalDirectiveRegionLoc()
70 SourceMgr.isBeforeInTranslationUnit(CondDirectiveLocs.back().getLoc(), in addCondDirectiveLoc()
H A DMacroInfo.cpp225 SM.isBeforeInTranslationUnit(Def.getLocation(), L)) in findDirectiveAtLoc()
227 SM.isBeforeInTranslationUnit(L, Def.getUndefLocation())) in findDirectiveAtLoc()
/llvm-project-15.0.7/clang/include/clang/Lex/
H A DPPConditionalDirectiveRecord.h47 return SM.isBeforeInTranslationUnit(LHS.getLoc(), RHS.getLoc()); in operator()
50 return SM.isBeforeInTranslationUnit(LHS.getLoc(), RHS); in operator()
53 return SM.isBeforeInTranslationUnit(LHS, RHS.getLoc()); in operator()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DUseOverrideCheck.cpp61 if (Sources.isBeforeInTranslationUnit(Range.getEnd(), Tok.getLocation())) in parseTokens()
149 !Sources.isBeforeInTranslationUnit(T.getLocation(), MethodLoc)) { in check()
161 Sources.isBeforeInTranslationUnit(Loc, InsertLoc)) && in check()
162 !Sources.isBeforeInTranslationUnit(Loc, MethodLoc)) in check()
H A DUseTrailingReturnTypeCheck.cpp234 SM.isBeforeInTranslationUnit(T.getLocation(), BeginNameF)) { in classifyTokensBeforeFunctionName()
306 if (!SM.isBeforeInTranslationUnit(Tokens[I].T.getLocation(), in findReturnTypeAndCVSourceRange()
317 if (SM.isBeforeInTranslationUnit(ReturnTypeRange.getEnd(), in findReturnTypeAndCVSourceRange()
357 if (SM.isBeforeInTranslationUnit(CT.T.getLocation(), in keepSpecifiers()
359 SM.isBeforeInTranslationUnit(ReturnTypeCVRange.getEnd(), in keepSpecifiers()
H A DDeprecatedHeadersCheck.cpp69 return SM.isBeforeInTranslationUnit(ExternCBlockBegin, Marker.DiagLoc) && in VisitLinkageSpecDecl()
70 SM.isBeforeInTranslationUnit(Marker.DiagLoc, ExternCBlockEnd); in VisitLinkageSpecDecl()
/llvm-project-15.0.7/clang/unittests/Basic/
H A DSourceManagerTest.cpp121 TEST_F(SourceManagerTest, isBeforeInTranslationUnit) { in TEST_F() argument
168 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(lsqrLoc, idLoc)); in TEST_F()
169 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(idLoc, rsqrLoc)); in TEST_F()
170 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(macroExpStartLoc, idLoc)); in TEST_F()
171 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(idLoc, macroExpEndLoc)); in TEST_F()
554 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(Macros[3].Loc, Macros[4].Loc)); in TEST_F()
558 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(Macros[10].Loc, Macros[11].Loc)); in TEST_F()
/llvm-project-15.0.7/clang/lib/Tooling/Transformer/
H A DSourceCode.cpp328 if (SM.isBeforeInTranslationUnit(T->getBeginLoc(), Range.getBegin())) in getAssociatedRange()
332 if (SM.isBeforeInTranslationUnit(T->getBeginLoc(), Range.getBegin())) in getAssociatedRange()
353 if (SM.isBeforeInTranslationUnit(Comment->getBeginLoc(), in getAssociatedRange()
367 !SM.isBeforeInTranslationUnit(Attr->getLocation(), Range.getBegin())) in getAssociatedRange()
/llvm-project-15.0.7/clang/lib/Format/
H A DAffectedRangeManager.cpp64 if (!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(), R.getBegin()) && in affectsCharSourceRange()
65 !SourceMgr.isBeforeInTranslationUnit(R.getEnd(), Range.getBegin())) { in affectsCharSourceRange()
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/
H A DRemoveUsingNamespace.cpp140 SM.isBeforeInTranslationUnit(D->getBeginLoc(), FirstUsingDirectiveLoc)) in apply()
174 if (SM.isBeforeInTranslationUnit(Loc, FirstUsingDirectiveLoc)) in apply()
H A DRawStringLiteral.cpp55 if (SM.isBeforeInTranslationUnit(*I, Cursor) || *I == Cursor) in REGISTER_TWEAK()
H A DAddUsing.cpp144 SM.isBeforeInTranslationUnit(MustInsertAfterLoc, Loc); in findInsertionPoint()
154 if (SM.isBeforeInTranslationUnit(Inputs.Cursor, U->getUsingLoc())) in findInsertionPoint()
H A DDefineOutline.cpp197 return SM.isBeforeInTranslationUnit( in getFunctionSourceCode()
332 return TokBuf.sourceManager().isBeforeInTranslationUnit(Tok.location(), in getDeletionRange()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DRedundantBranchConditionCheck.cpp39 SM.isBeforeInTranslationUnit(PrevS->getEndLoc(), in isChangedBefore()
41 SM.isBeforeInTranslationUnit(MutS->getEndLoc(), NextS->getBeginLoc()); in isChangedBefore()
/llvm-project-15.0.7/clang/lib/ARCMigrate/
H A DTransProtectedScope.cpp194 return !SM.isBeforeInTranslationUnit(Loc, R.getBegin()) && in isInRange()
195 SM.isBeforeInTranslationUnit(Loc, R.getEnd()); in isInRange()
H A DTransAutoreleasePool.cpp290 if (SM.isBeforeInTranslationUnit(loc, ScopeRange.getBegin())) in isInScope()
292 return SM.isBeforeInTranslationUnit(loc, ScopeRange.getEnd()); in isInScope()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DInterfacesGlobalInitCheck.cpp47 Result.SourceManager->isBeforeInTranslationUnit( in check()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DLexicallyOrderedRecursiveASTVisitor.h101 if (!SM.isBeforeInTranslationUnit(Sibling->getBeginLoc(), in TraverseDeclContextHelper()
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DSourceManager.h1635 bool isBeforeInTranslationUnit(SourceLocation LHS, SourceLocation RHS) const;
1673 (isBeforeInTranslationUnit(Start, Location) && in isPointWithin()
1674 isBeforeInTranslationUnit(Location, End)); in isPointWithin()
1904 return SM.isBeforeInTranslationUnit(LHS, RHS); in operator()
1917 return SM.isBeforeInTranslationUnit(LHS.getBegin(), RHS.getBegin()); in operator()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DCloneDetection.cpp48 SM.isBeforeInTranslationUnit(getBeginLoc(), Other.getBeginLoc()) || in contains()
54 SM.isBeforeInTranslationUnit(Other.getEndLoc(), getEndLoc()) || in contains()
/llvm-project-15.0.7/clang/lib/Tooling/Refactoring/
H A DLookup.cpp164 SM.isBeforeInTranslationUnit( in disambiguateSpellingInScope()
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/
H A DInsertionPoint.cpp70 D.getASTContext().getSourceManager().isBeforeInTranslationUnit( in beginLoc()
/llvm-project-15.0.7/clang/lib/Tooling/Syntax/
H A DTokens.cpp47 return SM.isBeforeInTranslationUnit(T.location(), R.getBegin()); in getTokensCovering()
51 return !SM.isBeforeInTranslationUnit(R.getEnd(), T.location()); in getTokensCovering()
533 assert(T1 == T2 || sourceManager().isBeforeInTranslationUnit(T1, T2)); in fileForSpelled()
696 !SM.isBeforeInTranslationUnit(LastExpansionEnd, Range.getEnd())) in MacroExpands()

123