aboutsummaryrefslogtreecommitdiff
path: root/gdb/bcache.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2023-02-08 15:36:23 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2023-02-08 15:46:02 -0500
commitc583a2520616c2736cffc389c89a48b159366e6c (patch)
treeb4925f26506fcee96c16119431c01760f05db95d /gdb/bcache.h
parentca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff)
downloadbinutils-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/bcache.h')
-rw-r--r--gdb/bcache.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/gdb/bcache.h b/gdb/bcache.h
index d3bebd1..0e4d73d 100644
--- a/gdb/bcache.h
+++ b/gdb/bcache.h
@@ -136,7 +136,8 @@
*/
-namespace gdb {
+namespace gdb
+{
struct bstring;
@@ -174,7 +175,9 @@ protected:
private:
/* All the bstrings are allocated here. */
- struct obstack m_cache {};
+ struct obstack m_cache
+ {
+ };
/* How many hash buckets we're using. */
unsigned int m_num_buckets = 0;
@@ -184,11 +187,12 @@ private:
struct bstring **m_bucket = nullptr;
/* Statistics. */
- unsigned long m_unique_count = 0; /* number of unique strings */
- long m_total_count = 0; /* total number of strings cached, including dups */
- long m_unique_size = 0; /* size of unique strings, in bytes */
- long m_total_size = 0; /* total number of bytes cached, including dups */
- long m_structure_size = 0; /* total size of bcache, including infrastructure */
+ unsigned long m_unique_count = 0; /* number of unique strings */
+ long m_total_count = 0; /* total number of strings cached, including dups */
+ long m_unique_size = 0; /* size of unique strings, in bytes */
+ long m_total_size = 0; /* total number of bytes cached, including dups */
+ long m_structure_size
+ = 0; /* total size of bcache, including infrastructure */
/* Number of times that the hash table is expanded and hence
re-built, and the corresponding number of times that a string is
[re]hashed as part of entering it into the expanded table. The