Skip to content

Commit 5001e68

Browse files
committed
Formatting.
1 parent b5a0c08 commit 5001e68

27 files changed

+203
-173
lines changed

lldb/include/lldb/API/SBBreakpoint.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,11 @@ class LLDB_API SBBreakpoint {
157157
/// Can only be called from a ScriptedBreakpointResolver...
158158
SBError
159159
AddLocation(SBAddress &address);
160-
/// Add a "Facade location" to the breakpoint. This returns the Facade
161-
/// Location that was added, which you can then use in
160+
/// Add a "Facade location" to the breakpoint. This returns the Facade
161+
/// Location that was added, which you can then use in
162162
/// get_location_description and was_hit in your breakpoint resolver.
163163
/// Can only be called from a ScriptedBreakpointResolver.
164-
SBBreakpointLocation
165-
AddFacadeLocation();
164+
SBBreakpointLocation AddFacadeLocation();
166165

167166
SBStructuredData SerializeToStructuredData();
168167

lldb/include/lldb/API/SBBreakpointLocation.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ namespace lldb {
2525

2626
class LLDB_API SBBreakpointLocation {
2727
friend class lldb_private::ScriptInterpreter;
28+
2829
public:
2930
SBBreakpointLocation();
3031

lldb/include/lldb/API/SBFrame.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ class LLDB_API SBFrame {
225225
friend class SBInstruction;
226226
friend class SBThread;
227227
friend class SBValue;
228-
228+
229229
friend class lldb_private::ScriptInterpreter;
230230
friend class lldb_private::python::SWIGBridge;
231231
friend class lldb_private::lua::SWIGBridge;

lldb/include/lldb/Breakpoint/Breakpoint.h

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,8 @@ class Breakpoint : public std::enable_shared_from_this<Breakpoint>,
248248
/// Returns a pointer to the new location.
249249
lldb::BreakpointLocationSP AddLocation(const Address &addr,
250250
bool *new_location = nullptr);
251-
/// Add a `facade` location to the breakpoint's collection of facade locations.
252-
/// This is only meant to be called by the breakpoint's resolver.
251+
/// Add a `facade` location to the breakpoint's collection of facade
252+
/// locations. This is only meant to be called by the breakpoint's resolver.
253253
/// Facade locations are placeholders that a scripted breakpoint can use to
254254
/// represent the stop locations provided by the breakpoint. The scripted
255255
/// breakpoint should record the id of the facade location, and provide
@@ -263,7 +263,7 @@ class Breakpoint : public std::enable_shared_from_this<Breakpoint>,
263263
/// \return
264264
/// Returns a pointer to the new location.
265265
lldb::BreakpointLocationSP AddFacadeLocation();
266-
266+
267267
lldb::BreakpointLocationSP GetFacadeLocationByID(lldb::break_id_t);
268268

269269
/// Find a breakpoint location by Address.
@@ -293,28 +293,30 @@ class Breakpoint : public std::enable_shared_from_this<Breakpoint>,
293293
/// The ID specifying the location.
294294
///
295295
/// \param[in] use_facade
296-
/// If \b true, then prefer facade locations over "real" ones if they exist.
296+
/// If \b true, then prefer facade locations over "real" ones if they exist.
297297
///
298298
/// \return
299299
/// Returns a shared pointer to the location with ID \a bp_loc_id. The
300300
/// pointer
301301
/// in the shared pointer will be nullptr if there is no location with that
302302
/// ID.
303-
lldb::BreakpointLocationSP FindLocationByID(lldb::break_id_t bp_loc_id, bool use_facade = true);
303+
lldb::BreakpointLocationSP FindLocationByID(lldb::break_id_t bp_loc_id,
304+
bool use_facade = true);
304305

305306
/// Get breakpoint locations by index.
306307
///
307308
/// \param[in] index
308309
/// The location index.
309310
///
310311
/// \param[in] use_facade
311-
/// If \b true, then prefer facade locations over "real" ones if they exist.
312+
/// If \b true, then prefer facade locations over "real" ones if they exist.
312313
///
313314
/// \return
314315
/// Returns a shared pointer to the location with index \a
315316
/// index. The shared pointer might contain nullptr if \a index is
316317
/// greater than then number of actual locations.
317-
lldb::BreakpointLocationSP GetLocationAtIndex(size_t index, bool use_facade = true);
318+
lldb::BreakpointLocationSP GetLocationAtIndex(size_t index,
319+
bool use_facade = true);
318320

319321
/// Removes all invalid breakpoint locations.
320322
///
@@ -436,7 +438,7 @@ class Breakpoint : public std::enable_shared_from_this<Breakpoint>,
436438
/// breakpoint sites.
437439
///
438440
/// \param[in] use_facade
439-
/// If \b true, then prefer facade locations over "real" ones if they exist.
441+
/// If \b true, then prefer facade locations over "real" ones if they exist.
440442
///
441443
/// \return
442444
/// The number locations resolved breakpoint sites.
@@ -451,7 +453,7 @@ class Breakpoint : public std::enable_shared_from_this<Breakpoint>,
451453
/// Return the number of breakpoint locations.
452454
///
453455
/// \param[in] use_facade
454-
/// If \b true, then prefer facade locations over "real" ones if they exist.
456+
/// If \b true, then prefer facade locations over "real" ones if they exist.
455457
///
456458
/// \return
457459
/// The number breakpoint locations.
@@ -563,17 +565,14 @@ class Breakpoint : public std::enable_shared_from_this<Breakpoint>,
563565

564566
enum TypeDisplay {
565567
eDisplayFacade = 1,
566-
eDisplayReal = 1 << 1,
568+
eDisplayReal = 1 << 1,
567569
eDisplayHeader = 1 << 2
568570
};
569571

570572
void GetDescriptionForType(Stream *s, lldb::DescriptionLevel level,
571-
uint8_t display_type, bool show_locations);
572-
573-
bool HasFacadeLocations() {
574-
return m_facade_locations.GetSize() != 0;
575-
}
573+
uint8_t display_type, bool show_locations);
576574

575+
bool HasFacadeLocations() { return m_facade_locations.GetSize() != 0; }
577576

578577
public:
579578
bool MatchesName(const char *name) {

lldb/include/lldb/Breakpoint/BreakpointLocation.h

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,17 @@ class BreakpointLocation
6262
Target &GetTarget();
6363

6464
/// This is a programmatic version of a breakpoint "condition". When a
65-
/// breakpoint is hit, WasHit will get called before the synchronous ShouldStop
66-
/// callback is run, and if it returns an empty BreakpointLocationSP, lldb will
67-
/// act as if that breakpoint wasn't hit.
65+
/// breakpoint is hit, WasHit will get called before the synchronous
66+
/// ShouldStop callback is run, and if it returns an empty
67+
/// BreakpointLocationSP, lldb will act as if that breakpoint wasn't hit.
6868
///
6969
/// \param[in] context
7070
/// The context at the stop point
71-
///
71+
///
7272
/// \return
7373
/// This will return the breakpoint location that was hit on this stop.
7474
/// If there was no facade location this will be the original location.
75-
/// If the shared pointer is empty, then we'll treat it as if the
75+
/// If the shared pointer is empty, then we'll treat it as if the
7676
/// breakpoint was not hit.
7777
lldb::BreakpointLocationSP WasHit(StoppointCallbackContext *context);
7878

@@ -84,16 +84,16 @@ class BreakpointLocation
8484
///
8585
/// \param[in] context
8686
/// The context at the stop point
87-
///
87+
///
8888
/// \param[out] facade_loc_sp
8989
/// If this stop should be attributed not to the location that was hit, but
9090
/// to a facade location, it will be returned in this facade_loc_sp.
91-
///
91+
///
9292
/// \return
9393
/// \b true if this breakpoint location thinks we should stop,
9494
/// \b false otherwise.
95-
bool ShouldStop(StoppointCallbackContext *context,
96-
lldb::BreakpointLocationSP &facade_loc_sp);
95+
bool ShouldStop(StoppointCallbackContext *context,
96+
lldb::BreakpointLocationSP &facade_loc_sp);
9797

9898
// The next section deals with various breakpoint options.
9999

@@ -373,7 +373,7 @@ class BreakpointLocation
373373
/// Constructor.
374374
///
375375
/// \param[in] loc_id
376-
/// The location id of the new location.
376+
/// The location id of the new location.
377377
///
378378
/// \param[in] owner
379379
/// A back pointer to the breakpoint that owns this location.
@@ -390,10 +390,10 @@ class BreakpointLocation
390390
bool check_for_resolver = true);
391391

392392
/// This is the constructor for locations with no address. Currently this is
393-
/// just used for Facade locations.
393+
/// just used for Facade locations.
394394
///
395395
/// \param[in] loc_id
396-
/// The location id of the new location.
396+
/// The location id of the new location.
397397
///
398398
/// \param[in] owner
399399
/// A back pointer to the breakpoint that owns this location.
@@ -403,6 +403,7 @@ class BreakpointLocation
403403
BreakpointLocation(lldb::break_id_t loc_id, Breakpoint &owner);
404404
bool IsValid() const { return m_is_valid; }
405405
bool IsFacade() const { return m_is_facade; }
406+
406407
private:
407408
// Data members:
408409
bool m_should_resolve_indirect_functions;
@@ -431,10 +432,10 @@ class BreakpointLocation
431432
/// location was given somewhere in the virtual inlined call stack since the
432433
/// Address always resolves to the lowest entry in the stack.
433434
std::optional<LineEntry> m_preferred_line_entry;
434-
bool m_is_valid = true; /// Because Facade locations don't have sites
435-
/// we can't use the presence of the site to mean
436-
/// this breakpoint is valid, but must manage
437-
/// the state directly.
435+
bool m_is_valid = true; /// Because Facade locations don't have sites
436+
/// we can't use the presence of the site to mean
437+
/// this breakpoint is valid, but must manage
438+
/// the state directly.
438439
bool m_is_facade = false; /// Facade locations aren't directly triggered
439440
/// and don't have a breakpoint site. They are
440441
/// a useful fiction when you want to represent

lldb/include/lldb/Breakpoint/BreakpointLocationCollection.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ class BreakpointLocationCollection {
111111
///
112112
/// \return
113113
/// \b true if we should stop, \b false otherwise.
114-
bool ShouldStop(StoppointCallbackContext *context, BreakpointLocationCollection &stopped_bp_locs);
114+
bool ShouldStop(StoppointCallbackContext *context,
115+
BreakpointLocationCollection &stopped_bp_locs);
115116

116117
/// Print a description of the breakpoint locations in this list
117118
/// to the stream \a s.

lldb/include/lldb/Breakpoint/BreakpointLocationList.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ class BreakpointLocationList {
140140
///
141141
/// \return
142142
/// \b true if we should stop, \b false otherwise.
143-
bool ShouldStop(StoppointCallbackContext *context, lldb::break_id_t breakID,
144-
lldb::BreakpointLocationSP &bp_loc_sp);
143+
bool ShouldStop(StoppointCallbackContext *context, lldb::break_id_t breakID,
144+
lldb::BreakpointLocationSP &bp_loc_sp);
145145

146146
/// Returns the number of elements in this breakpoint location list.
147147
///

lldb/include/lldb/Breakpoint/BreakpointResolverScripted.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,12 @@ class BreakpointResolverScripted : public BreakpointResolver {
4545

4646
void GetDescription(Stream *s) override;
4747

48-
lldb::BreakpointLocationSP WasHit(lldb::StackFrameSP frame_sp,
48+
lldb::BreakpointLocationSP WasHit(lldb::StackFrameSP frame_sp,
4949
lldb::BreakpointLocationSP bp_loc_sp);
50-
51-
std::optional<std::string> GetLocationDescription(lldb::BreakpointLocationSP bp_loc_sp,
52-
lldb::DescriptionLevel level);
50+
51+
std::optional<std::string>
52+
GetLocationDescription(lldb::BreakpointLocationSP bp_loc_sp,
53+
lldb::DescriptionLevel level);
5354

5455
void Dump(Stream *s) const override;
5556

lldb/include/lldb/Breakpoint/BreakpointSite.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ class BreakpointSite : public std::enable_shared_from_this<BreakpointSite>,
9999
///
100100
/// \return
101101
/// \b true if we should stop, \b false otherwise.
102-
bool ShouldStop(StoppointCallbackContext *context,
103-
BreakpointLocationCollection &stopping_bp_loc) override;
102+
bool ShouldStop(StoppointCallbackContext *context,
103+
BreakpointLocationCollection &stopping_bp_loc) override;
104104

105105
/// Standard Dump method
106106
void Dump(Stream *s) const override;

lldb/include/lldb/Breakpoint/StoppointSite.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,12 @@ class StoppointSite {
3838

3939
virtual bool IsHardware() const = 0;
4040

41-
virtual bool ShouldStop(StoppointCallbackContext* context) { return false; };
41+
virtual bool ShouldStop(StoppointCallbackContext *context) { return false; };
4242

43-
virtual bool ShouldStop(StoppointCallbackContext* context,
44-
BreakpointLocationCollection &stopping_bp_locs) { return false; };
43+
virtual bool ShouldStop(StoppointCallbackContext *context,
44+
BreakpointLocationCollection &stopping_bp_locs) {
45+
return false;
46+
};
4547

4648
virtual void Dump(Stream* stream) const = 0;
4749

0 commit comments

Comments
 (0)