Home
last modified time | relevance | path

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

/external/clang/lib/Lex/
DPreprocessingRecord.cpp132 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in getPreprocessedEntitiesInRangeSlow()
164 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in findLocalPreprocessedEntitiesInRange()
182 return SM.isBeforeInTranslationUnit(LHS, RHS); in operator ()()
187 return SM.isBeforeInTranslationUnit(LHS, RHS); in operator ()()
192 return SM.isBeforeInTranslationUnit(LHS, RHS); in operator ()()
222 if (SourceMgr.isBeforeInTranslationUnit((*I)->getSourceRange().getEnd(), in findBeginLocalPreprocessedEntity()
254 !SourceMgr.isBeforeInTranslationUnit(BeginLoc, in addPreprocessedEntity()
263 !SourceMgr.isBeforeInTranslationUnit(BeginLoc, in addPreprocessedEntity()
283 if (!SourceMgr.isBeforeInTranslationUnit(BeginLoc, in addPreprocessedEntity()
436 if (SourceMgr.isBeforeInTranslationUnit(Range.getEnd(), low->getLoc())) in rangeIntersectsConditionalDirective()
[all …]
/external/clang/unittests/Basic/
DSourceManagerTest.cpp59 TEST_F(SourceManagerTest, isBeforeInTranslationUnit) { in TEST_F() argument
104 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(lsqrLoc, idLoc)); in TEST_F()
105 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(idLoc, rsqrLoc)); in TEST_F()
106 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(macroExpStartLoc, idLoc)); in TEST_F()
107 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(idLoc, macroExpEndLoc)); in TEST_F()
335 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(Macros[3].Loc, Macros[4].Loc)); in TEST_F()
339 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(Macros[7].Loc, Macros[8].Loc)); in TEST_F()
/external/clang/include/clang/Lex/
DPreprocessingRecord.h324 return SM.isBeforeInTranslationUnit(LHS.getLoc(), RHS.getLoc()); in operator()
327 return SM.isBeforeInTranslationUnit(LHS.getLoc(), RHS); in operator()
330 return SM.isBeforeInTranslationUnit(LHS, RHS.getLoc()); in operator()
/external/clang/lib/Basic/
DSourceLocation.cpp115 return SrcMgr->isBeforeInTranslationUnit(*this, Loc); in isBeforeInTranslationUnitThan()
DSourceManager.cpp1798 bool SourceManager::isBeforeInTranslationUnit(SourceLocation LHS, in isBeforeInTranslationUnit() function in SourceManager
/external/clang/include/clang/AST/
DRawCommentList.h166 return SM.isBeforeInTranslationUnit(LHS.getSourceRange().getBegin(), in operator()
/external/clang/lib/Parse/
DParseCXXInlineMethods.cpp341 assert(!PP.getSourceManager().isBeforeInTranslationUnit(origLoc, in ParseLexedMethodDeclaration()
405 assert(!PP.getSourceManager().isBeforeInTranslationUnit(origLoc, in ParseLexedMethodDef()
436 if (PP.getSourceManager().isBeforeInTranslationUnit(Tok.getLocation(), in ParseLexedMethodDef()
DParseObjc.cpp2910 if (PP.getSourceManager().isBeforeInTranslationUnit(Tok.getLocation(), in ParseLexedObjCMethodDefs()
DParseDecl.cpp953 if (PP.getSourceManager().isBeforeInTranslationUnit(Tok.getLocation(), in ParseLexedAttribute()
/external/clang/lib/ARCMigrate/
DTransAutoreleasePool.cpp290 if (SM.isBeforeInTranslationUnit(loc, ScopeRange.getBegin())) in isInScope()
292 return SM.isBeforeInTranslationUnit(loc, ScopeRange.getEnd()); in isInScope()
DTransformActions.cpp510 if (!SM.isBeforeInTranslationUnit(loc, I->End)) in addInsertion()
/external/clang/include/clang/Basic/
DSourceManager.h1320 bool isBeforeInTranslationUnit(SourceLocation LHS, SourceLocation RHS) const;
1578 return SM.isBeforeInTranslationUnit(LHS, RHS); in operator()
1591 return SM.isBeforeInTranslationUnit(LHS.getBegin(), RHS.getBegin()); in operator()
/external/clang/lib/AST/
DRawCommentList.cpp211 !SourceMgr.isBeforeInTranslationUnit( in addComment()
/external/clang/lib/StaticAnalyzer/Core/
DPathDiagnostic.cpp273 return SM.isBeforeInTranslationUnit(XR.getBegin(), YR.getBegin()); in comparePiece()
274 return SM.isBeforeInTranslationUnit(XR.getEnd(), YR.getEnd()); in comparePiece()
330 return SM.isBeforeInTranslationUnit(XDL, YDL); in compare()
/external/clang/tools/libclang/
DCIndex.cpp82 SM.isBeforeInTranslationUnit(R1.getEnd(), R2.getBegin())) in RangeCompare()
85 SM.isBeforeInTranslationUnit(R2.getEnd(), R1.getBegin())) in RangeCompare()
98 if (SM.isBeforeInTranslationUnit(L, R.getBegin())) in LocationCompare()
100 if (SM.isBeforeInTranslationUnit(R.getEnd(), L)) in LocationCompare()
891 if (SM.isBeforeInTranslationUnit(L, EndLoc)) { in addRangedDeclsInContainer()
908 return SM.isBeforeInTranslationUnit(L_A, L_B); in operator ()()
4160 SrcMgr.isBeforeInTranslationUnit(StartLoc, R.getBegin())) in getFullCursorExtent()
5118 SrcMgr.isBeforeInTranslationUnit(StartLoc, L)) in Visit()
5244 if (!SM.isBeforeInTranslationUnit(getTokenLoc(CurIdx), in visit()
5254 if (!SM.isBeforeInTranslationUnit(tokLoc, macroRange.getEnd())) in visit()
DCXCursor.cpp922 if (SM.isBeforeInTranslationUnit(Loc, Category->getLocation())) in collectOnCategoriesAfterLocation()
/external/clang/lib/Serialization/
DASTReader.cpp3496 return Reader.getSourceManager().isBeforeInTranslationUnit(LHS, RHS); in operator ()()
3501 return Reader.getSourceManager().isBeforeInTranslationUnit(LHS, RHS); in operator ()()
3506 return Reader.getSourceManager().isBeforeInTranslationUnit(LHS, RHS); in operator ()()
3549 if (SourceMgr.isBeforeInTranslationUnit(ReadSourceLocation(M, PPI->End), in findBeginPreprocessedEntity()
3601 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in findPreprocessedEntitiesInRange()
4820 return Reader.getSourceManager().isBeforeInTranslationUnit(LHS, RHS); in operator ()()
4825 return Reader.getSourceManager().isBeforeInTranslationUnit(LHS, RHS); in operator ()()
4830 return Reader.getSourceManager().isBeforeInTranslationUnit(LHS, RHS); in operator ()()
/external/clang/lib/Sema/
DAnalysisBasedWarnings.cpp991 return SM.isBeforeInTranslationUnit(left.first.first, right.first.first); in operator ()()
DSemaType.cpp1761 if (!Loc.isValid() || SM.isBeforeInTranslationUnit(ConstQualLoc, Loc)) in DiagnoseIgnoredQualifiers()
1768 if (!Loc.isValid() || SM.isBeforeInTranslationUnit(VolatileQualLoc, Loc)) in DiagnoseIgnoredQualifiers()
1775 if (!Loc.isValid() || SM.isBeforeInTranslationUnit(RestrictQualLoc, Loc)) in DiagnoseIgnoredQualifiers()
DSemaOverload.cpp8690 return S.SourceMgr.isBeforeInTranslationUnit(LLoc, RLoc); in operator ()()
/external/clang/lib/Rewrite/Frontend/
DRewriteModernObjC.cpp3683 return Context->getSourceManager().isBeforeInTranslationUnit( in IsTagDefinedInsideClass()
3691 return Context->getSourceManager().isBeforeInTranslationUnit( in IsTagDefinedInsideClass()