Skip to content

Commit ff3e98e

Browse files
committed
Fix formatting
1 parent 98a3330 commit ff3e98e

File tree

4 files changed

+7
-11
lines changed

4 files changed

+7
-11
lines changed

lldb/include/lldb/Core/SourceManager.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,7 @@ class SourceManager {
177177
size_t DisplayMoreWithLineNumbers(Stream *s, uint32_t count, bool reverse,
178178
const SymbolContextList *bp_locs = nullptr);
179179

180-
bool SetDefaultFileAndLine(SupportFileSP support_file_sp,
181-
uint32_t line);
180+
bool SetDefaultFileAndLine(SupportFileSP support_file_sp, uint32_t line);
182181

183182
struct SupportFileAndLine {
184183
SupportFileSP support_file_sp;

lldb/include/lldb/Symbol/Function.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,8 +469,7 @@ class Function : public UserID, public SymbolContextScope {
469469
///
470470
/// \param[out] line_no
471471
/// The line number.
472-
void GetStartLineSourceInfo(SupportFileSP &source_file_sp,
473-
uint32_t &line_no);
472+
void GetStartLineSourceInfo(SupportFileSP &source_file_sp, uint32_t &line_no);
474473

475474
using SourceRange = Range<uint32_t, uint32_t>;
476475
/// Find the file and line number range of the function.

lldb/source/Core/SourceManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@
2525
#include "lldb/Target/Target.h"
2626
#include "lldb/Utility/AnsiTerminal.h"
2727
#include "lldb/Utility/ConstString.h"
28-
#include "lldb/Utility/SupportFile.h"
2928
#include "lldb/Utility/DataBuffer.h"
3029
#include "lldb/Utility/LLDBLog.h"
3130
#include "lldb/Utility/Log.h"
3231
#include "lldb/Utility/RegularExpression.h"
3332
#include "lldb/Utility/Stream.h"
33+
#include "lldb/Utility/SupportFile.h"
3434
#include "lldb/lldb-enumerations.h"
3535

3636
#include "llvm/ADT/Twine.h"

lldb/source/Utility/FileSpecList.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,9 @@ bool FileSpecList::AppendIfUnique(const FileSpec &file_spec) {
4545
// FIXME: Replace this with a DenseSet at the call site. It is inefficient.
4646
bool SupportFileList::AppendIfUnique(const FileSpec &file_spec) {
4747
collection::iterator end = m_files.end();
48-
if (find_if(m_files.begin(), end,
49-
[&](const SupportFileSP &support_file) {
50-
return support_file->GetSpecOnly() == file_spec;
51-
}) == end) {
48+
if (find_if(m_files.begin(), end, [&](const SupportFileSP &support_file) {
49+
return support_file->GetSpecOnly() == file_spec;
50+
}) == end) {
5251
Append(file_spec);
5352
return true;
5453
}
@@ -214,8 +213,7 @@ const FileSpec &SupportFileList::GetFileSpecAtIndex(size_t idx) const {
214213
return g_empty_file_spec;
215214
}
216215

217-
SupportFileSP
218-
SupportFileList::GetSupportFileAtIndex(size_t idx) const {
216+
SupportFileSP SupportFileList::GetSupportFileAtIndex(size_t idx) const {
219217
if (idx < m_files.size())
220218
return m_files[idx];
221219
return {};

0 commit comments

Comments
 (0)