Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
yaml-cpp
Commits
5fd25df8
Commit
5fd25df8
authored
Mar 22, 2014
by
Jesse Beder
Browse files
Run IWYU
parent
0fbeac8f
Changes
35
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
114 additions
and
54 deletions
+114
-54
include/yaml-cpp/emitfromevents.h
include/yaml-cpp/emitfromevents.h
+7
-1
include/yaml-cpp/emitter.h
include/yaml-cpp/emitter.h
+10
-4
include/yaml-cpp/parser.h
include/yaml-cpp/parser.h
+6
-5
src/contrib/graphbuilder.cpp
src/contrib/graphbuilder.cpp
+4
-2
src/contrib/graphbuilderadapter.cpp
src/contrib/graphbuilderadapter.cpp
+3
-0
src/contrib/graphbuilderadapter.h
src/contrib/graphbuilderadapter.h
+8
-1
src/emitfromevents.cpp
src/emitfromevents.cpp
+8
-2
src/emitter.cpp
src/emitter.cpp
+10
-5
src/emitterstate.cpp
src/emitterstate.cpp
+3
-2
src/emitterutils.cpp
src/emitterutils.cpp
+7
-4
src/emitterutils.h
src/emitterutils.h
+7
-1
src/exp.cpp
src/exp.cpp
+8
-2
src/exp.h
src/exp.h
+3
-2
src/parser.cpp
src/parser.cpp
+9
-8
src/regex_yaml.h
src/regex_yaml.h
+1
-1
src/scanner.cpp
src/scanner.cpp
+5
-4
src/scanner.h
src/scanner.h
+5
-3
src/scanscalar.cpp
src/scanscalar.cpp
+4
-4
src/scanscalar.h
src/scanscalar.h
+1
-0
src/scantag.cpp
src/scantag.cpp
+5
-3
No files found.
include/yaml-cpp/emitfromevents.h
View file @
5fd25df8
...
@@ -7,9 +7,15 @@
...
@@ -7,9 +7,15 @@
#pragma once
#pragma once
#endif
#endif
#include "yaml-cpp/eventhandler.h"
#include <stack>
#include <stack>
#include "yaml-cpp/anchor.h"
#include "yaml-cpp/eventhandler.h"
namespace
YAML
{
struct
Mark
;
}
// namespace YAML
namespace
YAML
{
namespace
YAML
{
class
Emitter
;
class
Emitter
;
...
...
include/yaml-cpp/emitter.h
View file @
5fd25df8
...
@@ -7,16 +7,22 @@
...
@@ -7,16 +7,22 @@
#pragma once
#pragma once
#endif
#endif
#include "yaml-cpp/dll.h"
#include <memory>
#include <sstream>
#include <string>
#include "yaml-cpp/binary.h"
#include "yaml-cpp/binary.h"
#include "yaml-cpp/dll.h"
#include "yaml-cpp/emitterdef.h"
#include "yaml-cpp/emitterdef.h"
#include "yaml-cpp/emittermanip.h"
#include "yaml-cpp/emittermanip.h"
#include "yaml-cpp/noncopyable.h"
#include "yaml-cpp/noncopyable.h"
#include "yaml-cpp/null.h"
#include "yaml-cpp/null.h"
#include "yaml-cpp/ostream_wrapper.h"
#include "yaml-cpp/ostream_wrapper.h"
#include <memory>
#include <string>
namespace
YAML
{
#include <sstream>
class
Binary
;
struct
_Null
;
}
// namespace YAML
namespace
YAML
{
namespace
YAML
{
class
EmitterState
;
class
EmitterState
;
...
...
include/yaml-cpp/parser.h
View file @
5fd25df8
...
@@ -7,18 +7,19 @@
...
@@ -7,18 +7,19 @@
#pragma once
#pragma once
#endif
#endif
#include "yaml-cpp/dll.h"
#include "yaml-cpp/noncopyable.h"
#include <ios>
#include <ios>
#include <memory>
#include <memory>
#include "yaml-cpp/dll.h"
#include "yaml-cpp/noncopyable.h"
namespace
YAML
{
namespace
YAML
{
struct
Directives
;
struct
Mark
;
struct
Token
;
class
EventHandler
;
class
EventHandler
;
class
Node
;
class
Node
;
class
Scanner
;
class
Scanner
;
struct
Directives
;
struct
Mark
;
struct
Token
;
class
YAML_CPP_API
Parser
:
private
noncopyable
{
class
YAML_CPP_API
Parser
:
private
noncopyable
{
public:
public:
...
...
src/contrib/graphbuilder.cpp
View file @
5fd25df8
#include "yaml-cpp/parser.h"
#include "yaml-cpp/contrib/graphbuilder.h"
#include "graphbuilderadapter.h"
#include "graphbuilderadapter.h"
#include "yaml-cpp/parser.h" // IWYU pragma: keep
namespace
YAML
{
namespace
YAML
{
class
GraphBuilderInterface
;
void
*
BuildGraphOfNextDocument
(
Parser
&
parser
,
void
*
BuildGraphOfNextDocument
(
Parser
&
parser
,
GraphBuilderInterface
&
graphBuilder
)
{
GraphBuilderInterface
&
graphBuilder
)
{
GraphBuilderAdapter
eventHandler
(
graphBuilder
);
GraphBuilderAdapter
eventHandler
(
graphBuilder
);
...
...
src/contrib/graphbuilderadapter.cpp
View file @
5fd25df8
#include "graphbuilderadapter.h"
#include "graphbuilderadapter.h"
#include "yaml-cpp/contrib/graphbuilder.h"
namespace
YAML
{
namespace
YAML
{
struct
Mark
;
int
GraphBuilderAdapter
::
ContainerFrame
::
sequenceMarker
;
int
GraphBuilderAdapter
::
ContainerFrame
::
sequenceMarker
;
void
GraphBuilderAdapter
::
OnNull
(
const
Mark
&
mark
,
anchor_t
anchor
)
{
void
GraphBuilderAdapter
::
OnNull
(
const
Mark
&
mark
,
anchor_t
anchor
)
{
...
...
src/contrib/graphbuilderadapter.h
View file @
5fd25df8
...
@@ -10,9 +10,16 @@
...
@@ -10,9 +10,16 @@
#include <cstdlib>
#include <cstdlib>
#include <map>
#include <map>
#include <stack>
#include <stack>
#include "yaml-cpp/eventhandler.h"
#include "yaml-cpp/anchor.h"
#include "yaml-cpp/contrib/anchordict.h"
#include "yaml-cpp/contrib/anchordict.h"
#include "yaml-cpp/contrib/graphbuilder.h"
#include "yaml-cpp/contrib/graphbuilder.h"
#include "yaml-cpp/eventhandler.h"
namespace
YAML
{
class
GraphBuilderInterface
;
struct
Mark
;
}
// namespace YAML
namespace
YAML
{
namespace
YAML
{
class
GraphBuilderAdapter
:
public
EventHandler
{
class
GraphBuilderAdapter
:
public
EventHandler
{
...
...
src/emitfromevents.cpp
View file @
5fd25df8
#include <cassert>
#include <sstream>
#include "yaml-cpp/emitfromevents.h"
#include "yaml-cpp/emitfromevents.h"
#include "yaml-cpp/emitter.h"
#include "yaml-cpp/emitter.h"
#include "yaml-cpp/emittermanip.h"
#include "yaml-cpp/null.h"
#include "yaml-cpp/null.h"
#include <cassert>
#include <sstream>
namespace
YAML
{
struct
Mark
;
}
// namespace YAML
namespace
{
namespace
{
std
::
string
ToString
(
YAML
::
anchor_t
anchor
)
{
std
::
string
ToString
(
YAML
::
anchor_t
anchor
)
{
...
...
src/emitter.cpp
View file @
5fd25df8
#include "yaml-cpp/emitter.h"
#include "emitterstate.h"
#include "emitterutils.h"
#include "indentation.h"
#include "yaml-cpp/exceptions.h"
#include <sstream>
#include <sstream>
#include "emitterutils.h"
#include "indentation.h" // IWYU pragma: keep
#include "yaml-cpp/emitter.h"
#include "yaml-cpp/emitterdef.h"
#include "yaml-cpp/emittermanip.h"
#include "yaml-cpp/exceptions.h" // IWYU pragma: keep
namespace
YAML
{
namespace
YAML
{
class
Binary
;
struct
_Null
;
Emitter
::
Emitter
()
:
m_pState
(
new
EmitterState
)
{}
Emitter
::
Emitter
()
:
m_pState
(
new
EmitterState
)
{}
Emitter
::
Emitter
(
std
::
ostream
&
stream
)
Emitter
::
Emitter
(
std
::
ostream
&
stream
)
...
...
src/emitterstate.cpp
View file @
5fd25df8
#include "emitterstate.h"
#include "yaml-cpp/exceptions.h"
#include <limits>
#include <limits>
#include "emitterstate.h"
#include "yaml-cpp/exceptions.h" // IWYU pragma: keep
namespace
YAML
{
namespace
YAML
{
EmitterState
::
EmitterState
()
EmitterState
::
EmitterState
()
:
m_isGood
(
true
),
:
m_isGood
(
true
),
...
...
src/emitterutils.cpp
View file @
5fd25df8
#include <iomanip>
#include <sstream>
#include "emitterutils.h"
#include "emitterutils.h"
#include "exp.h"
#include "exp.h"
#include "indentation.h"
#include "indentation.h"
#include "
yaml-cpp/binary
.h"
#include "
regex_yaml
.h"
#include "
yaml-cpp/exceptions
.h"
#include "
regeximpl
.h"
#include "stringsource.h"
#include "stringsource.h"
#include
<sstream>
#include
"yaml-cpp/binary.h" // IWYU pragma: keep
#include
<iomanip>
#include
"yaml-cpp/ostream_wrapper.h"
namespace
YAML
{
namespace
YAML
{
namespace
Utils
{
namespace
Utils
{
...
...
src/emitterutils.h
View file @
5fd25df8
...
@@ -7,9 +7,15 @@
...
@@ -7,9 +7,15 @@
#pragma once
#pragma once
#endif
#endif
#include <string>
#include "emitterstate.h"
#include "emitterstate.h"
#include "yaml-cpp/emittermanip.h"
#include "yaml-cpp/ostream_wrapper.h"
#include "yaml-cpp/ostream_wrapper.h"
#include <string>
namespace
YAML
{
class
ostream_wrapper
;
}
// namespace YAML
namespace
YAML
{
namespace
YAML
{
class
Binary
;
class
Binary
;
...
...
src/exp.cpp
View file @
5fd25df8
#include "exp.h"
#include "yaml-cpp/exceptions.h"
#include <sstream>
#include <sstream>
#include "exp.h"
#include "stream.h"
#include "yaml-cpp/exceptions.h" // IWYU pragma: keep
namespace
YAML
{
struct
Mark
;
}
// namespace YAML
namespace
YAML
{
namespace
YAML
{
namespace
Exp
{
namespace
Exp
{
unsigned
ParseHex
(
const
std
::
string
&
str
,
const
Mark
&
mark
)
{
unsigned
ParseHex
(
const
std
::
string
&
str
,
const
Mark
&
mark
)
{
...
...
src/exp.h
View file @
5fd25df8
...
@@ -7,9 +7,10 @@
...
@@ -7,9 +7,10 @@
#pragma once
#pragma once
#endif
#endif
#include "regex_yaml.h"
#include <string>
#include <ios>
#include <ios>
#include <string>
#include "regex_yaml.h"
#include "stream.h"
#include "stream.h"
namespace
YAML
{
namespace
YAML
{
...
...
src/parser.cpp
View file @
5fd25df8
#include
"yaml-cpp/parser.h"
#include
<cstdio>
#include
"yaml-cpp/eventhandler.h"
#include
<sstream>
#include "yaml-cpp/exceptions.h"
#include "directives.h"
#include "directives.h"
// IWYU pragma: keep
#include "scanner.h"
#include "scanner.h"
// IWYU pragma: keep
#include "singledocparser.h"
#include "singledocparser.h"
#include "tag.h"
#include "token.h"
#include "token.h"
#include
<sstream>
#include
"yaml-cpp/exceptions.h" // IWYU pragma: keep
#include
<cstdio>
#include
"yaml-cpp/parser.h"
namespace
YAML
{
namespace
YAML
{
class
EventHandler
;
Parser
::
Parser
()
{}
Parser
::
Parser
()
{}
Parser
::
Parser
(
std
::
istream
&
in
)
{
Load
(
in
);
}
Parser
::
Parser
(
std
::
istream
&
in
)
{
Load
(
in
);
}
...
...
src/regex_yaml.h
View file @
5fd25df8
...
@@ -7,8 +7,8 @@
...
@@ -7,8 +7,8 @@
#pragma once
#pragma once
#endif
#endif
#include <vector>
#include <string>
#include <string>
#include <vector>
namespace
YAML
{
namespace
YAML
{
class
Stream
;
class
Stream
;
...
...
src/scanner.cpp
View file @
5fd25df8
#include "scanner.h"
#include "token.h"
#include "yaml-cpp/exceptions.h"
#include "exp.h"
#include <cassert>
#include <cassert>
#include <memory>
#include <memory>
#include "exp.h"
#include "scanner.h"
#include "token.h"
#include "yaml-cpp/exceptions.h" // IWYU pragma: keep
namespace
YAML
{
namespace
YAML
{
Scanner
::
Scanner
(
std
::
istream
&
in
)
Scanner
::
Scanner
(
std
::
istream
&
in
)
:
INPUT
(
in
),
:
INPUT
(
in
),
...
...
src/scanner.h
View file @
5fd25df8
...
@@ -8,14 +8,16 @@
...
@@ -8,14 +8,16 @@
#endif
#endif
#include <ios>
#include <ios>
#include <
string
>
#include <
map
>
#include <queue>
#include <queue>
#include <stack>
#include <set>
#include <set>
#include <map>
#include <stack>
#include <string>
#include "ptr_vector.h"
#include "ptr_vector.h"
#include "stream.h"
#include "stream.h"
#include "token.h"
#include "token.h"
#include "yaml-cpp/mark.h"
namespace
YAML
{
namespace
YAML
{
class
Node
;
class
Node
;
...
...
src/scanscalar.cpp
View file @
5fd25df8
#include "scanscalar.h"
#include "scanner.h"
#include "exp.h"
#include "exp.h"
#include "yaml-cpp/exceptions.h"
#include "regeximpl.h"
#include "token.h"
#include "scanscalar.h"
#include "stream.h"
#include "yaml-cpp/exceptions.h" // IWYU pragma: keep
namespace
YAML
{
namespace
YAML
{
// ScanScalar
// ScanScalar
...
...
src/scanscalar.h
View file @
5fd25df8
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
#endif
#endif
#include <string>
#include <string>
#include "regex_yaml.h"
#include "regex_yaml.h"
#include "stream.h"
#include "stream.h"
...
...
src/scantag.cpp
View file @
5fd25df8
#include "scanner.h"
#include "regex_yaml.h"
#include "exp.h"
#include "exp.h"
#include "yaml-cpp/exceptions.h"
#include "regex_yaml.h"
#include "regeximpl.h"
#include "stream.h"
#include "yaml-cpp/exceptions.h" // IWYU pragma: keep
#include "yaml-cpp/mark.h"
namespace
YAML
{
namespace
YAML
{
const
std
::
string
ScanVerbatimTag
(
Stream
&
INPUT
)
{
const
std
::
string
ScanVerbatimTag
(
Stream
&
INPUT
)
{
...
...
Prev
1
2
Next
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