Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yaml-cpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
yaml-cpp
Commits
4b40441c
Commit
4b40441c
authored
Mar 22, 2014
by
Jesse Beder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run IWYU
parent
8d7eb02c
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
114 additions
and
44 deletions
+114
-44
include/yaml-cpp/node/convert.h
+13
-4
include/yaml-cpp/node/detail/memory.h
+10
-2
include/yaml-cpp/node/detail/node_data.h
+13
-4
include/yaml-cpp/node/node.h
+12
-3
src/convert.cpp
+2
-2
src/memory.cpp
+3
-1
src/node_data.cpp
+11
-4
src/nodebuilder.cpp
+8
-3
src/nodebuilder.h
+10
-1
src/nodeevents.cpp
+4
-2
src/nodeevents.h
+9
-2
src/parse.cpp
+4
-3
test/emittertests.cpp
+0
-1
test/new-api/nodetests.cpp
+8
-3
test/new-api/spectests.cpp
+4
-3
test/spectests.cpp
+0
-4
util/parse.cpp
+3
-2
No files found.
include/yaml-cpp/node/convert.h
View file @
4b40441c
...
@@ -7,16 +7,25 @@
...
@@ -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
)
{
...
...
include/yaml-cpp/node/detail/memory.h
View file @
4b40441c
...
@@ -7,9 +7,17 @@
...
@@ -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
{
...
...
include/yaml-cpp/node/detail/node_data.h
View file @
4b40441c
...
@@ -7,10 +7,7 @@
...
@@ -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 @@
...
@@ -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
{
...
...
include/yaml-cpp/node/node.h
View file @
4b40441c
...
@@ -7,12 +7,21 @@
...
@@ -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
{
...
...
src/convert.cpp
View file @
4b40441c
#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'
;
}
...
...
src/memory.cpp
View file @
4b40441c
#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
;
...
...
src/node_data.cpp
View file @
4b40441c
#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
()
...
...
src/nodebuilder.cpp
View file @
4b40441c
#include <assert.h>
#include <cassert>
#include "nodebuilder.h"
#include "nodebuilder.h"
#include "yaml-cpp/mark.h"
#include "yaml-cpp/node/detail/node.h"
#include "yaml-cpp/node/node.h"
#include "yaml-cpp/node/impl.h"
#include "yaml-cpp/node/impl.h"
#include <cassert>
#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
...
...
src/nodebuilder.h
View file @
4b40441c
...
@@ -7,9 +7,18 @@
...
@@ -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
;
...
...
src/nodeevents.cpp
View file @
4b40441c
#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
)
{
...
...
src/nodeevents.h
View file @
4b40441c
...
@@ -7,11 +7,18 @@
...
@@ -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
;
...
...
src/parse.cpp
View file @
4b40441c
#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
);
...
...
test/emittertests.cpp
View file @
4b40441c
#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
{
...
...
test/new-api/nodetests.cpp
View file @
4b40441c
#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>
...
...
test/new-api/spectests.cpp
View file @
4b40441c
#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)) \
...
...
test/spectests.cpp
View file @
4b40441c
...
@@ -3,10 +3,6 @@
...
@@ -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
,
...
...
util/parse.cpp
View file @
4b40441c
#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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment