Skip to content

Commit d360775

Browse files
committed
[Target] Fix formatting and whitespace (NFC)
llvm-svn: 366522
1 parent 0288c26 commit d360775

File tree

2 files changed

+191
-204
lines changed

2 files changed

+191
-204
lines changed

lldb/include/lldb/Target/Target.h

Lines changed: 43 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class TargetProperties : public Properties {
121121

122122
FileSpecList GetExecutableSearchPaths();
123123

124-
void AppendExecutableSearchPaths(const FileSpec&);
124+
void AppendExecutableSearchPaths(const FileSpec &);
125125

126126
FileSpecList GetDebugFileSearchPaths();
127127

@@ -495,7 +495,7 @@ class Target : public std::enable_shared_from_this<Target>,
495495

496496
static void SetDefaultArchitecture(const ArchSpec &arch);
497497

498-
/// Find a binary on the system and return its Module,
498+
/// Find a binary on the system and return its Module,
499499
/// or return an existing Module that is already in the Target.
500500
///
501501
/// Given a ModuleSpec, find a binary satisifying that specification,
@@ -507,27 +507,26 @@ class Target : public std::enable_shared_from_this<Target>,
507507
/// e.g. UUID, architecture, file path.
508508
///
509509
/// \param[in] notify
510-
/// If notify is true, and the Module is new to this Target,
511-
/// Target::ModulesDidLoad will be called.
512-
/// If notify is false, it is assumed that the caller is adding
513-
/// multiple Modules and will call ModulesDidLoad with the
510+
/// If notify is true, and the Module is new to this Target,
511+
/// Target::ModulesDidLoad will be called.
512+
/// If notify is false, it is assumed that the caller is adding
513+
/// multiple Modules and will call ModulesDidLoad with the
514514
/// full list at the end.
515515
/// ModulesDidLoad must be called when a Module/Modules have
516516
/// been added to the target, one way or the other.
517517
///
518518
/// \param[out] error_ptr
519-
/// Optional argument, pointing to a Status object to fill in
519+
/// Optional argument, pointing to a Status object to fill in
520520
/// with any results / messages while attempting to find/load
521521
/// this binary. Many callers will be internal functions that
522522
/// will handle / summarize the failures in a custom way and
523523
/// don't use these messages.
524524
///
525-
/// \return
525+
/// \return
526526
/// An empty ModuleSP will be returned if no matching file
527527
/// was found. If error_ptr was non-nullptr, an error message
528528
/// will likely be provided.
529-
lldb::ModuleSP GetOrCreateModule(const ModuleSpec &module_spec,
530-
bool notify,
529+
lldb::ModuleSP GetOrCreateModule(const ModuleSpec &module_spec, bool notify,
531530
Status *error_ptr = nullptr);
532531

533532
// Settings accessors
@@ -644,14 +643,11 @@ class Target : public std::enable_shared_from_this<Target>,
644643
Args *additional_args = nullptr,
645644
Status *additional_args_error = nullptr);
646645

647-
lldb::BreakpointSP
648-
CreateScriptedBreakpoint(const llvm::StringRef class_name,
649-
const FileSpecList *containingModules,
650-
const FileSpecList *containingSourceFiles,
651-
bool internal,
652-
bool request_hardware,
653-
StructuredData::ObjectSP extra_args_sp,
654-
Status *creation_error = nullptr);
646+
lldb::BreakpointSP CreateScriptedBreakpoint(
647+
const llvm::StringRef class_name, const FileSpecList *containingModules,
648+
const FileSpecList *containingSourceFiles, bool internal,
649+
bool request_hardware, StructuredData::ObjectSP extra_args_sp,
650+
Status *creation_error = nullptr);
655651

656652
// This is the same as the func_name breakpoint except that you can specify a
657653
// vector of names. This is cheaper than a regular expression breakpoint in
@@ -690,43 +686,42 @@ class Target : public std::enable_shared_from_this<Target>,
690686
}
691687

692688
WatchpointList &GetWatchpointList() { return m_watchpoint_list; }
693-
689+
694690
// Manages breakpoint names:
695691
void AddNameToBreakpoint(BreakpointID &id, const char *name, Status &error);
696-
697-
void AddNameToBreakpoint(lldb::BreakpointSP &bp_sp, const char *name,
692+
693+
void AddNameToBreakpoint(lldb::BreakpointSP &bp_sp, const char *name,
698694
Status &error);
699-
700-
void RemoveNameFromBreakpoint(lldb::BreakpointSP &bp_sp,
701-
ConstString name);
702-
703-
BreakpointName *FindBreakpointName(ConstString name, bool can_create,
695+
696+
void RemoveNameFromBreakpoint(lldb::BreakpointSP &bp_sp, ConstString name);
697+
698+
BreakpointName *FindBreakpointName(ConstString name, bool can_create,
704699
Status &error);
705-
700+
706701
void DeleteBreakpointName(ConstString name);
707-
702+
708703
void ConfigureBreakpointName(BreakpointName &bp_name,
709704
const BreakpointOptions &options,
710705
const BreakpointName::Permissions &permissions);
711-
void ApplyNameToBreakpoints(BreakpointName &bp_name);
712-
706+
void ApplyNameToBreakpoints(BreakpointName &bp_name);
707+
713708
// This takes ownership of the name obj passed in.
714709
void AddBreakpointName(BreakpointName *bp_name);
715-
710+
716711
void GetBreakpointNames(std::vector<std::string> &names);
717-
718-
//This call removes ALL breakpoints regardless of permission.
712+
713+
// This call removes ALL breakpoints regardless of permission.
719714
void RemoveAllBreakpoints(bool internal_also = false);
720-
715+
721716
// This removes all the breakpoints, but obeys the ePermDelete on them.
722717
void RemoveAllowedBreakpoints();
723718

724719
void DisableAllBreakpoints(bool internal_also = false);
725-
720+
726721
void DisableAllowedBreakpoints();
727722

728723
void EnableAllBreakpoints(bool internal_also = false);
729-
724+
730725
void EnableAllowedBreakpoints();
731726

732727
bool DisableBreakpointByID(lldb::break_id_t break_id);
@@ -1038,11 +1033,12 @@ class Target : public std::enable_shared_from_this<Target>,
10381033
// parameters have the same meaning as for the UserExpression constructor.
10391034
// Returns a new-ed object which the caller owns.
10401035

1041-
UserExpression *GetUserExpressionForLanguage(
1042-
llvm::StringRef expr, llvm::StringRef prefix, lldb::LanguageType language,
1043-
Expression::ResultType desired_type,
1044-
const EvaluateExpressionOptions &options,
1045-
ValueObject *ctx_obj, Status &error);
1036+
UserExpression *
1037+
GetUserExpressionForLanguage(llvm::StringRef expr, llvm::StringRef prefix,
1038+
lldb::LanguageType language,
1039+
Expression::ResultType desired_type,
1040+
const EvaluateExpressionOptions &options,
1041+
ValueObject *ctx_obj, Status &error);
10461042

10471043
// Creates a FunctionCaller for the given language, the rest of the
10481044
// parameters have the same meaning as for the FunctionCaller constructor.
@@ -1104,8 +1100,7 @@ class Target : public std::enable_shared_from_this<Target>,
11041100
llvm::StringRef expression, ExecutionContextScope *exe_scope,
11051101
lldb::ValueObjectSP &result_valobj_sp,
11061102
const EvaluateExpressionOptions &options = EvaluateExpressionOptions(),
1107-
std::string *fixed_expression = nullptr,
1108-
ValueObject *ctx_obj = nullptr);
1103+
std::string *fixed_expression = nullptr, ValueObject *ctx_obj = nullptr);
11091104

11101105
lldb::ExpressionVariableSP GetPersistentVariable(ConstString name);
11111106

@@ -1165,7 +1160,9 @@ class Target : public std::enable_shared_from_this<Target>,
11651160

11661161
void SetIsActive(bool is_active) { m_active = is_active; }
11671162

1168-
void SetAutoContinue(bool auto_continue) {m_auto_continue = auto_continue;}
1163+
void SetAutoContinue(bool auto_continue) {
1164+
m_auto_continue = auto_continue;
1165+
}
11691166

11701167
bool GetAutoContinue() const { return m_auto_continue; }
11711168

@@ -1260,7 +1257,7 @@ class Target : public std::enable_shared_from_this<Target>,
12601257
const lldb::ModuleSP &module_sp) override;
12611258

12621259
void NotifyModuleRemoved(const ModuleList &module_list,
1263-
const lldb::ModuleSP &module_sp) override;
1260+
const lldb::ModuleSP &module_sp) override;
12641261

12651262
void NotifyModuleUpdated(const ModuleList &module_list,
12661263
const lldb::ModuleSP &old_module_sp,
@@ -1295,7 +1292,7 @@ class Target : public std::enable_shared_from_this<Target>,
12951292
BreakpointList m_internal_breakpoint_list;
12961293
using BreakpointNameList = std::map<ConstString, BreakpointName *>;
12971294
BreakpointNameList m_breakpoint_names;
1298-
1295+
12991296
lldb::BreakpointSP m_last_created_breakpoint;
13001297
WatchpointList m_watchpoint_list;
13011298
lldb::WatchpointSP m_last_created_watchpoint;

0 commit comments

Comments
 (0)