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 cpp --
lldb/source/Plugins/SymbolLocator/Scripted/SymbolLocatorScripted.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/lldb/source/Plugins/SymbolLocator/Scripted/SymbolLocatorScripted.cpp
b/lldb/source/Plugins/SymbolLocator/Scripted/SymbolLocatorScripted.cpp
index f0e04ed3f..fde8b1c12 100644
--- a/lldb/source/Plugins/SymbolLocator/Scripted/SymbolLocatorScripted.cpp
+++ b/lldb/source/Plugins/SymbolLocator/Scripted/SymbolLocatorScripted.cpp
@@ -143,8 +143,7 @@ SymbolLocatorScripted::LocateSourceFile(const
lldb::ModuleSP &module_sp,
std::optional<FileSpec> result;
std::string cache_key =
- module_sp->GetUUID().GetAsString() + ":" +
- original_source_file.GetPath();
+ module_sp->GetUUID().GetAsString() + ":" +
original_source_file.GetPath();
ForEachScriptedTarget(
[&](Target &target,
@@ -157,14 +156,12 @@ SymbolLocatorScripted::LocateSourceFile(const
lldb::ModuleSP &module_sp,
}
Status error;
- auto located =
- interface_sp->LocateSourceFile(
- module_sp, original_source_file, error);
+ auto located = interface_sp->LocateSourceFile(
+ module_sp, original_source_file, error);
if (!error.Success()) {
Log *log = GetLog(LLDBLog::Symbols);
- LLDB_LOG(log,
- "SymbolLocatorScripted: locate_source_file failed: {0}",
+ LLDB_LOG(log, "SymbolLocatorScripted: locate_source_file failed:
{0}",
error);
}
@@ -175,8 +172,7 @@ SymbolLocatorScripted::LocateSourceFile(const
lldb::ModuleSP &module_sp,
LLDB_LOGF(log,
"SymbolLocatorScripted::%s: resolved source file '%s' "
"to '%s'",
- __FUNCTION__,
- original_source_file.GetPath().c_str(),
+ __FUNCTION__, original_source_file.GetPath().c_str(),
located->GetPath().c_str());
result = located;
return true;
``````````
</details>
https://github.com/llvm/llvm-project/pull/181528
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits