[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 6357b47 3/5: Explain why 'handle_exceptions.h
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 6357b47 3/5: Explain why 'handle_exceptions.hpp' is included |
Date: |
Thu, 19 Nov 2020 19:00:12 -0500 (EST) |
branch: master
commit 6357b47ea77b367f0c888489892b184a49c8b0cb
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Explain why 'handle_exceptions.hpp' is included
Searching for a word in a comment on an include-directive (e.g.,
with vim's 'g*') ideally finds a reason for including a header.
Such is now the case for 'handle_exceptions.hpp'. This is useful
when it's unclear why or whether a header must be included, and
for pruning old include-directives that are no longer needed.
---
authenticity.cpp | 2 +-
basic_tables.cpp | 2 +-
bcc_ar.cpp | 2 +-
bcc_cc.cpp | 2 +-
bcc_ld.cpp | 2 +-
bcc_rc.cpp | 2 +-
configurable_settings.cpp | 2 +-
dbdict.cpp | 2 +-
dbvalue.cpp | 2 +-
elapsed_time.cpp | 2 +-
global_settings.cpp | 2 +-
gpt_view.cpp | 2 +-
illustration_view.cpp | 2 +-
illustrator.cpp | 2 +-
input_realization.cpp | 2 +-
ledger_evaluator.cpp | 2 +-
main_common.cpp | 2 +-
main_common_non_wx.cpp | 2 +-
main_wx.cpp | 2 +-
mec_view.cpp | 2 +-
msw_workarounds.cpp | 2 +-
numeric_io_test.cpp | 2 +-
skeleton.cpp | 2 +-
test_coding_rules.cpp | 2 +-
24 files changed, 24 insertions(+), 24 deletions(-)
diff --git a/authenticity.cpp b/authenticity.cpp
index fa2eb7e..cc0cce5 100644
--- a/authenticity.cpp
+++ b/authenticity.cpp
@@ -27,7 +27,7 @@
#include "calendar_date.hpp"
#include "contains.hpp"
#include "global_settings.hpp"
-#include "handle_exceptions.hpp"
+#include "handle_exceptions.hpp" // report_exception()
#include "md5.hpp"
#include "md5sum.hpp"
#include "path_utility.hpp" // fs::path inserter
diff --git a/basic_tables.cpp b/basic_tables.cpp
index 5a311c0..1c1de91 100644
--- a/basic_tables.cpp
+++ b/basic_tables.cpp
@@ -34,7 +34,7 @@
#if 0 // For debugging only.
#include "alert.hpp"
-#include "handle_exceptions.hpp"
+#include "handle_exceptions.hpp" // report_exception()
#endif // 0
#include <string>
diff --git a/bcc_ar.cpp b/bcc_ar.cpp
index 4bb2fe8..aaaaaca 100644
--- a/bcc_ar.cpp
+++ b/bcc_ar.cpp
@@ -36,7 +36,7 @@
// any existing library and create a new one from scratch.
#include "getopt.hpp"
-#include "handle_exceptions.hpp"
+#include "handle_exceptions.hpp" // report_exception()
#include "license.hpp"
#include "system_command.hpp"
diff --git a/bcc_cc.cpp b/bcc_cc.cpp
index c5d687d..a856f0d 100644
--- a/bcc_cc.cpp
+++ b/bcc_cc.cpp
@@ -20,7 +20,7 @@
// snail: Chicares, 186 Belle Woods Drive, Glastonbury CT 06033, USA
#include "getopt.hpp"
-#include "handle_exceptions.hpp"
+#include "handle_exceptions.hpp" // report_exception()
#include "license.hpp"
#include "system_command.hpp"
diff --git a/bcc_ld.cpp b/bcc_ld.cpp
index 44d4ec3..3b20a96 100644
--- a/bcc_ld.cpp
+++ b/bcc_ld.cpp
@@ -36,7 +36,7 @@
// in '.o' are objects, and files ending in '.lib' or '.a' are libraries.
#include "getopt.hpp"
-#include "handle_exceptions.hpp"
+#include "handle_exceptions.hpp" // report_exception()
#include "license.hpp"
#include "miscellany.hpp" // ends_with()
#include "system_command.hpp"
diff --git a/bcc_rc.cpp b/bcc_rc.cpp
index e8d8a5b..91965c2 100644
--- a/bcc_rc.cpp
+++ b/bcc_rc.cpp
@@ -20,7 +20,7 @@
// snail: Chicares, 186 Belle Woods Drive, Glastonbury CT 06033, USA
#include "getopt.hpp"
-#include "handle_exceptions.hpp"
+#include "handle_exceptions.hpp" // report_exception()
#include "license.hpp"
#include "system_command.hpp"
diff --git a/configurable_settings.cpp b/configurable_settings.cpp
index 8539555..2f0238b 100644
--- a/configurable_settings.cpp
+++ b/configurable_settings.cpp
@@ -27,7 +27,7 @@
#include "alert.hpp"
#include "contains.hpp"
#include "data_directory.hpp" // AddDataDir()
-#include "handle_exceptions.hpp"
+#include "handle_exceptions.hpp" // report_exception()
#include "map_lookup.hpp"
#include "mc_enum.hpp" // all_strings<>()
#include "mc_enum_type_enums.hpp" // mcenum_report_column
diff --git a/dbdict.cpp b/dbdict.cpp
index 5ae3100..c5d5391 100644
--- a/dbdict.cpp
+++ b/dbdict.cpp
@@ -31,7 +31,7 @@
#include "data_directory.hpp"
#include "dbnames.hpp"
#include "global_settings.hpp"
-#include "handle_exceptions.hpp"
+#include "handle_exceptions.hpp" // report_exception()
#include "ieee754.hpp" // infinity<>()
#include "mc_enum_type_enums.hpp"
#include "miscellany.hpp"
diff --git a/dbvalue.cpp b/dbvalue.cpp
index b980831..fb7b6b4 100644
--- a/dbvalue.cpp
+++ b/dbvalue.cpp
@@ -28,7 +28,7 @@
#include "contains.hpp"
#include "dbnames.hpp"
#include "et_vector.hpp"
-#include "handle_exceptions.hpp"
+#include "handle_exceptions.hpp" // report_exception()
#include "math_functions.hpp" // lesser_of()
#include "print_matrix.hpp"
#include "value_cast.hpp"
diff --git a/elapsed_time.cpp b/elapsed_time.cpp
index c3df10b..7d3139e 100644
--- a/elapsed_time.cpp
+++ b/elapsed_time.cpp
@@ -19,7 +19,7 @@
// email: <gchicares@sbcglobal.net>
// snail: Chicares, 186 Belle Woods Drive, Glastonbury CT 06033, USA
-#include "handle_exceptions.hpp"
+#include "handle_exceptions.hpp" // report_exception()
#include "main_common.hpp"
#include "system_command.hpp"
#include "timer.hpp"
diff --git a/global_settings.cpp b/global_settings.cpp
index 71c17b7..1e07a39 100644
--- a/global_settings.cpp
+++ b/global_settings.cpp
@@ -24,7 +24,7 @@
#include "global_settings.hpp"
#include "alert.hpp"
-#include "handle_exceptions.hpp"
+#include "handle_exceptions.hpp" // report_exception()
#include "path_utility.hpp"
/// 6.7/4 might seem to permit instance() to call the ctor before the
diff --git a/gpt_view.cpp b/gpt_view.cpp
index d722ad5..760ae11 100644
--- a/gpt_view.cpp
+++ b/gpt_view.cpp
@@ -27,7 +27,7 @@
#include "gpt_document.hpp"
#include "gpt_input.hpp"
#include "gpt_server.hpp"
-#include "handle_exceptions.hpp"
+#include "handle_exceptions.hpp" // report_exception()
#include "safely_dereference_as.hpp"
#include "wx_new.hpp"
diff --git a/illustration_view.cpp b/illustration_view.cpp
index 8b5e6f6..519fe98 100644
--- a/illustration_view.cpp
+++ b/illustration_view.cpp
@@ -41,7 +41,7 @@
#include "default_view.hpp"
#include "edit_mvc_docview_parameters.hpp"
#include "emit_ledger.hpp"
-#include "handle_exceptions.hpp"
+#include "handle_exceptions.hpp" // report_exception()
#include "illustration_document.hpp"
#include "illustrator.hpp"
#include "input.hpp"
diff --git a/illustrator.cpp b/illustrator.cpp
index 814473a..d1b3740 100644
--- a/illustrator.cpp
+++ b/illustrator.cpp
@@ -30,7 +30,7 @@
#include "custom_io_1.hpp"
#include "emit_ledger.hpp"
#include "group_values.hpp"
-#include "handle_exceptions.hpp"
+#include "handle_exceptions.hpp" // report_exception()
#include "input.hpp"
#include "ledgervalues.hpp"
#include "multiple_cell_document.hpp"
diff --git a/input_realization.cpp b/input_realization.cpp
index a2aa8c4..ca55645 100644
--- a/input_realization.cpp
+++ b/input_realization.cpp
@@ -30,7 +30,7 @@
#include "dbnames.hpp"
#include "dbo_rules.hpp"
#include "global_settings.hpp"
-#include "handle_exceptions.hpp"
+#include "handle_exceptions.hpp" // report_exception()
#include "input_sequence_aux.hpp" // convert_vector()
#include "miscellany.hpp" // each_equal(), minmax
#include "round_to.hpp"
diff --git a/ledger_evaluator.cpp b/ledger_evaluator.cpp
index e6d7820..f6662a8 100644
--- a/ledger_evaluator.cpp
+++ b/ledger_evaluator.cpp
@@ -31,7 +31,7 @@
#include "configurable_settings.hpp"
#include "contains.hpp"
#include "global_settings.hpp"
-#include "handle_exceptions.hpp"
+#include "handle_exceptions.hpp" // report_exception()
#include "ledger_invariant.hpp"
#include "ledger_text_formats.hpp" // ledger_format()
#include "ledger_variant.hpp"
diff --git a/main_common.cpp b/main_common.cpp
index 9edbae6..c9323b0 100644
--- a/main_common.cpp
+++ b/main_common.cpp
@@ -24,7 +24,7 @@
#include "main_common.hpp"
#include "fenv_lmi.hpp"
-#include "handle_exceptions.hpp"
+#include "handle_exceptions.hpp" // report_exception()
#include "sigfpe.hpp"
#include <csignal>
diff --git a/main_common_non_wx.cpp b/main_common_non_wx.cpp
index e7d6561..5836595 100644
--- a/main_common_non_wx.cpp
+++ b/main_common_non_wx.cpp
@@ -24,7 +24,7 @@
#include "main_common.hpp"
#include "fenv_lmi.hpp"
-#include "handle_exceptions.hpp"
+#include "handle_exceptions.hpp" // report_exception()
#include <iostream>
#include <ostream>
diff --git a/main_wx.cpp b/main_wx.cpp
index da738c1..0bea18e 100644
--- a/main_wx.cpp
+++ b/main_wx.cpp
@@ -34,7 +34,7 @@
#include "alert.hpp" // safely_show_message()
#include "fenv_lmi.hpp"
#include "force_linking.hpp"
-#include "handle_exceptions.hpp"
+#include "handle_exceptions.hpp" // report_exception()
#include "main_common.hpp" // initialize_application()
#include "path_utility.hpp" // initialize_filesystem()
#include "skeleton.hpp"
diff --git a/mec_view.cpp b/mec_view.cpp
index 9bef994..698609a 100644
--- a/mec_view.cpp
+++ b/mec_view.cpp
@@ -24,7 +24,7 @@
#include "mec_view.hpp"
#include "edit_mvc_docview_parameters.hpp"
-#include "handle_exceptions.hpp"
+#include "handle_exceptions.hpp" // report_exception()
#include "mec_document.hpp"
#include "mec_input.hpp"
#include "mec_server.hpp"
diff --git a/msw_workarounds.cpp b/msw_workarounds.cpp
index 0538122..a376c24 100644
--- a/msw_workarounds.cpp
+++ b/msw_workarounds.cpp
@@ -28,7 +28,7 @@
#include "alert.hpp"
#include "configurable_settings.hpp"
#include "fenv_lmi.hpp"
-#include "handle_exceptions.hpp"
+#include "handle_exceptions.hpp" // report_exception()
#include <windows.h>
diff --git a/numeric_io_test.cpp b/numeric_io_test.cpp
index a7308dc..48b7012 100644
--- a/numeric_io_test.cpp
+++ b/numeric_io_test.cpp
@@ -23,7 +23,7 @@
#include "numeric_io_cast.hpp"
-#include "handle_exceptions.hpp"
+#include "handle_exceptions.hpp" // report_exception()
#include "ieee754.hpp" // infinity<>()
#include "miscellany.hpp"
#include "test_tools.hpp"
diff --git a/skeleton.cpp b/skeleton.cpp
index 0360891..e344dc2 100644
--- a/skeleton.cpp
+++ b/skeleton.cpp
@@ -54,7 +54,7 @@
#include "global_settings.hpp"
#include "gpt_document.hpp"
#include "gpt_view.hpp"
-#include "handle_exceptions.hpp"
+#include "handle_exceptions.hpp" // report_exception()
#include "icon_monger.hpp"
#include "illustration_document.hpp"
#include "illustration_view.hpp"
diff --git a/test_coding_rules.cpp b/test_coding_rules.cpp
index 3c9639f..571b356 100644
--- a/test_coding_rules.cpp
+++ b/test_coding_rules.cpp
@@ -22,7 +22,7 @@
#include "assert_lmi.hpp"
#include "boost_regex.hpp"
#include "contains.hpp"
-#include "handle_exceptions.hpp"
+#include "handle_exceptions.hpp" // report_exception()
#include "istream_to_string.hpp"
#include "main_common.hpp"
#include "miscellany.hpp" // begins_with(), split_into_lines()