Home
last modified time | relevance | path

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

12

/external/clang/unittests/Basic/
DSourceManagerTest.cpp112 ASSERT_TRUE(macroExpStartLoc.isFileID()); in TEST_F()
113 ASSERT_TRUE(macroExpEndLoc.isFileID()); in TEST_F()
235 EXPECT_TRUE(defLoc.isFileID()); in TEST_F()
236 EXPECT_TRUE(loc1.isFileID()); in TEST_F()
241 EXPECT_TRUE(defLoc2.isFileID()); in TEST_F()
/external/clang/lib/Lex/
DTokenLexer.cpp52 assert((Tokens[0].getLocation().isFileID() || Tokens[0].is(tok::comment)) && in Init()
589 assert(ResultTokLoc.isFileID() && in PasteTokens()
670 if (StartLoc.isFileID()) in PasteTokens()
672 if (EndLoc.isFileID()) in PasteTokens()
735 assert(loc.isValid() && loc.isFileID()); in getExpansionLocForMacroDefLoc()
777 if (CurLoc.isFileID() != NextLoc.isFileID()) in updateConsecutiveMacroArgTokens()
DMacroInfo.cpp48 assert((macroStart.isFileID() || firstToken.is(tok::comment)) && in getDefinitionLengthSlow()
50 assert((macroEnd.isFileID() || lastToken.is(tok::comment)) && in getDefinitionLengthSlow()
DLexer.cpp452 assert(Loc.isFileID()); in getBeginningOfFileToken()
512 if (Loc.isFileID()) in GetBeginningOfToken()
791 if (expansionLoc.isFileID()) { in isAtStartOfMacroExpansion()
819 if (expansionLoc.isFileID()) { in isAtEndOfMacroExpansion()
834 assert(Begin.isFileID() && End.isFileID()); in makeRangeFromFileLocs()
864 if (Begin.isFileID() && End.isFileID()) in makeFileCharRange()
867 if (Begin.isMacroID() && End.isFileID()) { in makeFileCharRange()
874 if (Begin.isFileID() && End.isMacroID()) { in makeFileCharRange()
977 if (SpellLoc.isFileID()) in getImmediateMacroName()
1051 if (FileLoc.isFileID()) in getSourceLocation()
DModuleMap.cpp919 if (!ExpansionLoc.isFileID()) in inferModuleFromLocation()
/external/clang/lib/Basic/
DSourceManager.cpp898 } while (!Loc.isFileID()); in getExpansionLocSlowCase()
908 } while (!Loc.isFileID()); in getSpellingLocSlowCase()
918 } while (!Loc.isFileID()); in getFileLocSlowCase()
936 } while (!Loc.isFileID()); in getDecomposedExpansionLocSlowCase()
954 } while (!Loc.isFileID()); in getDecomposedSpellingLocSlowCase()
964 if (Loc.isFileID()) return Loc; in getImmediateSpellingLoc()
984 if (Loc.isFileID()) return std::make_pair(Loc, Loc); in getExpansionRange()
991 while (!Res.first.isFileID()) in getExpansionRange()
993 while (!Res.second.isFileID()) in getExpansionRange()
1814 if (ExpInfo.getExpansionLocStart().isFileID()) { in computeMacroArgsCache()
[all …]
DSourceLocation.cpp44 if (isFileID()) { in print()
/external/clang/include/clang/Basic/
DSourceManager.h1026 if (Loc.isFileID()) return Loc; in getExpansionLoc()
1034 if (Loc.isFileID()) return Loc; in getFileLoc()
1065 if (Loc.isFileID()) return Loc; in getSpellingLoc()
1103 if (Loc.isFileID()) in getDecomposedExpansionLoc()
1122 if (Loc.isFileID()) in getDecomposedSpellingLoc()
DSourceLocation.h99 bool isFileID() const { return (ID & MacroIDBit) == 0; } in isFileID() function
/external/clang/lib/Edit/
DCommit.cpp22 assert(Loc.isFileID()); in getFileLocation()
34 assert(Loc.isFileID()); in getInsertFromRange()
DEditedSource.cpp318 assert(Loc.isFileID()); in applyRewrite()
386 assert(BLoc.isFileID()); in getSourceText()
/external/clang/include/clang/Rewrite/Core/
DRewriter.h70 return Loc.isFileID(); in isRewritable()
/external/clang/lib/ARCMigrate/
DTransEmptyStatementsAndDealloc.cpp52 assert(AfterMacroLoc.isFileID()); in isEmptyARCMTMacroStatement()
DTransformActions.cpp390 if (loc.isFileID()) in canInsert()
403 if (loc.isFileID()) in canInsertAfterToken()
/external/clang/lib/StaticAnalyzer/Core/
DHTMLDiagnostics.cpp471 assert(L.isFileID()); in HandlePiece()
DPathDiagnostic.cpp237 if (!L.isFileID() || SMgr.getFileID(L) != FID) in HandlePathDiagnostic()
240 if (!L.isFileID() || SMgr.getFileID(L) != FID) in HandlePathDiagnostic()
DBugReporter.cpp981 if (!CLocs.back().isDead() && CLocs.back().asLocation().isFileID()) { in popLocation()
2995 if (Loc.isFileID()) { in CompactPathDiagnostic()
3041 assert(InstantiationLoc.isFileID()); in CompactPathDiagnostic()
DExprEngine.cpp2430 if (SLoc.isFileID()) { in printLocation()
2535 if (SLoc.isFileID()) { in getNodeLabel()
/external/clang/lib/Frontend/
DPrintPreprocessedOutput.cpp738 if (Tok.is(tok::eof) || !Tok.getLocation().isFileID()) in DoPrintPreprocessedInput()
DTextDiagnostic.cpp1064 assert(Loc.isFileID() && "must have a file location here"); in emitSnippetAndCaret()
/external/clang/tools/libclang/
DIndexing.cpp219 assert(RegionLoc.isFileID());
/external/clang/lib/Parse/
DParseExpr.cpp299 if (FILoc.isFileID() || PP.isAtStartOfMacroExpansion(FILoc, &FILoc)) { in ParseRHSOfBinaryExpression()
300 assert(FILoc.isFileID()); in ParseRHSOfBinaryExpression()
DParser.cpp91 if (!ParenRange.getEnd().isFileID() || EndLoc.isInvalid()) { in SuggestParentheses()
/external/clang/lib/Sema/
DSemaExpr.cpp6338 if (ParenRange.getBegin().isFileID() && ParenRange.getEnd().isFileID() && in SuggestParentheses()
9298 Loc.isFileID() && UO->getOperatorLoc().isFileID() && in CheckAssignmentOperands()
9304 UO->getSubExpr()->getLocStart().isFileID()) { in CheckAssignmentOperands()
/external/clang/lib/Frontend/Rewrite/
DRewriteModernObjC.cpp1644 if (Loc.isFileID() && GenerateLineInfo) { in ConvertSourceLocationToLineDirective()
3098 if (Location.isFileID() && GenerateLineInfo) { in RewriteLineDirective()

12