mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 04:41:16 +00:00
Run IWYU
This commit is contained in:
@@ -7,16 +7,25 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "yaml-cpp/binary.h"
|
|
||||||
#include "yaml-cpp/node/node.h"
|
|
||||||
#include "yaml-cpp/node/iterator.h"
|
|
||||||
#include "yaml-cpp/null.h"
|
|
||||||
#include <limits>
|
#include <limits>
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#include "yaml-cpp/binary.h"
|
||||||
|
#include "yaml-cpp/node/impl.h"
|
||||||
|
#include "yaml-cpp/node/iterator.h"
|
||||||
|
#include "yaml-cpp/node/node.h"
|
||||||
|
#include "yaml-cpp/node/type.h"
|
||||||
|
#include "yaml-cpp/null.h"
|
||||||
|
|
||||||
|
namespace YAML {
|
||||||
|
class Binary;
|
||||||
|
struct _Null;
|
||||||
|
template <typename T> struct convert;
|
||||||
|
} // namespace YAML
|
||||||
|
|
||||||
namespace YAML {
|
namespace YAML {
|
||||||
namespace conversion {
|
namespace conversion {
|
||||||
inline bool IsInfinity(const std::string& input) {
|
inline bool IsInfinity(const std::string& input) {
|
||||||
|
@@ -7,9 +7,17 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "yaml-cpp/node/ptr.h"
|
|
||||||
#include <set>
|
|
||||||
#include <boost/shared_ptr.hpp>
|
#include <boost/shared_ptr.hpp>
|
||||||
|
#include <boost/smart_ptr/shared_ptr.hpp>
|
||||||
|
#include <set>
|
||||||
|
|
||||||
|
#include "yaml-cpp/node/ptr.h"
|
||||||
|
|
||||||
|
namespace YAML {
|
||||||
|
namespace detail {
|
||||||
|
class node;
|
||||||
|
} // namespace detail
|
||||||
|
} // namespace YAML
|
||||||
|
|
||||||
namespace YAML {
|
namespace YAML {
|
||||||
namespace detail {
|
namespace detail {
|
||||||
|
@@ -7,10 +7,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "yaml-cpp/dll.h"
|
#include <boost/noncopyable.hpp>
|
||||||
#include "yaml-cpp/node/iterator.h"
|
|
||||||
#include "yaml-cpp/node/ptr.h"
|
|
||||||
#include "yaml-cpp/node/type.h"
|
|
||||||
#include <boost/utility.hpp>
|
#include <boost/utility.hpp>
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <map>
|
#include <map>
|
||||||
@@ -18,6 +15,18 @@
|
|||||||
#include <utility>
|
#include <utility>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#include "yaml-cpp/dll.h"
|
||||||
|
#include "yaml-cpp/node/detail/node_iterator.h"
|
||||||
|
#include "yaml-cpp/node/iterator.h"
|
||||||
|
#include "yaml-cpp/node/ptr.h"
|
||||||
|
#include "yaml-cpp/node/type.h"
|
||||||
|
|
||||||
|
namespace YAML {
|
||||||
|
namespace detail {
|
||||||
|
class node;
|
||||||
|
} // namespace detail
|
||||||
|
} // namespace YAML
|
||||||
|
|
||||||
namespace YAML {
|
namespace YAML {
|
||||||
namespace detail {
|
namespace detail {
|
||||||
class node_data : private boost::noncopyable {
|
class node_data : private boost::noncopyable {
|
||||||
|
@@ -7,12 +7,21 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <stdexcept>
|
||||||
|
|
||||||
#include "yaml-cpp/dll.h"
|
#include "yaml-cpp/dll.h"
|
||||||
|
#include "yaml-cpp/node/detail/bool_type.h"
|
||||||
|
#include "yaml-cpp/node/detail/iterator_fwd.h"
|
||||||
#include "yaml-cpp/node/ptr.h"
|
#include "yaml-cpp/node/ptr.h"
|
||||||
#include "yaml-cpp/node/type.h"
|
#include "yaml-cpp/node/type.h"
|
||||||
#include "yaml-cpp/node/detail/iterator_fwd.h"
|
|
||||||
#include "yaml-cpp/node/detail/bool_type.h"
|
namespace YAML {
|
||||||
#include <stdexcept>
|
namespace detail {
|
||||||
|
class node;
|
||||||
|
class node_data;
|
||||||
|
struct iterator_value;
|
||||||
|
} // namespace detail
|
||||||
|
} // namespace YAML
|
||||||
|
|
||||||
namespace YAML {
|
namespace YAML {
|
||||||
class Node {
|
class Node {
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#include "yaml-cpp/node/convert.h"
|
|
||||||
#include "yaml-cpp/node/impl.h"
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
|
#include "yaml-cpp/node/convert.h"
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
// we're not gonna mess with the mess that is all the isupper/etc. functions
|
// we're not gonna mess with the mess that is all the isupper/etc. functions
|
||||||
bool IsLower(char ch) { return 'a' <= ch && ch <= 'z'; }
|
bool IsLower(char ch) { return 'a' <= ch && ch <= 'z'; }
|
||||||
|
@@ -1,8 +1,10 @@
|
|||||||
#include "yaml-cpp/node/detail/memory.h"
|
#include "yaml-cpp/node/detail/memory.h"
|
||||||
#include "yaml-cpp/node/detail/node.h"
|
#include "yaml-cpp/node/detail/node.h" // IWYU pragma: keep
|
||||||
|
#include "yaml-cpp/node/ptr.h"
|
||||||
|
|
||||||
namespace YAML {
|
namespace YAML {
|
||||||
namespace detail {
|
namespace detail {
|
||||||
|
|
||||||
void memory_holder::merge(memory_holder& rhs) {
|
void memory_holder::merge(memory_holder& rhs) {
|
||||||
if (m_pMemory == rhs.m_pMemory)
|
if (m_pMemory == rhs.m_pMemory)
|
||||||
return;
|
return;
|
||||||
|
@@ -1,11 +1,18 @@
|
|||||||
#include "yaml-cpp/node/detail/node_data.h"
|
#include <assert.h>
|
||||||
#include "yaml-cpp/node/detail/memory.h"
|
#include <boost/smart_ptr/shared_ptr.hpp>
|
||||||
#include "yaml-cpp/node/detail/node.h"
|
|
||||||
#include "yaml-cpp/exceptions.h"
|
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
|
#include "yaml-cpp/exceptions.h"
|
||||||
|
#include "yaml-cpp/node/detail/memory.h"
|
||||||
|
#include "yaml-cpp/node/detail/node.h" // IWYU pragma: keep
|
||||||
|
#include "yaml-cpp/node/detail/node_data.h"
|
||||||
|
#include "yaml-cpp/node/detail/node_iterator.h"
|
||||||
|
#include "yaml-cpp/node/ptr.h"
|
||||||
|
#include "yaml-cpp/node/type.h"
|
||||||
|
|
||||||
namespace YAML {
|
namespace YAML {
|
||||||
namespace detail {
|
namespace detail {
|
||||||
|
|
||||||
std::string node_data::empty_scalar;
|
std::string node_data::empty_scalar;
|
||||||
|
|
||||||
node_data::node_data()
|
node_data::node_data()
|
||||||
|
@@ -1,10 +1,15 @@
|
|||||||
#include "nodebuilder.h"
|
#include <assert.h>
|
||||||
#include "yaml-cpp/mark.h"
|
|
||||||
#include "yaml-cpp/node/node.h"
|
|
||||||
#include "yaml-cpp/node/impl.h"
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
|
#include "nodebuilder.h"
|
||||||
|
#include "yaml-cpp/node/detail/node.h"
|
||||||
|
#include "yaml-cpp/node/impl.h"
|
||||||
|
#include "yaml-cpp/node/node.h"
|
||||||
|
#include "yaml-cpp/node/type.h"
|
||||||
|
|
||||||
namespace YAML {
|
namespace YAML {
|
||||||
|
struct Mark;
|
||||||
|
|
||||||
NodeBuilder::NodeBuilder()
|
NodeBuilder::NodeBuilder()
|
||||||
: m_pMemory(new detail::memory_holder), m_pRoot(0), m_mapDepth(0) {
|
: m_pMemory(new detail::memory_holder), m_pRoot(0), m_mapDepth(0) {
|
||||||
m_anchors.push_back(0); // since the anchors start at 1
|
m_anchors.push_back(0); // since the anchors start at 1
|
||||||
|
@@ -7,9 +7,18 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
|
#include "yaml-cpp/anchor.h"
|
||||||
#include "yaml-cpp/eventhandler.h"
|
#include "yaml-cpp/eventhandler.h"
|
||||||
#include "yaml-cpp/node/ptr.h"
|
#include "yaml-cpp/node/ptr.h"
|
||||||
#include <vector>
|
|
||||||
|
namespace YAML {
|
||||||
|
namespace detail {
|
||||||
|
class node;
|
||||||
|
} // namespace detail
|
||||||
|
struct Mark;
|
||||||
|
} // namespace YAML
|
||||||
|
|
||||||
namespace YAML {
|
namespace YAML {
|
||||||
class Node;
|
class Node;
|
||||||
|
@@ -1,8 +1,10 @@
|
|||||||
#include "nodeevents.h"
|
#include "nodeevents.h"
|
||||||
#include "yaml-cpp/node/node.h"
|
|
||||||
#include "yaml-cpp/node/impl.h"
|
|
||||||
#include "yaml-cpp/eventhandler.h"
|
#include "yaml-cpp/eventhandler.h"
|
||||||
#include "yaml-cpp/mark.h"
|
#include "yaml-cpp/mark.h"
|
||||||
|
#include "yaml-cpp/node/detail/node.h"
|
||||||
|
#include "yaml-cpp/node/detail/node_iterator.h"
|
||||||
|
#include "yaml-cpp/node/node.h"
|
||||||
|
#include "yaml-cpp/node/type.h"
|
||||||
|
|
||||||
namespace YAML {
|
namespace YAML {
|
||||||
void NodeEvents::AliasManager::RegisterReference(const detail::node& node) {
|
void NodeEvents::AliasManager::RegisterReference(const detail::node& node) {
|
||||||
|
@@ -7,11 +7,18 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "yaml-cpp/anchor.h"
|
|
||||||
#include "yaml-cpp/node/ptr.h"
|
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#include "yaml-cpp/anchor.h"
|
||||||
|
#include "yaml-cpp/node/ptr.h"
|
||||||
|
|
||||||
|
namespace YAML {
|
||||||
|
namespace detail {
|
||||||
|
class node;
|
||||||
|
} // namespace detail
|
||||||
|
} // namespace YAML
|
||||||
|
|
||||||
namespace YAML {
|
namespace YAML {
|
||||||
class EventHandler;
|
class EventHandler;
|
||||||
class Node;
|
class Node;
|
||||||
|
@@ -1,12 +1,13 @@
|
|||||||
#include "yaml-cpp/node/parse.h"
|
#include "yaml-cpp/node/parse.h"
|
||||||
|
|
||||||
|
#include <fstream>
|
||||||
|
#include <sstream>
|
||||||
|
|
||||||
#include "yaml-cpp/node/node.h"
|
#include "yaml-cpp/node/node.h"
|
||||||
#include "yaml-cpp/node/impl.h"
|
#include "yaml-cpp/node/impl.h"
|
||||||
#include "yaml-cpp/parser.h"
|
#include "yaml-cpp/parser.h"
|
||||||
#include "nodebuilder.h"
|
#include "nodebuilder.h"
|
||||||
|
|
||||||
#include <fstream>
|
|
||||||
#include <sstream>
|
|
||||||
|
|
||||||
namespace YAML {
|
namespace YAML {
|
||||||
Node Load(const std::string& input) {
|
Node Load(const std::string& input) {
|
||||||
std::stringstream stream(input);
|
std::stringstream stream(input);
|
||||||
|
@@ -1,7 +1,6 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
#include "teststruct.h"
|
#include "teststruct.h"
|
||||||
#include "yaml-cpp/eventhandler.h"
|
|
||||||
#include "yaml-cpp/yaml.h" // IWYU pragma: keep
|
#include "yaml-cpp/yaml.h" // IWYU pragma: keep
|
||||||
|
|
||||||
namespace Test {
|
namespace Test {
|
||||||
|
@@ -1,8 +1,13 @@
|
|||||||
#include "nodetests.h"
|
#include <boost/version.hpp>
|
||||||
#include "yaml-cpp/yaml.h"
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
#include <boost/version.hpp>
|
#include "nodetests.h"
|
||||||
|
#include "yaml-cpp/yaml.h" // IWYU pragma: keep
|
||||||
|
|
||||||
|
namespace YAML {
|
||||||
|
class InvalidNode;
|
||||||
|
template <typename T> class TypedBadConversion;
|
||||||
|
} // namespace YAML
|
||||||
|
|
||||||
#if BOOST_VERSION >= 103400
|
#if BOOST_VERSION >= 103400
|
||||||
#include <boost/foreach.hpp>
|
#include <boost/foreach.hpp>
|
||||||
|
@@ -1,8 +1,9 @@
|
|||||||
#include "spectests.h"
|
|
||||||
#include "specexamples.h"
|
|
||||||
#include "yaml-cpp/yaml.h"
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
#include "specexamples.h"
|
||||||
|
#include "spectests.h"
|
||||||
|
#include "yaml-cpp/yaml.h" // IWYU pragma: keep
|
||||||
|
|
||||||
#define YAML_ASSERT(cond) \
|
#define YAML_ASSERT(cond) \
|
||||||
do { \
|
do { \
|
||||||
if (!(cond)) \
|
if (!(cond)) \
|
||||||
|
@@ -3,10 +3,6 @@
|
|||||||
#include "spectests.h"
|
#include "spectests.h"
|
||||||
#include "yaml-cpp/yaml.h" // IWYU pragma: keep
|
#include "yaml-cpp/yaml.h" // IWYU pragma: keep
|
||||||
|
|
||||||
namespace YAML {
|
|
||||||
class Exception;
|
|
||||||
} // namespace YAML
|
|
||||||
|
|
||||||
namespace Test {
|
namespace Test {
|
||||||
namespace {
|
namespace {
|
||||||
void RunSpecTest(TEST (*test)(), const std::string& index,
|
void RunSpecTest(TEST (*test)(), const std::string& index,
|
||||||
|
@@ -1,9 +1,10 @@
|
|||||||
#include "yaml-cpp/yaml.h"
|
|
||||||
#include "yaml-cpp/eventhandler.h"
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#include "yaml-cpp/eventhandler.h"
|
||||||
|
#include "yaml-cpp/yaml.h" // IWYU pragma: keep
|
||||||
|
|
||||||
struct Params {
|
struct Params {
|
||||||
bool hasFile;
|
bool hasFile;
|
||||||
std::string fileName;
|
std::string fileName;
|
||||||
|
Reference in New Issue
Block a user