]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common/cmdparse: include cleanup
authorMax Kellermann <max.kellermann@ionos.com>
Fri, 25 Oct 2024 12:04:59 +0000 (14:04 +0200)
committerMax Kellermann <max.kellermann@ionos.com>
Thu, 6 Mar 2025 07:53:09 +0000 (08:53 +0100)
Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
src/common/cmdparse.cc
src/common/cmdparse.h

index 009e6678c9861ab5da7d21679e04f86910cb5b5a..d1128fcfc3528425c08e45b28d5cef6a69c02551 100644 (file)
  */
 
 #include "include/common_fwd.h"
+#include "common/BackTrace.h"
 #include "common/cmdparse.h"
 #include "common/Formatter.h"
 #include "common/debug.h"
 #include "common/strtol.h"
+#include "include/ceph_assert.h"       // boost clobbers this
+#include "include/types.h" // for operator<<(std::vector)
 #include "json_spirit/json_spirit.h"
 
+#include <ostream>
+#include <sstream>
+
 using std::is_same_v;
 using std::ostringstream;
 using std::string;
index fb7fb77f7b7ad939ef4caf79046db3e084e36f94..d4a5c11398f05b5633a2a9cd2665601fba7858c0 100644 (file)
@@ -4,14 +4,15 @@
 #define CEPH_COMMON_CMDPARSE_H
 
 #include <vector>
-#include <stdexcept>
+#include <exception>
+#include <map>
+#include <string>
 #include <optional>
-#include <ostream>
+#include <iosfwd>
 #include <boost/variant.hpp>
-#include "include/ceph_assert.h"       // boost clobbers this
 #include "include/common_fwd.h"
-#include "common/Formatter.h"
-#include "common/BackTrace.h"
+
+namespace ceph { class Formatter; }
 
 typedef boost::variant<std::string,
                       bool,