clang-format C++ files

This commit is contained in:
Johannes Altmanninger 2023-03-04 03:51:14 +01:00
parent 326e62515b
commit 0410bacdf6
3 changed files with 5 additions and 11 deletions

View file

@ -491,7 +491,7 @@ job_t *parser_t::job_get_from_pid(pid_t pid) const {
return job_get_from_pid(pid, job_pos);
}
job_t *parser_t::job_get_from_pid(int64_t pid, size_t& job_pos) const {
job_t *parser_t::job_get_from_pid(int64_t pid, size_t &job_pos) const {
for (auto it = job_list.begin(); it != job_list.end(); ++it) {
for (const process_ptr_t &p : (*it)->processes) {
if (p->pid == pid) {
@ -807,6 +807,4 @@ block_t block_t::scope_block(block_type_t type) {
block_t block_t::breakpoint_block() { return block_t(block_type_t::breakpoint); }
block_t block_t::variable_assignment_block() { return block_t(block_type_t::variable_assignment); }
void block_t::ffi_incr_event_blocks() {
++event_blocks;
}
void block_t::ffi_incr_event_blocks() { ++event_blocks; }

View file

@ -433,7 +433,7 @@ class parser_t : public std::enable_shared_from_this<parser_t> {
job_t *job_get_from_pid(pid_t pid) const;
/// Returns the job and position with the given pid.
job_t *job_get_from_pid(int64_t pid, size_t& job_pos) const;
job_t *job_get_from_pid(int64_t pid, size_t &job_pos) const;
/// Returns a new profile item if profiling is active. The caller should fill it in.
/// The parser_t will deallocate it.

View file

@ -176,13 +176,9 @@ RustFFIProcList job_t::ffi_processes() const {
return RustFFIProcList{const_cast<process_ptr_t *>(processes.data()), processes.size()};
}
const job_group_t& job_t::ffi_group() const {
return *group;
}
const job_group_t &job_t::ffi_group() const { return *group; }
bool job_t::ffi_resume() const {
return const_cast<job_t*>(this)->resume();
}
bool job_t::ffi_resume() const { return const_cast<job_t *>(this)->resume(); }
void internal_proc_t::mark_exited(proc_status_t status) {
assert(!exited() && "Process is already exited");