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,hpp -- 
clang/include/clang/IPC2978/IPCManagerBS.hpp 
clang/include/clang/IPC2978/IPCManagerCompiler.hpp 
clang/include/clang/IPC2978/Manager.hpp 
clang/include/clang/IPC2978/Messages.hpp 
clang/include/clang/IPC2978/expected.hpp 
clang/include/clang/IPC2978/rapidhash.h clang/lib/IPC2978/IPCManagerBS.cpp 
clang/lib/IPC2978/IPCManagerCompiler.cpp clang/lib/IPC2978/Manager.cpp 
clang/unittests/IPC2978/IPC2978Test.cpp 
clang/include/clang/Frontend/CompilerInstance.h 
clang/include/clang/Lex/HeaderSearchOptions.h 
clang/include/clang/Lex/ModuleLoader.h clang/lib/Driver/ToolChains/Clang.cpp 
clang/lib/Frontend/CompilerInstance.cpp 
clang/lib/Frontend/CompilerInvocation.cpp clang/lib/Lex/PPDirectives.cpp 
clang/lib/Parse/ParseAST.cpp clang/lib/Serialization/ASTReader.cpp 
clang/tools/driver/cc1_main.cpp llvm/include/llvm/Support/raw_ostream.h 
llvm/lib/Support/ToolOutputFile.cpp llvm/lib/Support/raw_ostream.cpp 
llvm/lib/Target/SystemZ/SystemZISelLowering.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/include/clang/Frontend/CompilerInstance.h 
b/clang/include/clang/Frontend/CompilerInstance.h
index 41b356863..037422a3d 100644
--- a/clang/include/clang/Frontend/CompilerInstance.h
+++ b/clang/include/clang/Frontend/CompilerInstance.h
@@ -942,7 +942,7 @@ public:
 
   bool lookupMissingImports(StringRef Name, SourceLocation TriggerLoc) 
override;
 
-  void makeModuleAndDependenciesVisible( Module *Mod);
+  void makeModuleAndDependenciesVisible(Module *Mod);
   Module *loadIPCReceivedHeaderUnit(StringRef FileName,
                                     SourceLocation ImportLoc) override;
 
diff --git a/clang/lib/Frontend/CompilerInstance.cpp 
b/clang/lib/Frontend/CompilerInstance.cpp
index aff1bb9b9..173a92884 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/lib/Frontend/CompilerInstance.cpp
@@ -2284,7 +2284,8 @@ void 
CompilerInstance::makeModuleAndDependenciesVisible(Module *Mod) {
   }
 }
 
-Module *CompilerInstance::loadIPCReceivedHeaderUnit(const StringRef FileName,
+Module *
+CompilerInstance::loadIPCReceivedHeaderUnit(const StringRef FileName,
                                             const SourceLocation ImportLoc) {
   serialization::ModuleFile *ModuleFile =
       getASTReader()->getModuleManager().lookupByFileName(FileName);
diff --git a/clang/tools/driver/cc1_main.cpp b/clang/tools/driver/cc1_main.cpp
index 053f6e4b9..b97976c50 100644
--- a/clang/tools/driver/cc1_main.cpp
+++ b/clang/tools/driver/cc1_main.cpp
@@ -25,8 +25,8 @@
 #include "clang/Frontend/TextDiagnosticPrinter.h"
 #include "clang/Frontend/Utils.h"
 #include "clang/FrontendTool/Utils.h"
-#include "clang/Options/Options.h"
 #include "clang/IPC2978/IPCManagerCompiler.hpp"
+#include "clang/Options/Options.h"
 #include "clang/Serialization/ObjectFilePCHContainerReader.h"
 #include "llvm/ADT/Statistic.h"
 #include "llvm/ADT/StringExtras.h"

``````````

</details>


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

Reply via email to