Skip to content

Commit f8da9f1

Browse files
committed
format
1 parent 693e29c commit f8da9f1

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

lldb/test/API/tools/lldb-dap/moduleSymbols/main.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
int func1() {
2-
return 42;
3-
}
1+
int func1() { return 42; }
42

5-
int func2() {
6-
return 84;
7-
}
3+
int func2() { return 84; }
84

95
int main() {
106
func1();

lldb/tools/lldb-dap/Handler/ModuleSymbolsRequestHandler.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ ModuleSymbolsRequestHandler::Run(const ModuleSymbolsArguments &args) const {
5353

5454
const size_t num_symbols = module.GetNumSymbols();
5555
const size_t start_index = args.startIndex.value_or(0);
56-
const size_t end_index = std::min(start_index + args.count.value_or(num_symbols), num_symbols);
56+
const size_t end_index =
57+
std::min(start_index + args.count.value_or(num_symbols), num_symbols);
5758
for (size_t i = start_index; i < end_index; ++i) {
5859
lldb::SBSymbol symbol = module.GetSymbolAtIndex(i);
5960
if (!symbol.IsValid())

lldb/tools/lldb-dap/Protocol/ProtocolRequests.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,8 @@ struct ModuleSymbolsArguments {
988988
/// The module path.
989989
std::string moduleName;
990990

991-
/// The index of the first symbol to return; if omitted, start at the beginning.
991+
/// The index of the first symbol to return; if omitted, start at the
992+
/// beginning.
992993
std::optional<uint32_t> startIndex;
993994

994995
/// The number of symbols to return; if omitted, all symbols are returned.

0 commit comments

Comments
 (0)