Home
last modified time | relevance | path

Searched refs:isBeforeInTranslationUnit (Results 1 – 25 of 29) 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( 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()
DPreprocessor.cpp353 SourceMgr.isBeforeInTranslationUnit(BestLocation, Location))) { in getLastMacroWithSpelling()
/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/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/Format/
DAffectedRangeManager.cpp65 if (!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(), I->getBegin()) && in affectsCharSourceRange()
66 !SourceMgr.isBeforeInTranslationUnit(I->getEnd(), Range.getBegin())) in affectsCharSourceRange()
DWhitespaceManager.cpp23 return SourceMgr.isBeforeInTranslationUnit( in operator ()()
DFormat.cpp1181 return SM.isBeforeInTranslationUnit(LHS->Tok.getLocation(), 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.cpp509 if (!SM.isBeforeInTranslationUnit(loc, I.End)) in addInsertion()
/external/clang/lib/Basic/
DSourceLocation.cpp123 return SrcMgr->isBeforeInTranslationUnit(*this, Loc); in isBeforeInTranslationUnitThan()
DSourceManager.cpp2034 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/include/clang/Basic/
DSourceManager.h1468 bool isBeforeInTranslationUnit(SourceLocation LHS, SourceLocation RHS) const;
1699 return SM.isBeforeInTranslationUnit(LHS, RHS); in operator()
1712 return SM.isBeforeInTranslationUnit(LHS.getBegin(), RHS.getBegin()); in operator()
/external/clang/lib/AST/
DRawCommentList.cpp279 !SourceMgr.isBeforeInTranslationUnit(Comments.back()->getLocStart(), in addComment()
/external/clang/lib/StaticAnalyzer/Core/
DPathDiagnostic.cpp339 return SM.isBeforeInTranslationUnit(XR.getBegin(), YR.getBegin()); in comparePiece()
340 return SM.isBeforeInTranslationUnit(XR.getEnd(), YR.getEnd()); in comparePiece()
400 return SM.isBeforeInTranslationUnit(XDL, YDL); in compare()
DBugReporter.cpp2270 if (SM.isBeforeInTranslationUnit(SecondLoc, FirstLoc)) in removePunyEdges()
/external/clang/lib/Sema/
DDeclSpec.cpp976 S.getSourceManager().isBeforeInTranslationUnit(ExtraLocs[I], in Finish()
1126 if (S.getSourceManager().isBeforeInTranslationUnit( in Finish()
DAnalysisBasedWarnings.cpp1273 return SM.isBeforeInTranslationUnit(LHS.first->getLocStart(), in diagnoseRepeatedUseOfWeak()
1460 return SM.isBeforeInTranslationUnit(left.first.first, right.first.first); in operator ()()
/external/clang/tools/libclang/
DCIndex.cpp110 SM.isBeforeInTranslationUnit(R1.getEnd(), R2.getBegin())) in RangeCompare()
113 SM.isBeforeInTranslationUnit(R2.getEnd(), R1.getBegin())) in RangeCompare()
126 if (SM.isBeforeInTranslationUnit(L, R.getBegin())) in LocationCompare()
128 if (SM.isBeforeInTranslationUnit(R.getEnd(), L)) in LocationCompare()
969 if (SM.isBeforeInTranslationUnit(L, EndLoc)) { in addRangedDeclsInContainer()
1022 return SM.isBeforeInTranslationUnit(L_A, L_B); in VisitObjCContainerDecl()
5434 SrcMgr.isBeforeInTranslationUnit(StartLoc, R.getBegin())) in getFullCursorExtent()
6541 if (!SM.isBeforeInTranslationUnit(getTokenLoc(CurIdx), in visit()
6551 if (!SM.isBeforeInTranslationUnit(tokLoc, macroRange.getEnd())) in visit()
7882 if (SM.isBeforeInTranslationUnit(Tok.getLocation(), DefRange.getBegin())) in checkForMacroInMacroDefinition()
[all …]
/external/clang/lib/Serialization/
DASTReader.cpp4991 return Reader.getSourceManager().isBeforeInTranslationUnit(LHS, RHS); in operator ()()
4996 return Reader.getSourceManager().isBeforeInTranslationUnit(LHS, RHS); in operator ()()
5001 return Reader.getSourceManager().isBeforeInTranslationUnit(LHS, RHS); in operator ()()
5046 if (SourceMgr.isBeforeInTranslationUnit( in findPreprocessedEntity()
5068 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in findPreprocessedEntitiesInRange()
6575 return Reader.getSourceManager().isBeforeInTranslationUnit(LHS, RHS); in operator ()()
6580 return Reader.getSourceManager().isBeforeInTranslationUnit(LHS, RHS); in operator ()()
6585 return Reader.getSourceManager().isBeforeInTranslationUnit(LHS, RHS); in operator ()()
/external/clang/lib/CodeGen/
DCoverageMappingGen.cpp468 if (SM.isBeforeInTranslationUnit(getStart(S), S->getLocStart())) in propagateCounts()
/external/clang/lib/Parse/
DParseObjc.cpp3670 if (PP.getSourceManager().isBeforeInTranslationUnit(Tok.getLocation(), in ParseLexedObjCMethodDefs()

12