/external/llvm-project/clang/lib/Tooling/Refactoring/Rename/ |
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()
|
/external/clang/lib/Lex/ |
D | PreprocessingRecord.cpp | 129 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in getPreprocessedEntitiesInRangeSlow() 161 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in findLocalPreprocessedEntitiesInRange() 179 return SM.isBeforeInTranslationUnit(LHS, RHS); in operator ()() 184 return SM.isBeforeInTranslationUnit(LHS, RHS); in operator ()() 189 return SM.isBeforeInTranslationUnit(LHS, RHS); in operator ()() 219 if (SourceMgr.isBeforeInTranslationUnit((*I)->getSourceRange().getEnd(), in findBeginLocalPreprocessedEntity() 251 !SourceMgr.isBeforeInTranslationUnit( in addPreprocessedEntity() 261 !SourceMgr.isBeforeInTranslationUnit(BeginLoc, in addPreprocessedEntity() 289 if (!SourceMgr.isBeforeInTranslationUnit(BeginLoc, in addPreprocessedEntity()
|
D | PPConditionalDirectiveRecord.cpp | 35 if (SourceMgr.isBeforeInTranslationUnit(Range.getEnd(), low->getLoc())) in rangeIntersectsConditionalDirective() 55 if (SourceMgr.isBeforeInTranslationUnit(CondDirectiveLocs.back().getLoc(), in findConditionalDirectiveRegionLoc() 73 SourceMgr.isBeforeInTranslationUnit(CondDirectiveLocs.back().getLoc(), in addCondDirectiveLoc()
|
D | MacroInfo.cpp | 204 SM.isBeforeInTranslationUnit(Def.getLocation(), L)) in findDirectiveAtLoc() 206 SM.isBeforeInTranslationUnit(L, Def.getUndefLocation())) in findDirectiveAtLoc()
|
/external/llvm-project/clang/lib/Lex/ |
D | PreprocessingRecord.cpp | 139 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in getPreprocessedEntitiesInRangeSlow() 171 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in findLocalPreprocessedEntitiesInRange() 189 return SM.isBeforeInTranslationUnit(LHS, RHS); in operator ()() 194 return SM.isBeforeInTranslationUnit(LHS, RHS); in operator ()() 199 return SM.isBeforeInTranslationUnit(LHS, RHS); in operator ()() 229 if (SourceMgr.isBeforeInTranslationUnit((*I)->getSourceRange().getEnd(), in findBeginLocalPreprocessedEntity() 258 !SourceMgr.isBeforeInTranslationUnit( in addPreprocessedEntity() 268 !SourceMgr.isBeforeInTranslationUnit(BeginLoc, in addPreprocessedEntity() 296 if (!SourceMgr.isBeforeInTranslationUnit(BeginLoc, in addPreprocessedEntity()
|
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()
|
D | MacroInfo.cpp | 207 SM.isBeforeInTranslationUnit(Def.getLocation(), L)) in findDirectiveAtLoc() 209 SM.isBeforeInTranslationUnit(L, Def.getUndefLocation())) in findDirectiveAtLoc()
|
/external/clang/include/clang/Lex/ |
D | PPConditionalDirectiveRecord.h | 48 return SM.isBeforeInTranslationUnit(LHS.getLoc(), RHS.getLoc()); in operator() 51 return SM.isBeforeInTranslationUnit(LHS.getLoc(), RHS); in operator() 54 return SM.isBeforeInTranslationUnit(LHS, RHS.getLoc()); in operator()
|
/external/llvm-project/clang/include/clang/Lex/ |
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()
|
/external/clang/unittests/Basic/ |
D | SourceManagerTest.cpp | 71 TEST_F(SourceManagerTest, isBeforeInTranslationUnit) { in TEST_F() argument 118 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(lsqrLoc, idLoc)); in TEST_F() 119 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(idLoc, rsqrLoc)); in TEST_F() 120 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(macroExpStartLoc, idLoc)); in TEST_F() 121 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(idLoc, macroExpEndLoc)); in TEST_F() 357 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(Macros[3].Loc, Macros[4].Loc)); in TEST_F() 361 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(Macros[7].Loc, Macros[8].Loc)); in TEST_F()
|
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/ |
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()
|
D | UseTrailingReturnTypeCheck.cpp | 228 SM.isBeforeInTranslationUnit(T.getLocation(), BeginNameF)) { in classifyTokensBeforeFunctionName() 305 SM.isBeforeInTranslationUnit(T.getLocation(), BeginNameF)) { in findReturnTypeAndCVSourceRange() 328 if (!SM.isBeforeInTranslationUnit(Tokens[I].T.getLocation(), in findReturnTypeAndCVSourceRange() 339 if (SM.isBeforeInTranslationUnit(ReturnTypeRange.getEnd(), in findReturnTypeAndCVSourceRange() 379 if (SM.isBeforeInTranslationUnit(CT.T.getLocation(), in keepSpecifiers() 381 SM.isBeforeInTranslationUnit(ReturnTypeCVRange.getEnd(), in keepSpecifiers()
|
/external/llvm-project/clang/unittests/Basic/ |
D | SourceManagerTest.cpp | 54 TEST_F(SourceManagerTest, isBeforeInTranslationUnit) { in TEST_F() argument 101 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(lsqrLoc, idLoc)); in TEST_F() 102 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(idLoc, rsqrLoc)); in TEST_F() 103 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(macroExpStartLoc, idLoc)); in TEST_F() 104 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(idLoc, macroExpEndLoc)); in TEST_F() 487 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(Macros[3].Loc, Macros[4].Loc)); in TEST_F() 491 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(Macros[10].Loc, Macros[11].Loc)); in TEST_F()
|
/external/llvm-project/clang/lib/Tooling/Transformer/ |
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()
|
/external/clang/lib/Format/ |
D | AffectedRangeManager.cpp | 65 if (!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(), I->getBegin()) && in affectsCharSourceRange() 66 !SourceMgr.isBeforeInTranslationUnit(I->getEnd(), Range.getBegin())) in affectsCharSourceRange()
|
/external/llvm-project/clang/lib/Format/ |
D | AffectedRangeManager.cpp | 65 if (!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(), I->getBegin()) && in affectsCharSourceRange() 66 !SourceMgr.isBeforeInTranslationUnit(I->getEnd(), Range.getBegin())) in affectsCharSourceRange()
|
/external/llvm-project/clang-tools-extra/clangd/refactor/tweaks/ |
D | RemoveUsingNamespace.cpp | 143 SM.isBeforeInTranslationUnit(D->getBeginLoc(), FirstUsingDirectiveLoc)) in apply() 175 if (SM.isBeforeInTranslationUnit(Loc, FirstUsingDirectiveLoc)) in apply()
|
D | RawStringLiteral.cpp | 63 if (SM.isBeforeInTranslationUnit(*I, Cursor) || *I == Cursor) in REGISTER_TWEAK()
|
D | AddUsing.cpp | 142 SM.isBeforeInTranslationUnit(MustInsertAfterLoc, Loc); in findInsertionPoint() 152 if (SM.isBeforeInTranslationUnit(Inputs.Cursor, U->getUsingLoc())) in findInsertionPoint()
|
/external/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
D | InterfacesGlobalInitCheck.cpp | 47 Result.SourceManager->isBeforeInTranslationUnit( in check()
|
/external/clang/lib/ARCMigrate/ |
D | TransProtectedScope.cpp | 193 return !SM.isBeforeInTranslationUnit(Loc, R.getBegin()) && in isInRange() 194 SM.isBeforeInTranslationUnit(Loc, R.getEnd()); in isInRange()
|
/external/llvm-project/clang/lib/ARCMigrate/ |
D | TransProtectedScope.cpp | 194 return !SM.isBeforeInTranslationUnit(Loc, R.getBegin()) && in isInRange() 195 SM.isBeforeInTranslationUnit(Loc, R.getEnd()); in isInRange()
|
/external/llvm-project/clang/include/clang/AST/ |
D | LexicallyOrderedRecursiveASTVisitor.h | 101 if (!SM.isBeforeInTranslationUnit(Sibling->getBeginLoc(), in TraverseDeclContextHelper()
|
/external/clang/lib/Basic/ |
D | SourceLocation.cpp | 123 return SrcMgr->isBeforeInTranslationUnit(*this, Loc); in isBeforeInTranslationUnitThan()
|
/external/llvm-project/clang-tools-extra/clang-tidy/readability/ |
D | AvoidConstParamsInDecls.cpp | 63 if (Sources.isBeforeInTranslationUnit(Range.getEnd(), Tok.getLocation())) in ConstTok()
|