[Lldb-commits] [lldb] 1e56f7a - [lldb] clang-format PathMappingList.cpp
Kazu Hirata via lldb-commits
lldb-commits at lists.llvm.org
Sat Jan 7 09:38:49 PST 2023
Author: Kazu Hirata
Date: 2023-01-07T09:38:44-08:00
New Revision: 1e56f7a064099a36ddb8c7930de78fdbaab1f6cc
URL: https://github.com/llvm/llvm-project/commit/1e56f7a064099a36ddb8c7930de78fdbaab1f6cc
DIFF: https://github.com/llvm/llvm-project/commit/1e56f7a064099a36ddb8c7930de78fdbaab1f6cc.diff
LOG: [lldb] clang-format PathMappingList.cpp
This patch clang-formats AppendPathComponents in PathMappingList.cpp.
Without this patch, clang-format would indent the body of the
following function by four spaces.
Added:
Modified:
lldb/source/Target/PathMappingList.cpp
Removed:
################################################################################
diff --git a/lldb/source/Target/PathMappingList.cpp b/lldb/source/Target/PathMappingList.cpp
index 61a4841fbe5f4..82bba8a4b1f97 100644
--- a/lldb/source/Target/PathMappingList.cpp
+++ b/lldb/source/Target/PathMappingList.cpp
@@ -174,13 +174,13 @@ bool PathMappingList::RemapPath(ConstString path,
/// Append components to path, applying style.
static void AppendPathComponents(FileSpec &path, llvm::StringRef components,
llvm::sys::path::Style style) {
- auto component = llvm::sys::path::begin(components, style);
- auto e = llvm::sys::path::end(components);
- while (component != e &&
- llvm::sys::path::is_separator(*component->data(), style))
- ++component;
- for (; component != e; ++component)
- path.AppendPathComponent(*component);
+ auto component = llvm::sys::path::begin(components, style);
+ auto e = llvm::sys::path::end(components);
+ while (component != e &&
+ llvm::sys::path::is_separator(*component->data(), style))
+ ++component;
+ for (; component != e; ++component)
+ path.AppendPathComponent(*component);
}
llvm::Optional<FileSpec>
More information about the lldb-commits
mailing list