Skip to content

Commit 7175fb3

Browse files
committed
common/cmdparse: include cleanup
Signed-off-by: Max Kellermann <[email protected]>
1 parent 19ab0fe commit 7175fb3

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

src/common/cmdparse.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,18 @@
1313
*/
1414

1515
#include "include/common_fwd.h"
16+
#include "common/BackTrace.h"
1617
#include "common/cmdparse.h"
1718
#include "common/Formatter.h"
1819
#include "common/debug.h"
1920
#include "common/strtol.h"
21+
#include "include/ceph_assert.h" // boost clobbers this
22+
#include "include/types.h" // for operator<<(std::vector)
2023
#include "json_spirit/json_spirit.h"
2124

25+
#include <ostream>
26+
#include <sstream>
27+
2228
using std::is_same_v;
2329
using std::ostringstream;
2430
using std::string;

src/common/cmdparse.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44
#define CEPH_COMMON_CMDPARSE_H
55

66
#include <vector>
7-
#include <stdexcept>
7+
#include <exception>
8+
#include <map>
9+
#include <string>
810
#include <optional>
9-
#include <ostream>
11+
#include <iosfwd>
1012
#include <boost/variant.hpp>
11-
#include "include/ceph_assert.h" // boost clobbers this
1213
#include "include/common_fwd.h"
13-
#include "common/Formatter.h"
14-
#include "common/BackTrace.h"
14+
15+
namespace ceph { class Formatter; }
1516

1617
typedef boost::variant<std::string,
1718
bool,

0 commit comments

Comments
 (0)