Home
last modified time | relevance | path

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

12

/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(BeginLoc, in addPreprocessedEntity()
260 !SourceMgr.isBeforeInTranslationUnit(BeginLoc, in addPreprocessedEntity()
288 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.cpp200 SM.isBeforeInTranslationUnit(Def.getLocation(), L)) in findDirectiveAtLoc()
202 SM.isBeforeInTranslationUnit(L, Def.getUndefLocation())) in findDirectiveAtLoc()
DPreprocessor.cpp336 SourceMgr.isBeforeInTranslationUnit(BestLocation, Location))) { in getLastMacroWithSpelling()
/external/clang/unittests/Basic/
DSourceManagerTest.cpp73 TEST_F(SourceManagerTest, isBeforeInTranslationUnit) { in TEST_F() argument
119 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(lsqrLoc, idLoc)); in TEST_F()
120 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(idLoc, rsqrLoc)); in TEST_F()
121 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(macroExpStartLoc, idLoc)); in TEST_F()
122 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(idLoc, macroExpEndLoc)); in TEST_F()
353 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(Macros[3].Loc, Macros[4].Loc)); in TEST_F()
357 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(Macros[7].Loc, Macros[8].Loc)); in TEST_F()
/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/clang/lib/ARCMigrate/
DTransProtectedScope.cpp193 return !SM.isBeforeInTranslationUnit(Loc, R.getBegin()) && in isInRange()
194 SM.isBeforeInTranslationUnit(Loc, R.getEnd()); in isInRange()
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/lib/Basic/
DSourceLocation.cpp123 return SrcMgr->isBeforeInTranslationUnit(*this, Loc); in isBeforeInTranslationUnitThan()
DSourceManager.cpp2019 bool SourceManager::isBeforeInTranslationUnit(SourceLocation LHS, in isBeforeInTranslationUnit() function in SourceManager
/external/clang/include/clang/AST/
DRawCommentList.h172 return SM.isBeforeInTranslationUnit(LHS.getLocStart(), RHS.getLocStart()); in operator()
/external/clang/lib/AST/
DRawCommentList.cpp220 !SourceMgr.isBeforeInTranslationUnit(Comments.back()->getLocStart(), in addComment()
DDecl.cpp2818 !SM.isBeforeInTranslationUnit(RTRange.getEnd(), Boundary)) in getReturnTypeSourceRange()
/external/clang/include/clang/Basic/
DSourceManager.h1431 bool isBeforeInTranslationUnit(SourceLocation LHS, SourceLocation RHS) const;
1660 return SM.isBeforeInTranslationUnit(LHS, RHS); in operator()
1673 return SM.isBeforeInTranslationUnit(LHS.getBegin(), RHS.getBegin()); in operator()
/external/clang/lib/StaticAnalyzer/Core/
DPathDiagnostic.cpp342 return SM.isBeforeInTranslationUnit(XR.getBegin(), YR.getBegin()); in comparePiece()
343 return SM.isBeforeInTranslationUnit(XR.getEnd(), YR.getEnd()); in comparePiece()
403 return SM.isBeforeInTranslationUnit(XDL, YDL); in compare()
DBugReporter.cpp2272 if (SM.isBeforeInTranslationUnit(SecondLoc, FirstLoc)) in removePunyEdges()
/external/clang/lib/Format/
DWhitespaceManager.cpp23 return SourceMgr.isBeforeInTranslationUnit( in operator ()()
DFormat.cpp1386 if (!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(), I->getBegin()) && in affectsCharSourceRange()
1387 !SourceMgr.isBeforeInTranslationUnit(I->getEnd(), Range.getBegin())) in affectsCharSourceRange()
/external/clang/lib/Sema/
DDeclSpec.cpp953 PP.getSourceManager().isBeforeInTranslationUnit(ExtraLocs[I], in Finish()
1095 if (PP.getSourceManager().isBeforeInTranslationUnit( in Finish()
DSema.cpp481 return SM.isBeforeInTranslationUnit(l.second, r.second); in getUndefinedButUsed()
482 return SM.isBeforeInTranslationUnit(l.first->getLocation(), in getUndefinedButUsed()
DAnalysisBasedWarnings.cpp1244 return SM.isBeforeInTranslationUnit(LHS.first->getLocStart(), in diagnoseRepeatedUseOfWeak()
1431 return SM.isBeforeInTranslationUnit(left.first.first, right.first.first); in operator ()()
/external/clang/tools/libclang/
DCIndex.cpp112 SM.isBeforeInTranslationUnit(R1.getEnd(), R2.getBegin())) in RangeCompare()
115 SM.isBeforeInTranslationUnit(R2.getEnd(), R1.getBegin())) in RangeCompare()
128 if (SM.isBeforeInTranslationUnit(L, R.getBegin())) in LocationCompare()
130 if (SM.isBeforeInTranslationUnit(R.getEnd(), L)) in LocationCompare()
948 if (SM.isBeforeInTranslationUnit(L, EndLoc)) { in addRangedDeclsInContainer()
1001 return SM.isBeforeInTranslationUnit(L_A, L_B); in VisitObjCContainerDecl()
4817 SrcMgr.isBeforeInTranslationUnit(StartLoc, R.getBegin())) in getFullCursorExtent()
5913 if (!SM.isBeforeInTranslationUnit(getTokenLoc(CurIdx), in visit()
5923 if (!SM.isBeforeInTranslationUnit(tokLoc, macroRange.getEnd())) in visit()
7186 if (SM.isBeforeInTranslationUnit(Tok.getLocation(), DefRange.getBegin())) in checkForMacroInMacroDefinition()
[all …]
/external/clang/lib/Serialization/
DASTReader.cpp5020 return Reader.getSourceManager().isBeforeInTranslationUnit(LHS, RHS); in operator ()()
5025 return Reader.getSourceManager().isBeforeInTranslationUnit(LHS, RHS); in operator ()()
5030 return Reader.getSourceManager().isBeforeInTranslationUnit(LHS, RHS); in operator ()()
5075 if (SourceMgr.isBeforeInTranslationUnit(ReadSourceLocation(M, PPI->End), in findPreprocessedEntity()
5097 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in findPreprocessedEntitiesInRange()
6519 return Reader.getSourceManager().isBeforeInTranslationUnit(LHS, RHS); in operator ()()
6524 return Reader.getSourceManager().isBeforeInTranslationUnit(LHS, RHS); in operator ()()
6529 return Reader.getSourceManager().isBeforeInTranslationUnit(LHS, RHS); in operator ()()
/external/clang/lib/Parse/
DParseObjc.cpp2922 if (PP.getSourceManager().isBeforeInTranslationUnit(Tok.getLocation(), in ParseLexedObjCMethodDefs()

12