Home
last modified time | relevance | path

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

1234

/external/llvm-project/clang/lib/Tooling/Refactoring/Rename/
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()
/external/clang/lib/Lex/
DPreprocessingRecord.cpp129 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()
DPPConditionalDirectiveRecord.cpp35 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()
DMacroInfo.cpp204 SM.isBeforeInTranslationUnit(Def.getLocation(), L)) in findDirectiveAtLoc()
206 SM.isBeforeInTranslationUnit(L, Def.getUndefLocation())) in findDirectiveAtLoc()
/external/llvm-project/clang/lib/Lex/
DPreprocessingRecord.cpp139 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()
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()
DMacroInfo.cpp207 SM.isBeforeInTranslationUnit(Def.getLocation(), L)) in findDirectiveAtLoc()
209 SM.isBeforeInTranslationUnit(L, Def.getUndefLocation())) in findDirectiveAtLoc()
/external/clang/include/clang/Lex/
DPPConditionalDirectiveRecord.h48 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/
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()
/external/clang/unittests/Basic/
DSourceManagerTest.cpp71 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/
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()
DUseTrailingReturnTypeCheck.cpp228 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/
DSourceManagerTest.cpp54 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/
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()
/external/clang/lib/Format/
DAffectedRangeManager.cpp65 if (!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(), I->getBegin()) && in affectsCharSourceRange()
66 !SourceMgr.isBeforeInTranslationUnit(I->getEnd(), Range.getBegin())) in affectsCharSourceRange()
/external/llvm-project/clang/lib/Format/
DAffectedRangeManager.cpp65 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/
DRemoveUsingNamespace.cpp143 SM.isBeforeInTranslationUnit(D->getBeginLoc(), FirstUsingDirectiveLoc)) in apply()
175 if (SM.isBeforeInTranslationUnit(Loc, FirstUsingDirectiveLoc)) in apply()
DRawStringLiteral.cpp63 if (SM.isBeforeInTranslationUnit(*I, Cursor) || *I == Cursor) in REGISTER_TWEAK()
DAddUsing.cpp142 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/
DInterfacesGlobalInitCheck.cpp47 Result.SourceManager->isBeforeInTranslationUnit( in check()
/external/clang/lib/ARCMigrate/
DTransProtectedScope.cpp193 return !SM.isBeforeInTranslationUnit(Loc, R.getBegin()) && in isInRange()
194 SM.isBeforeInTranslationUnit(Loc, R.getEnd()); in isInRange()
/external/llvm-project/clang/lib/ARCMigrate/
DTransProtectedScope.cpp194 return !SM.isBeforeInTranslationUnit(Loc, R.getBegin()) && in isInRange()
195 SM.isBeforeInTranslationUnit(Loc, R.getEnd()); in isInRange()
/external/llvm-project/clang/include/clang/AST/
DLexicallyOrderedRecursiveASTVisitor.h101 if (!SM.isBeforeInTranslationUnit(Sibling->getBeginLoc(), in TraverseDeclContextHelper()
/external/clang/lib/Basic/
DSourceLocation.cpp123 return SrcMgr->isBeforeInTranslationUnit(*this, Loc); in isBeforeInTranslationUnitThan()
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DAvoidConstParamsInDecls.cpp63 if (Sources.isBeforeInTranslationUnit(Range.getEnd(), Tok.getLocation())) in ConstTok()

1234