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 h,cpp -- 
lldb/include/lldb/Host/posix/HostInfoPosix.h 
lldb/source/Host/posix/HostInfoPosix.cpp
``````````

</details>

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

``````````diff
diff --git a/lldb/include/lldb/Host/posix/HostInfoPosix.h 
b/lldb/include/lldb/Host/posix/HostInfoPosix.h
index 1fef837c5..c4a7f1367 100644
--- a/lldb/include/lldb/Host/posix/HostInfoPosix.h
+++ b/lldb/include/lldb/Host/posix/HostInfoPosix.h
@@ -40,6 +40,7 @@ public:
   static std::optional<std::string> GetOSBuildString();
 
   static llvm::Expected<llvm::StringRef> GetSDKRoot(SDKOptions options);
+
 protected:
   static bool ComputeSupportExeDirectory(FileSpec &file_spec);
   static bool ComputeHeaderDirectory(FileSpec &file_spec);
diff --git a/lldb/source/Host/posix/HostInfoPosix.cpp 
b/lldb/source/Host/posix/HostInfoPosix.cpp
index 768787e69..704f77891 100644
--- a/lldb/source/Host/posix/HostInfoPosix.cpp
+++ b/lldb/source/Host/posix/HostInfoPosix.cpp
@@ -140,8 +140,8 @@ std::optional<std::string> 
PosixUserIDResolver::DoGetGroupName(id_t gid) {
   return std::nullopt;
 }
 
-/// The SDK is the directory where the system C headers, libraries, can be 
found.
-/// On POSIX platforms this is simply the root directory.
+/// The SDK is the directory where the system C headers, libraries, can be
+/// found. On POSIX platforms this is simply the root directory.
 llvm::Expected<llvm::StringRef> HostInfoPosix::GetSDKRoot(SDKOptions options) {
   return "/";
 }

``````````

</details>


https://github.com/llvm/llvm-project/pull/146963
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to