Home
last modified time | relevance | path

Searched refs:FromFile (Results 1 – 17 of 17) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DInclusionRewriter.cpp89 void OutputContentUpTo(const MemoryBufferRef &FromFile, unsigned &WriteFrom,
93 const MemoryBufferRef &FromFile, StringRef EOL,
256 std::optional<MemoryBufferRef> FromFile = in detectMainFileEOL() local
258 assert(FromFile); in detectMainFileEOL()
259 if (!FromFile) in detectMainFileEOL()
261 MainEOL = FromFile->getBuffer().detectEOL(); in detectMainFileEOL()
266 void InclusionRewriter::OutputContentUpTo(const MemoryBufferRef &FromFile, in OutputContentUpTo() argument
272 if (FromFile == PredefinesBuffer) { in OutputContentUpTo()
282 LocalEOL[0] == (FromFile.getBufferStart() + WriteTo)[-1] && in OutputContentUpTo()
283 LocalEOL[1] == (FromFile.getBufferStart() + WriteTo)[0]) in OutputContentUpTo()
[all …]
H A DRewriteMacros.cpp66 llvm::MemoryBufferRef FromFile = SM.getBufferOrFake(SM.getMainFileID()); in LexRawTokensFromMainFile() local
67 Lexer RawLex(SM.getMainFileID(), FromFile, SM, PP.getLangOpts()); in LexRawTokensFromMainFile()
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DDependencyGraph.cpp82 OptionalFileEntryRef FromFile = in InclusionDirective() local
84 if (!FromFile) in InclusionDirective()
87 Dependencies[*FromFile].push_back(*File); in InclusionDirective()
90 AllFiles.insert(*FromFile); in InclusionDirective()
100 OptionalFileEntryRef FromFile = in EmbedDirective() local
102 if (!FromFile) in EmbedDirective()
105 Dependencies[*FromFile].push_back(*File); in EmbedDirective()
108 AllFiles.insert(*FromFile); in EmbedDirective()
H A DHeaderIncludeGen.cpp426 OptionalFileEntryRef FromFile = SM.getFileEntryRefForID(SM.getFileID(Loc)); in InclusionDirective() local
427 if (!FromFile) in InclusionDirective()
430 Dependencies[*FromFile].push_back(*File); in InclusionDirective()
442 OptionalFileEntryRef FromFile = SM.getFileEntryRefForID(SM.getFileID(Loc)); in moduleImport() local
443 if (!FromFile) in moduleImport()
451 Dependencies[*FromFile].push_back(*ModuleMapFile); in moduleImport()
H A DFrontendActions.cpp1010 llvm::MemoryBufferRef FromFile = SM.getBufferOrFake(SM.getMainFileID()); in ExecuteAction() local
1011 Lexer RawLex(SM.getMainFileID(), FromFile, SM, PP.getLangOpts()); in ExecuteAction()
1202 llvm::MemoryBufferRef FromFile = SM.getBufferOrFake(SM.getMainFileID()); in ExecuteAction() local
1207 FromFile.getBuffer(), Tokens, Directives, &CI.getDiagnostics(), in ExecuteAction()
1226 printDependencyDirectivesAsSource(FromFile.getBuffer(), Directives, in ExecuteAction()
H A DCompilerInstance.cpp404 FileEntryRef FromFile = in InitializeFileRemapping() local
412 SourceMgr.overrideFileContents(FromFile, RB.second->getMemBufferRef()); in InitializeFileRemapping()
415 FromFile, std::unique_ptr<llvm::MemoryBuffer>(RB.second)); in InitializeFileRemapping()
428 FileEntryRef FromFile = in InitializeFileRemapping() local
433 SourceMgr.overrideFileContents(FromFile, *ToFile); in InitializeFileRemapping()
H A DVerifyDiagnosticConsumer.cpp846 llvm::MemoryBufferRef FromFile = SM.getBufferOrFake(FID); in findDirectives() local
847 Lexer RawLex(FID, FromFile, SM, LangOpts); in findDirectives()
/freebsd/contrib/llvm-project/clang/lib/Rewrite/
H A DHTMLRewrite.cpp480 llvm::MemoryBufferRef FromFile = SM.getBufferOrFake(FID); in SyntaxHighlightImpl() local
481 const char *BufferStart = FromFile.getBuffer().data(); in SyntaxHighlightImpl()
483 Lexer L(FID, FromFile, SM, PP.getLangOpts()); in SyntaxHighlightImpl()
566 llvm::MemoryBufferRef FromFile = SM.getBufferOrFake(FID); in SyntaxHighlight() local
567 const char *BufferStart = FromFile.getBuffer().data(); in SyntaxHighlight()
603 llvm::MemoryBufferRef FromFile = SM.getBufferOrFake(FID); in HighlightMacrosImpl() local
604 Lexer L(FID, FromFile, SM, PP.getLangOpts()); in HighlightMacrosImpl()
H A DTokenRewriter.cpp31 llvm::MemoryBufferRef FromFile = SM.getBufferOrFake(FID); in TokenRewriter() local
32 Lexer RawLex(FID, FromFile, SM, LangOpts); in TokenRewriter()
/freebsd/contrib/llvm-project/clang/include/clang/Lex/
H A DLexer.h180 Lexer(FileID FID, const llvm::MemoryBufferRef &FromFile,
H A DPreprocessor.h2511 ConstSearchDirIterator FromDir, const FileEntry *FromFile,
/freebsd/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/
H A DPythonDataObjects.h651 static llvm::Expected<PythonFile> FromFile(File &file,
H A DPythonDataObjects.cpp1392 Expected<PythonFile> PythonFile::FromFile(File &file, const char *mode) { in FromFile() function in PythonFile
H A DScriptInterpreterPython.cpp619 auto new_file = PythonFile::FromFile(file, mode); in SetStdHandle()
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DPPDirectives.cpp980 ConstSearchDirIterator FromDir, const FileEntry *FromFile, in LookupFile() argument
995 if (!FromDir && !FromFile) { in LookupFile()
1043 if (FromFile) { in LookupFile()
1056 if (&FE->getFileEntry() == FromFile) { in LookupFile()
H A DLexer.cpp212 Lexer::Lexer(FileID FID, const llvm::MemoryBufferRef &FromFile, in Lexer() argument
215 : Lexer(SM.getLocForStartOfFile(FID), langOpts, FromFile.getBufferStart(), in Lexer()
216 FromFile.getBufferStart(), FromFile.getBufferEnd(), in Lexer()
/freebsd/contrib/llvm-project/lldb/bindings/python/
H A Dpython-typemaps.swig579 PythonFile pyfile = unwrapOrSetPythonException(PythonFile::FromFile(*sp));