diff options
Diffstat (limited to 'src/common/linux/dwarf_cu_to_module.h')
-rw-r--r-- | src/common/linux/dwarf_cu_to_module.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/common/linux/dwarf_cu_to_module.h b/src/common/linux/dwarf_cu_to_module.h index af330cff..8d8a0b2c 100644 --- a/src/common/linux/dwarf_cu_to_module.h +++ b/src/common/linux/dwarf_cu_to_module.h @@ -120,12 +120,24 @@ class DwarfCUToModule: public dwarf2reader::RootDIEHandler { // compilation unit at OFFSET. WarningReporter(const string &filename, uint64 cu_offset) : filename_(filename), cu_offset_(cu_offset), printed_cu_header_(false), - printed_unpaired_header_(false) { } + printed_unpaired_header_(false), + uncovered_warnings_enabled_(false) { } virtual ~WarningReporter() { } // Set the name of the compilation unit we're processing to NAME. virtual void SetCUName(const string &name) { cu_name_ = name; } + // Accessor and setter for uncovered_warnings_enabled_. + // UncoveredFunction and UncoveredLine only report a problem if that is + // true. By default, these warnings are disabled, because those + // conditions occur occasionally in healthy code. + virtual bool uncovered_warnings_enabled() const { + return uncovered_warnings_enabled_; + } + virtual void set_uncovered_warnings_enabled(bool value) { + uncovered_warnings_enabled_ = value; + } + // A DW_AT_specification in the DIE at OFFSET refers to a DIE we // haven't processed yet, or that wasn't marked as a declaration, // at TARGET. @@ -154,6 +166,7 @@ class DwarfCUToModule: public dwarf2reader::RootDIEHandler { string cu_name_; bool printed_cu_header_; bool printed_unpaired_header_; + bool uncovered_warnings_enabled_; private: // Print a per-CU heading, once. |