[clang] [llvm] [SystemZ][z/OS] Add missing strnlen function for z/OS to fix build failures (PR #75339)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 13 05:39:26 PST 2023
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 c2d3188d5dcb8158d9b8fa2a85f984fc621c7044 1b234e926dc6396fe4053f3c3463ed36e5d58778 -- clang/lib/Lex/HeaderMap.cpp llvm/include/llvm/Support/SystemZ/zOSSupport.h llvm/lib/ObjCopy/MachO/MachOLayoutBuilder.cpp llvm/lib/ObjCopy/MachO/MachOObject.cpp llvm/lib/ObjCopy/MachO/MachOReader.cpp llvm/lib/ObjectYAML/MachOEmitter.cpp llvm/lib/ObjectYAML/MachOYAML.cpp llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp llvm/tools/llvm-readobj/ELFDumper.cpp llvm/tools/llvm-readobj/ObjDumper.cpp llvm/tools/obj2yaml/macho2yaml.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Lex/HeaderMap.cpp b/clang/lib/Lex/HeaderMap.cpp
index adc56dc270..00bf880726 100644
--- a/clang/lib/Lex/HeaderMap.cpp
+++ b/clang/lib/Lex/HeaderMap.cpp
@@ -11,17 +11,17 @@
//===----------------------------------------------------------------------===//
#include "clang/Lex/HeaderMap.h"
-#include "clang/Lex/HeaderMapTypes.h"
#include "clang/Basic/CharInfo.h"
#include "clang/Basic/FileManager.h"
+#include "clang/Lex/HeaderMapTypes.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/DataTypes.h"
+#include "llvm/Support/Debug.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/SwapByteOrder.h"
#include "llvm/Support/SystemZ/zOSSupport.h"
-#include "llvm/Support/Debug.h"
#include <cstring>
#include <memory>
#include <optional>
``````````
</details>
https://github.com/llvm/llvm-project/pull/75339
More information about the llvm-commits
mailing list