| /llvm-project-15.0.7/clang/lib/Tooling/Refactoring/Rename/ |
| H A D | USRFinder.cpp | 65 (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 D | PreprocessingRecord.cpp | 140 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 D | PPConditionalDirectiveRecord.cpp | 33 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 D | MacroInfo.cpp | 225 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 D | PPConditionalDirectiveRecord.h | 47 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 D | UseOverrideCheck.cpp | 61 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 D | UseTrailingReturnTypeCheck.cpp | 234 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 D | DeprecatedHeadersCheck.cpp | 69 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 D | SourceManagerTest.cpp | 121 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 D | SourceCode.cpp | 328 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 D | AffectedRangeManager.cpp | 64 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 D | RemoveUsingNamespace.cpp | 140 SM.isBeforeInTranslationUnit(D->getBeginLoc(), FirstUsingDirectiveLoc)) in apply() 174 if (SM.isBeforeInTranslationUnit(Loc, FirstUsingDirectiveLoc)) in apply()
|
| H A D | RawStringLiteral.cpp | 55 if (SM.isBeforeInTranslationUnit(*I, Cursor) || *I == Cursor) in REGISTER_TWEAK()
|
| H A D | AddUsing.cpp | 144 SM.isBeforeInTranslationUnit(MustInsertAfterLoc, Loc); in findInsertionPoint() 154 if (SM.isBeforeInTranslationUnit(Inputs.Cursor, U->getUsingLoc())) in findInsertionPoint()
|
| H A D | DefineOutline.cpp | 197 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 D | RedundantBranchConditionCheck.cpp | 39 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 D | TransProtectedScope.cpp | 194 return !SM.isBeforeInTranslationUnit(Loc, R.getBegin()) && in isInRange() 195 SM.isBeforeInTranslationUnit(Loc, R.getEnd()); in isInRange()
|
| H A D | TransAutoreleasePool.cpp | 290 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 D | InterfacesGlobalInitCheck.cpp | 47 Result.SourceManager->isBeforeInTranslationUnit( in check()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | LexicallyOrderedRecursiveASTVisitor.h | 101 if (!SM.isBeforeInTranslationUnit(Sibling->getBeginLoc(), in TraverseDeclContextHelper()
|
| /llvm-project-15.0.7/clang/include/clang/Basic/ |
| H A D | SourceManager.h | 1635 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 D | CloneDetection.cpp | 48 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 D | Lookup.cpp | 164 SM.isBeforeInTranslationUnit( in disambiguateSpellingInScope()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/refactor/ |
| H A D | InsertionPoint.cpp | 70 D.getASTContext().getSourceManager().isBeforeInTranslationUnit( in beginLoc()
|
| /llvm-project-15.0.7/clang/lib/Tooling/Syntax/ |
| H A D | Tokens.cpp | 47 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()
|