aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2/index-cache.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/dwarf2/index-cache.h
parentca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff)
downloadgdb-users/simark/clang-format.zip
gdb-users/simark/clang-format.tar.gz
gdb-users/simark/clang-format.tar.bz2
Run clang-format.shusers/simark/clang-format
Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968
Diffstat (limited to 'gdb/dwarf2/index-cache.h')
-rw-r--r--gdb/dwarf2/index-cache.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/gdb/dwarf2/index-cache.h b/gdb/dwarf2/index-cache.h
index c4cadd0..095dc21 100644
--- a/gdb/dwarf2/index-cache.h
+++ b/gdb/dwarf2/index-cache.h
@@ -37,14 +37,12 @@ struct index_cache_resource
class index_cache
{
public:
+
/* Change the directory used to save/load index files. */
void set_directory (std::string dir);
/* Return true if the usage of the cache is enabled. */
- bool enabled () const
- {
- return m_enabled;
- }
+ bool enabled () const { return m_enabled; }
/* Enable the cache. */
void enable ();
@@ -66,8 +64,7 @@ public:
std::unique_ptr<index_cache_resource> *resource);
/* Return the number of cache hits. */
- unsigned int n_hits () const
- { return m_n_hits; }
+ unsigned int n_hits () const { return m_n_hits; }
/* Record a cache hit. */
void hit ()
@@ -77,8 +74,7 @@ public:
}
/* Return the number of cache misses. */
- unsigned int n_misses () const
- { return m_n_misses; }
+ unsigned int n_misses () const { return m_n_misses; }
/* Record a cache miss. */
void miss ()