Searched refs:FromFile (Results 1 - 12 of 12) sorted by relevance

/external/clang/lib/Frontend/Rewrite/
H A DInclusionRewriter.cpp75 void OutputContentUpTo(const MemoryBuffer &FromFile,
80 const MemoryBuffer &FromFile, StringRef EOL,
198 /// Detect the likely line ending style of \p FromFile by examining the first
200 static StringRef DetectEOL(const MemoryBuffer &FromFile) { argument
204 const char *Pos = strchr(FromFile.getBufferStart(), '\n');
207 if (Pos - 1 >= FromFile.getBufferStart() && Pos[-1] == '\r')
209 if (Pos + 1 < FromFile.getBufferEnd() && Pos[1] == '\r')
216 const MemoryBuffer &FromFile = *SM.getBuffer(SM.getMainFileID(), &Invalid); local
220 MainEOL = DetectEOL(FromFile);
223 /// Writes out bytes from \p FromFile, startin
225 OutputContentUpTo(const MemoryBuffer &FromFile, unsigned &WriteFrom, unsigned WriteTo, StringRef LocalEOL, int &Line, bool EnsureNewline) argument
276 CommentOutDirective(Lexer &DirectiveLex, const Token &StartToken, const MemoryBuffer &FromFile, StringRef LocalEOL, unsigned &NextToWrite, int &Line) argument
390 const MemoryBuffer &FromFile = *SM.getBuffer(FileId, &Invalid); local
[all...]
H A DRewriteMacros.cpp68 const llvm::MemoryBuffer *FromFile = SM.getBuffer(SM.getMainFileID());
69 Lexer RawLex(SM.getMainFileID(), FromFile, SM, PP.getLangOpts());
/external/clang/lib/Frontend/
H A DDependencyGraph.cpp81 const FileEntry *FromFile local
83 if (!FromFile)
86 Dependencies[FromFile].push_back(File);
89 AllFiles.insert(FromFile);
H A DCompilerInstance.cpp246 const FileEntry *FromFile = local
248 if (!FromFile) {
257 SourceMgr.overrideFileContents(FromFile, RB.second,
271 const FileEntry *FromFile = local
273 if (!FromFile) {
280 SourceMgr.overrideFileContents(FromFile, ToFile);
H A DCacheTokens.cpp518 const llvm::MemoryBuffer *FromFile = SM.getBuffer(FID); local
519 Lexer L(FID, FromFile, SM, LOpts);
H A DFrontendActions.cpp575 const llvm::MemoryBuffer *FromFile = SM.getBuffer(SM.getMainFileID()); local
576 Lexer RawLex(SM.getMainFileID(), FromFile, SM, PP.getLangOpts());
H A DVerifyDiagnosticConsumer.cpp588 const llvm::MemoryBuffer *FromFile = SM.getBuffer(FID); local
589 Lexer RawLex(FID, FromFile, SM, LangOpts);
/external/clang/lib/Rewrite/
H A DTokenRewriter.cpp26 const llvm::MemoryBuffer *FromFile = SM.getBuffer(FID); local
27 Lexer RawLex(FID, FromFile, SM, LangOpts);
H A DHTMLRewrite.cpp361 const llvm::MemoryBuffer *FromFile = SM.getBuffer(FID); local
362 Lexer L(FID, FromFile, SM, PP.getLangOpts());
451 const llvm::MemoryBuffer *FromFile = SM.getBuffer(FID); local
452 Lexer L(FID, FromFile, SM, PP.getLangOpts());
/external/clang/lib/Lex/
H A DLexer.cpp144 Lexer::Lexer(FileID FID, const llvm::MemoryBuffer *FromFile, argument
146 : Lexer(SM.getLocForStartOfFile(FID), langOpts, FromFile->getBufferStart(),
147 FromFile->getBufferStart(), FromFile->getBufferEnd()) {}
H A DPPDirectives.cpp613 const FileEntry *FromFile,
623 if (!FromDir && !FromFile) {
665 if (FromFile) {
677 if (FE == FromFile) {
608 LookupFile( SourceLocation FilenameLoc, StringRef Filename, bool isAngled, const DirectoryLookup *FromDir, const FileEntry *FromFile, const DirectoryLookup *&CurDir, SmallVectorImpl<char> *SearchPath, SmallVectorImpl<char> *RelativePath, ModuleMap::KnownHeader *SuggestedModule, bool SkipCache) argument
/external/clang/include/clang/Lex/
H A DPreprocessor.h1346 const FileEntry *FromFile,

Completed in 6505 milliseconds