HomeSort by relevance Sort by last modified time
    Searched defs:MainFileID (Results 1 - 6 of 6) sorted by null

  /external/clang/unittests/Basic/
SourceManagerTest.cpp 73 FileID mainFileID = SourceMgr.createMainFileIDForMemBuffer(buf);
104 SourceLocation macroExpStartLoc = SourceMgr.translateLineCol(mainFileID, 2, 1);
105 SourceLocation macroExpEndLoc = SourceMgr.translateLineCol(mainFileID, 2, 6);
125 FileID MainFileID = SourceMgr.createMainFileIDForMemBuffer(Buf);
130 EXPECT_EQ(1U, SourceMgr.getColumnNumber(MainFileID, 0, &Invalid));
134 EXPECT_EQ(5U, SourceMgr.getColumnNumber(MainFileID, 4, &Invalid));
138 EXPECT_EQ(1U, SourceMgr.getColumnNumber(MainFileID, 7, &Invalid));
142 EXPECT_EQ(5U, SourceMgr.getColumnNumber(MainFileID, 11, &Invalid));
146 EXPECT_EQ(7U, SourceMgr.getColumnNumber(MainFileID, strlen(Source),
151 SourceMgr.getColumnNumber(MainFileID, strlen(Source)+1, &Invalid)
    [all...]
  /external/clang/lib/Lex/
Preprocessor.cpp 463 FileID MainFileID = SourceMgr.getMainFileID();
465 // If MainFileID is loaded it means we loaded an AST file, no need to enter
467 if (!SourceMgr.isLoadedFileID(MainFileID)) {
469 EnterSourceFile(MainFileID, 0, SourceLocation());
479 if (const FileEntry *FE = SourceMgr.getFileEntryForID(MainFileID))
  /external/clang/include/clang/Basic/
SourceManager.h 641 FileID MainFileID;
739 assert(MainFileID.isInvalid() && "MainFileID already set!");
740 MainFileID = createFileIDForMemBuffer(Buffer, Kind);
741 return MainFileID;
745 // MainFileID creation and querying methods.
749 FileID getMainFileID() const { return MainFileID; }
754 assert(MainFileID.isInvalid() && "MainFileID already set!");
755 MainFileID = createFileID(SourceFile, SourceLocation(), Kind)
    [all...]
  /external/clang/lib/Frontend/
ASTUnit.cpp     [all...]
  /external/clang/lib/Rewrite/Frontend/
RewriteObjC.cpp 68 FileID MainFileID;
634 MainFileID = SM->getMainFileID();
635 const llvm::MemoryBuffer *MainBuf = SM->getBuffer(MainFileID);
733 SourceLocation LocStart = SM->getLocForStartOfFile(MainFileID);
734 StringRef MainBuf = SM->getBufferData(MainFileID);
    [all...]
RewriteModernObjC.cpp 69 FileID MainFileID;
697 MainFileID = SM->getMainFileID();
698 const llvm::MemoryBuffer *MainBuf = SM->getBuffer(MainFileID);
803 SourceLocation LocStart = SM->getLocForStartOfFile(MainFileID)
    [all...]

Completed in 580 milliseconds