Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang/lib/Frontend/Rewrite/
H A DInclusionRewriter.cpp256 assert(FromFile); in detectMainFileEOL()
257 if (!FromFile) in detectMainFileEOL()
259 MainEOL = FromFile->getBuffer().detectEOL(); in detectMainFileEOL()
270 if (FromFile == PredefinesBuffer) { in OutputContentUpTo()
320 OutputContentUpTo(FromFile, NextToWrite, in CommentOutDirective()
327 if (FromFile == PredefinesBuffer) { in CommentOutDirective()
332 OutputContentUpTo(FromFile, NextToWrite, in CommentOutDirective()
354 MemoryBufferRef FromFile; in Process() local
359 FromFile = *B; in Process()
453 OutputContentUpTo(FromFile, NextToWrite, in Process()
[all …]
H A DRewriteMacros.cpp67 llvm::MemoryBufferRef FromFile = SM.getBufferOrFake(SM.getMainFileID()); in LexRawTokensFromMainFile() local
68 Lexer RawLex(SM.getMainFileID(), FromFile, SM, PP.getLangOpts()); in LexRawTokensFromMainFile()
/llvm-project-15.0.7/clang/lib/Frontend/
H A DDependencyGraph.cpp83 Optional<FileEntryRef> FromFile = in InclusionDirective() local
85 if (!FromFile) in InclusionDirective()
88 Dependencies[*FromFile].push_back(*File); in InclusionDirective()
91 AllFiles.insert(*FromFile); in InclusionDirective()
H A DFrontendActions.cpp967 llvm::MemoryBufferRef FromFile = SM.getBufferOrFake(SM.getMainFileID()); in ExecuteAction() local
968 Lexer RawLex(SM.getMainFileID(), FromFile, SM, PP.getLangOpts()); in ExecuteAction()
1159 llvm::MemoryBufferRef FromFile = SM.getBufferOrFake(SM.getMainFileID()); in ExecuteAction() local
1164 FromFile.getBuffer(), Tokens, Directives, &CI.getDiagnostics(), in ExecuteAction()
1183 printDependencyDirectivesAsSource(FromFile.getBuffer(), Directives, in ExecuteAction()
H A DCompilerInstance.cpp398 const FileEntry *FromFile = in InitializeFileRemapping() local
400 if (!FromFile) { in InitializeFileRemapping()
412 SourceMgr.overrideFileContents(FromFile, RB.second->getMemBufferRef()); in InitializeFileRemapping()
415 FromFile, std::unique_ptr<llvm::MemoryBuffer>( in InitializeFileRemapping()
429 const FileEntry *FromFile = in InitializeFileRemapping() local
431 if (!FromFile) { in InitializeFileRemapping()
438 SourceMgr.overrideFileContents(FromFile, *ToFile); in InitializeFileRemapping()
H A DVerifyDiagnosticConsumer.cpp827 llvm::MemoryBufferRef FromFile = SM.getBufferOrFake(FID); in findDirectives() local
828 Lexer RawLex(FID, FromFile, SM, LangOpts); in findDirectives()
/llvm-project-15.0.7/clang/lib/Rewrite/
H A DTokenRewriter.cpp31 llvm::MemoryBufferRef FromFile = SM.getBufferOrFake(FID); in TokenRewriter() local
32 Lexer RawLex(FID, FromFile, SM, LangOpts); in TokenRewriter()
H A DHTMLRewrite.cpp449 llvm::MemoryBufferRef FromFile = SM.getBufferOrFake(FID); in SyntaxHighlight() local
450 Lexer L(FID, FromFile, SM, PP.getLangOpts()); in SyntaxHighlight()
540 llvm::MemoryBufferRef FromFile = SM.getBufferOrFake(FID); in HighlightMacros() local
541 Lexer L(FID, FromFile, SM, PP.getLangOpts()); in HighlightMacros()
/llvm-project-15.0.7/llvm/utils/UnicodeData/
H A DUnicodeNameMappingGenerator.cpp37 auto FromFile = [&](const std::string &File, bool IsAliasFile = false) { in loadDataFiles() local
83 FromFile(NamesFile); in loadDataFiles()
84 FromFile(AliasesFile, true); in loadDataFiles()
/llvm-project-15.0.7/clang/unittests/AST/
H A DASTImporterFixtures.h389 StringRef FromFile = Action.FromFilename, ToFile = Action.ToFilename; in testImportSequence() local
390 GenASTsIfNeeded(FromFile); in testImportSequence()
393 ASTUnit *From = AllASTs[FromFile].get(); in testImportSequence()
/llvm-project-15.0.7/mlir/test/Dialect/SparseTensor/
H A Dconversion.mlir74 // CHECK-DAG: %[[FromFile:.*]] = arith.constant 1 : i32
81 …] = call @newSparseTensor(%[[X]], %[[Y]], %[[Z]], %{{.*}}, %{{.*}}, %{{.*}}, %[[FromFile]], %[[A]])
90 // CHECK-DAG: %[[FromFile:.*]] = arith.constant 1 : i32
97 …] = call @newSparseTensor(%[[X]], %[[Y]], %[[Z]], %{{.*}}, %{{.*}}, %{{.*}}, %[[FromFile]], %[[A]])
106 // CHECK-DAG: %[[FromFile:.*]] = arith.constant 1 : i32
113 …] = call @newSparseTensor(%[[X]], %[[Y]], %[[Z]], %{{.*}}, %{{.*}}, %{{.*}}, %[[FromFile]], %[[A]])
/llvm-project-15.0.7/clang/include/clang/Lex/
H A DLexer.h180 Lexer(FileID FID, const llvm::MemoryBufferRef &FromFile,
H A DPreprocessor.h2234 ConstSearchDirIterator FromDir, const FileEntry *FromFile,
/llvm-project-15.0.7/clang/lib/Lex/
H A DPPDirectives.cpp948 ConstSearchDirIterator FromDir, const FileEntry *FromFile, in LookupFile() argument
964 if (!FromDir && !FromFile) { in LookupFile()
1005 if (FromFile) { in LookupFile()
1018 if (&FE->getFileEntry() == FromFile) { in LookupFile()
H A DLexer.cpp165 Lexer::Lexer(FileID FID, const llvm::MemoryBufferRef &FromFile, in Lexer() argument
168 : Lexer(SM.getLocForStartOfFile(FID), langOpts, FromFile.getBufferStart(), in Lexer()
169 FromFile.getBufferStart(), FromFile.getBufferEnd(), in Lexer()
/llvm-project-15.0.7/lldb/source/Plugins/ScriptInterpreter/Python/
H A DPythonDataObjects.h621 static llvm::Expected<PythonFile> FromFile(File &file,
H A DPythonDataObjects.cpp1399 Expected<PythonFile> PythonFile::FromFile(File &file, const char *mode) { in FromFile() function in PythonFile
H A DScriptInterpreterPython.cpp621 auto new_file = PythonFile::FromFile(file, mode); in SetStdHandle()
/llvm-project-15.0.7/lldb/bindings/python/
H A Dpython-typemaps.swig440 PythonFile pyfile = unwrapOrSetPythonException(PythonFile::FromFile(*sp));
/llvm-project-15.0.7/lldb/unittests/ScriptInterpreter/Python/
H A DPythonDataObjectsTests.cpp560 auto py_file = PythonFile::FromFile(*file.get(), "r"); in TEST_F()