[clang] [llvm] [SystemZ][z/OS] Add new openFileForReadBinary function, and pass IsText parameter to getBufferForFile (PR #111723)

via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 11 05:45:56 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff d905a3c51b31775791c15132a1b3613d75871853 d49f8037b4a9022aecece21a4073773fb65fa5c0 --extensions cpp,h -- clang/include/clang/Basic/FileManager.h clang/lib/Basic/FileManager.cpp clang/lib/Lex/HeaderMap.cpp clang/lib/Serialization/ASTReader.cpp llvm/include/llvm/Support/VirtualFileSystem.h llvm/lib/Support/VirtualFileSystem.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/Basic/FileManager.cpp b/clang/lib/Basic/FileManager.cpp
index e8d1f64b1a..7876ff0213 100644
--- a/clang/lib/Basic/FileManager.cpp
+++ b/clang/lib/Basic/FileManager.cpp
@@ -529,10 +529,10 @@ void FileManager::fillRealPathName(FileEntry *UFE, llvm::StringRef FileName) {
 }
 
 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
-FileManager::getBufferForFile(FileEntryRef FE, bool isVolatile,
-                              bool RequiresNullTerminator
-                              std::optional<int64_t> MaybeLimit,
-                              bool IsText) {
+FileManager::getBufferForFile(
+    FileEntryRef FE, bool isVolatile,
+    bool RequiresNullTerminator std::optional<int64_t> MaybeLimit,
+    bool IsText) {
   const FileEntry *Entry = &FE.getFileEntry();
   // If the content is living on the file entry, return a reference to it.
   if (Entry->Content)

``````````

</details>


https://github.com/llvm/llvm-project/pull/111723


More information about the cfe-commits mailing list