diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:36:23 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:46:02 -0500 |
commit | c583a2520616c2736cffc389c89a48b159366e6c (patch) | |
tree | b4925f26506fcee96c16119431c01760f05db95d /gdb/scoped-mock-context.h | |
parent | ca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff) | |
download | binutils-users/simark/clang-format.zip binutils-users/simark/clang-format.tar.gz binutils-users/simark/clang-format.tar.bz2 |
Run clang-format.shusers/simark/clang-format
Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968
Diffstat (limited to 'gdb/scoped-mock-context.h')
-rw-r--r-- | gdb/scoped-mock-context.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gdb/scoped-mock-context.h b/gdb/scoped-mock-context.h index 9ad7ebf..08cd268 100644 --- a/gdb/scoped-mock-context.h +++ b/gdb/scoped-mock-context.h @@ -26,7 +26,8 @@ #include "progspace-and-thread.h" #if GDB_SELF_TEST -namespace selftests { +namespace selftests +{ /* RAII type to create (and switch to) a temporary mock context. An inferior with a thread, with a process_stratum target pushed. */ @@ -37,10 +38,10 @@ struct scoped_mock_context /* Order here is important. */ Target mock_target; - ptid_t mock_ptid {1, 1}; - program_space mock_pspace {new address_space ()}; - inferior mock_inferior {mock_ptid.pid ()}; - thread_info mock_thread {&mock_inferior, mock_ptid}; + ptid_t mock_ptid { 1, 1 }; + program_space mock_pspace { new address_space () }; + inferior mock_inferior { mock_ptid.pid () }; + thread_info mock_thread { &mock_inferior, mock_ptid }; scoped_restore_current_pspace_and_thread restore_pspace_thread; |