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 HEAD~1 HEAD --extensions cpp,h -- 
clang/unittests/Interpreter/OutOfProcessInterpreterTests.cpp 
clang/include/clang/Interpreter/Interpreter.h 
clang/include/clang/Interpreter/RemoteJITUtils.h 
clang/lib/Interpreter/Interpreter.cpp clang/lib/Interpreter/RemoteJITUtils.cpp 
clang/tools/clang-repl/ClangRepl.cpp 
clang/unittests/Interpreter/InterpreterTest.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Interpreter/Interpreter.cpp 
b/clang/lib/Interpreter/Interpreter.cpp
index 281cfe860..ac4eb149c 100644
--- a/clang/lib/Interpreter/Interpreter.cpp
+++ b/clang/lib/Interpreter/Interpreter.cpp
@@ -195,7 +195,7 @@ IncrementalCompilerBuilder::create(std::string TT,
   std::optional<std::string> Path = TC.getCompilerRTPath();
   if (Path && OrcRuntimePath) {
     *OrcRuntimePath = *Path;
-    if(llvm::sys::fs::exists(*OrcRuntimePath + "/liborc_rt.a"))
+    if (llvm::sys::fs::exists(*OrcRuntimePath + "/liborc_rt.a"))
       *OrcRuntimePath = *OrcRuntimePath + "/liborc_rt.a";
     else if (llvm::sys::fs::exists(*OrcRuntimePath + "/liborc_rt_osx.a"))
       *OrcRuntimePath = *OrcRuntimePath + "/liborc_rt_osx.a";
diff --git a/clang/tools/clang-repl/ClangRepl.cpp 
b/clang/tools/clang-repl/ClangRepl.cpp
index fbd48f09b..41c60dd2a 100644
--- a/clang/tools/clang-repl/ClangRepl.cpp
+++ b/clang/tools/clang-repl/ClangRepl.cpp
@@ -128,7 +128,7 @@ static llvm::Error sanitizeOopArguments(const char *ArgV0,
   // Out-of-process executors require the ORC runtime.
   if (OrcRuntimePath.empty() && (OOPExecutor.getNumOccurrences() ||
                                  OOPExecutorConnect.getNumOccurrences())) {
-    if(!llvm::sys::fs::exists(_OrcRuntimePath))
+    if (!llvm::sys::fs::exists(_OrcRuntimePath))
       return llvm::make_error<llvm::StringError>(
           "The ORC runtime is required for out-of-process execution",
           llvm::inconvertibleErrorCode());

``````````

</details>


https://github.com/llvm/llvm-project/pull/155140
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to