[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 4ca9e2b 3/5: Regularize #include directives
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 4ca9e2b 3/5: Regularize #include directives |
Date: |
Tue, 30 Jan 2018 19:47:36 -0500 (EST) |
branch: master
commit 4ca9e2b0707a0e6c607019ac9d01de85790d4430
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Regularize #include directives
---
html.cpp | 2 +-
html.hpp | 2 +-
interpolate_string.hpp | 2 +-
interpolate_string_test.cpp | 2 ++
ledger_evaluator.cpp | 5 ++---
ledger_pdf.cpp | 2 +-
ledger_pdf_generator.hpp | 2 +-
ledger_pdf_generator_wx.cpp | 12 +++++++-----
pdf_writer_wx.cpp | 2 ++
pdf_writer_wx.hpp | 2 +-
10 files changed, 19 insertions(+), 14 deletions(-)
diff --git a/html.cpp b/html.cpp
index c3427ee..b08d80b 100644
--- a/html.cpp
+++ b/html.cpp
@@ -23,7 +23,7 @@
#include "html.hpp"
-#include <cstring>
+#include <cstring> // strlen()
namespace html
{
diff --git a/html.hpp b/html.hpp
index 8ebb071..5ce1306 100644
--- a/html.hpp
+++ b/html.hpp
@@ -27,7 +27,7 @@
#include "so_attributes.hpp"
#include <string>
-#include <utility> // std::move
+#include <utility> // move()
/// Namespace for helpers used for HTML generation.
///
diff --git a/interpolate_string.hpp b/interpolate_string.hpp
index 7515553..344657a 100644
--- a/interpolate_string.hpp
+++ b/interpolate_string.hpp
@@ -26,7 +26,7 @@
#include "so_attributes.hpp"
-#include <functional>
+#include <functional> // function
#include <string>
enum class interpolate_lookup_kind
diff --git a/interpolate_string_test.cpp b/interpolate_string_test.cpp
index cccd486..22fa9ef 100644
--- a/interpolate_string_test.cpp
+++ b/interpolate_string_test.cpp
@@ -25,6 +25,8 @@
#include "test_tools.hpp"
+#include <stdexcept>
+
int test_main(int, char*[])
{
auto const test_interpolate = [](char const* s)
diff --git a/ledger_evaluator.cpp b/ledger_evaluator.cpp
index 0a81492..b4878ae 100644
--- a/ledger_evaluator.cpp
+++ b/ledger_evaluator.cpp
@@ -26,7 +26,6 @@
#include "alert.hpp"
#include "authenticity.hpp"
#include "calendar_date.hpp"
-#include "configurable_settings.hpp"
#include "contains.hpp"
#include "global_settings.hpp"
#include "handle_exceptions.hpp"
@@ -41,10 +40,10 @@
#include "value_cast.hpp"
#include "version.hpp"
-#include <algorithm> // transform()
+#include <algorithm> // fill(), transform()
#include <functional> // minus
#include <unordered_map>
-#include <utility> // pair
+#include <utility> // move(), pair
namespace
{
diff --git a/ledger_pdf.cpp b/ledger_pdf.cpp
index d9703ec..beecd58 100644
--- a/ledger_pdf.cpp
+++ b/ledger_pdf.cpp
@@ -28,7 +28,7 @@
#include "ledger.hpp"
#include "ledger_pdf_generator.hpp"
#include "ledger_xsl.hpp" // PDF !! expunge
-#include "path_utility.hpp"
+#include "path_utility.hpp" // unique_filepath()
/// Write ledger as pdf.
diff --git a/ledger_pdf_generator.hpp b/ledger_pdf_generator.hpp
index b047179..4892dc9 100644
--- a/ledger_pdf_generator.hpp
+++ b/ledger_pdf_generator.hpp
@@ -28,7 +28,7 @@
#include <boost/filesystem/path.hpp>
-#include <memory> // std::shared_ptr
+#include <memory> // shared_ptr
class Ledger;
diff --git a/ledger_pdf_generator_wx.cpp b/ledger_pdf_generator_wx.cpp
index cbaec4e..04732db 100644
--- a/ledger_pdf_generator_wx.cpp
+++ b/ledger_pdf_generator_wx.cpp
@@ -25,9 +25,7 @@
#include "alert.hpp"
#include "assert_lmi.hpp"
-#include "authenticity.hpp"
#include "bourn_cast.hpp"
-#include "calendar_date.hpp"
#include "data_directory.hpp" // AddDataDir()
#include "force_linking.hpp"
#include "html.hpp"
@@ -39,7 +37,6 @@
#include "ledger_variant.hpp"
#include "miscellany.hpp" // lmi_tolower()
#include "pdf_writer_wx.hpp"
-#include "version.hpp"
#include "wx_table_generator.hpp"
#include <wx/pdfdc.h>
@@ -49,13 +46,18 @@
#include <wx/html/m_templ.h>
+#include <array>
+#include <cstddef> // size_t
#include <cstdint> // SIZE_MAX
+#include <cstdlib> // strtoul()
#include <fstream>
#include <map>
-#include <memory>
+#include <memory> // make_unique(), shared_ptr,
unique_ptr
#include <sstream>
#include <stdexcept>
-#include <type_traits> // std::conditional
+#include <string>
+#include <type_traits> // conditional
+#include <utility> // forward(), move()
#include <vector>
LMI_FORCE_LINKING_IN_SITU(ledger_pdf_generator_wx)
diff --git a/pdf_writer_wx.cpp b/pdf_writer_wx.cpp
index 82740a8..8a9228a 100644
--- a/pdf_writer_wx.cpp
+++ b/pdf_writer_wx.cpp
@@ -30,6 +30,8 @@
#include <wx/filesys.h>
#include <wx/html/htmlcell.h>
+#include <limits>
+
namespace
{
diff --git a/pdf_writer_wx.hpp b/pdf_writer_wx.hpp
index 73f6e61..3054fd7 100644
--- a/pdf_writer_wx.hpp
+++ b/pdf_writer_wx.hpp
@@ -32,7 +32,7 @@
#include <wx/pdfdc.h>
#include <array>
-#include <memory> // std::unique_ptr
+#include <memory> // unique_ptr
class wxFileSystem;