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 origin/main HEAD --extensions h,cpp --
clang/include/clang/Driver/CommonArgs.h
clang/include/clang/Interpreter/Interpreter.h clang/lib/Driver/Driver.cpp
clang/lib/Driver/ToolChain.cpp clang/lib/Driver/ToolChains/CommonArgs.cpp
clang/lib/Interpreter/DeviceOffload.cpp clang/lib/Interpreter/DeviceOffload.h
clang/lib/Interpreter/Interpreter.cpp clang/tools/clang-repl/ClangRepl.cpp
clang/unittests/Interpreter/DeviceOffloadTest.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Interpreter/DeviceOffload.cpp
b/clang/lib/Interpreter/DeviceOffload.cpp
index 4c39ff9d2..c31e20467 100644
--- a/clang/lib/Interpreter/DeviceOffload.cpp
+++ b/clang/lib/Interpreter/DeviceOffload.cpp
@@ -239,8 +239,8 @@ void IncrementalHIPDeviceParser::EmbedOffloadBundle() {
const PartialTranslationUnit &PTU = PTUs.back();
std::string BundleFileName = "/" + PTU.TheModule->getName().str() + ".hipfb";
VFS->addFile(BundleFileName, 0,
- llvm::MemoryBuffer::getMemBufferCopy(
- llvm::StringRef(FatbinContent.data(), FatbinContent.size())));
+ llvm::MemoryBuffer::getMemBufferCopy(llvm::StringRef(
+ FatbinContent.data(), FatbinContent.size())));
CodeGenOpts.OffloadBinaryToEmbedFile = std::move(BundleFileName);
}
diff --git a/clang/lib/Interpreter/DeviceOffload.h
b/clang/lib/Interpreter/DeviceOffload.h
index 33aeee0d4..c16c94deb 100644
--- a/clang/lib/Interpreter/DeviceOffload.h
+++ b/clang/lib/Interpreter/DeviceOffload.h
@@ -62,7 +62,7 @@ class IncrementalHIPDeviceParser : public
IncrementalDeviceParser {
// Bundle the code object into a HIP fat binary.
llvm::Expected<llvm::StringRef> GenerateFatbinary(llvm::StringRef HSACO);
- //Embed the bundle in host codegen.
+ // Embed the bundle in host codegen.
void EmbedOffloadBundle();
public:
``````````
</details>
https://github.com/llvm/llvm-project/pull/242209
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits