[clang] Update Clang.cpp (PR #77031)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 4 17:19:07 PST 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 c1eef483b2c1ab2564e0ee1e4d1a30db11f8049f 50e69eac786a646491e278478bb096e361d6c4c1 -- clang/lib/Driver/ToolChains/Clang.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Driver/ToolChains/Clang.cpp b/clang/lib/Driver/ToolChains/Clang.cpp
index bb8b496dbf..0eb32c9b03 100644
--- a/clang/lib/Driver/ToolChains/Clang.cpp
+++ b/clang/lib/Driver/ToolChains/Clang.cpp
@@ -951,7 +951,7 @@ static void handleAMDGPUCodeObjectVersionOptions(const Driver &D,
static bool hasClangPchSignature(const Driver &D, StringRef Path) {
if (llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> MemBuf =
D.getVFS().getBufferForFile(Path))
- return (*MemBuf)->getBuffer().substr(0x500,-1).starts_with("CPCH");
+ return (*MemBuf)->getBuffer().substr(0x500, -1).starts_with("CPCH");
return false;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/77031
More information about the cfe-commits
mailing list