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
8d7eb02c
Commit
8d7eb02c
authored
Mar 22, 2014
by
Jesse Beder
Browse files
Options
Browse Files
Download
Plain Diff
Merge IWYU from core
parents
c7567b7b
5fd25df8
Hide whitespace changes
Inline
Side-by-side
Showing
35 changed files
with
188 additions
and
105 deletions
+188
-105
include/yaml-cpp/emitfromevents.h
+7
-1
include/yaml-cpp/emitter.h
+10
-4
include/yaml-cpp/parser.h
+6
-4
src/contrib/graphbuilder.cpp
+4
-2
src/contrib/graphbuilderadapter.cpp
+3
-0
src/contrib/graphbuilderadapter.h
+8
-1
src/emitfromevents.cpp
+8
-2
src/emitter.cpp
+10
-5
src/emitterstate.cpp
+3
-2
src/emitterutils.cpp
+7
-4
src/emitterutils.h
+7
-1
src/exp.cpp
+8
-2
src/exp.h
+3
-2
src/parser.cpp
+9
-8
src/regex_yaml.h
+1
-1
src/scanner.cpp
+5
-4
src/scanner.h
+5
-3
src/scanscalar.cpp
+4
-4
src/scanscalar.h
+1
-0
src/scantag.cpp
+5
-3
src/scantoken.cpp
+10
-6
src/simplekey.cpp
+2
-2
src/singledocparser.cpp
+9
-8
src/singledocparser.h
+7
-6
src/stream.cpp
+2
-2
src/tag.cpp
+4
-3
src/tag.h
+1
-1
test/core/parsertests.cpp
+10
-3
test/core/spectests.cpp
+5
-4
test/emittertests.cpp
+4
-3
test/ostream_wrapper_test.cpp
+2
-2
test/spectests.cpp
+7
-2
test/tests.cpp
+6
-6
util/read.cpp
+2
-2
util/sandbox.cpp
+3
-2
No files found.
include/yaml-cpp/emitfromevents.h
View file @
8d7eb02c
...
...
@@ -7,9 +7,15 @@
#pragma once
#endif
#include "yaml-cpp/eventhandler.h"
#include <stack>
#include "yaml-cpp/anchor.h"
#include "yaml-cpp/eventhandler.h"
namespace
YAML
{
struct
Mark
;
}
// namespace YAML
namespace
YAML
{
class
Emitter
;
...
...
include/yaml-cpp/emitter.h
View file @
8d7eb02c
...
...
@@ -7,16 +7,22 @@
#pragma once
#endif
#include "yaml-cpp/dll.h"
#include <memory>
#include <sstream>
#include <string>
#include "yaml-cpp/binary.h"
#include "yaml-cpp/dll.h"
#include "yaml-cpp/emitterdef.h"
#include "yaml-cpp/emittermanip.h"
#include "yaml-cpp/noncopyable.h"
#include "yaml-cpp/null.h"
#include "yaml-cpp/ostream_wrapper.h"
#include <memory>
#include <string>
#include <sstream>
namespace
YAML
{
class
Binary
;
struct
_Null
;
}
// namespace YAML
namespace
YAML
{
class
EmitterState
;
...
...
include/yaml-cpp/parser.h
View file @
8d7eb02c
...
...
@@ -7,16 +7,18 @@
#pragma once
#endif
#include "yaml-cpp/dll.h"
#include "yaml-cpp/noncopyable.h"
#include <ios>
#include <memory>
#include "yaml-cpp/dll.h"
#include "yaml-cpp/noncopyable.h"
namespace
YAML
{
struct
Directives
;
struct
Token
;
class
EventHandler
;
class
Node
;
class
Scanner
;
struct
Directives
;
struct
Token
;
class
YAML_CPP_API
Parser
:
private
noncopyable
{
public
:
...
...
src/contrib/graphbuilder.cpp
View file @
8d7eb02c
#include "yaml-cpp/parser.h"
#include "yaml-cpp/contrib/graphbuilder.h"
#include "graphbuilderadapter.h"
#include "yaml-cpp/parser.h" // IWYU pragma: keep
namespace
YAML
{
class
GraphBuilderInterface
;
void
*
BuildGraphOfNextDocument
(
Parser
&
parser
,
GraphBuilderInterface
&
graphBuilder
)
{
GraphBuilderAdapter
eventHandler
(
graphBuilder
);
...
...
src/contrib/graphbuilderadapter.cpp
View file @
8d7eb02c
#include "graphbuilderadapter.h"
#include "yaml-cpp/contrib/graphbuilder.h"
namespace
YAML
{
struct
Mark
;
int
GraphBuilderAdapter
::
ContainerFrame
::
sequenceMarker
;
void
GraphBuilderAdapter
::
OnNull
(
const
Mark
&
mark
,
anchor_t
anchor
)
{
...
...
src/contrib/graphbuilderadapter.h
View file @
8d7eb02c
...
...
@@ -10,9 +10,16 @@
#include <cstdlib>
#include <map>
#include <stack>
#include "yaml-cpp/eventhandler.h"
#include "yaml-cpp/anchor.h"
#include "yaml-cpp/contrib/anchordict.h"
#include "yaml-cpp/contrib/graphbuilder.h"
#include "yaml-cpp/eventhandler.h"
namespace
YAML
{
class
GraphBuilderInterface
;
struct
Mark
;
}
// namespace YAML
namespace
YAML
{
class
GraphBuilderAdapter
:
public
EventHandler
{
...
...
src/emitfromevents.cpp
View file @
8d7eb02c
#include <cassert>
#include <sstream>
#include "yaml-cpp/emitfromevents.h"
#include "yaml-cpp/emitter.h"
#include "yaml-cpp/emittermanip.h"
#include "yaml-cpp/null.h"
#include <cassert>
#include <sstream>
namespace
YAML
{
struct
Mark
;
}
// namespace YAML
namespace
{
std
::
string
ToString
(
YAML
::
anchor_t
anchor
)
{
...
...
src/emitter.cpp
View file @
8d7eb02c
#include "yaml-cpp/emitter.h"
#include "emitterstate.h"
#include "emitterutils.h"
#include "indentation.h"
#include "yaml-cpp/exceptions.h"
#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
{
class
Binary
;
struct
_Null
;
Emitter
::
Emitter
()
:
m_pState
(
new
EmitterState
)
{}
Emitter
::
Emitter
(
std
::
ostream
&
stream
)
...
...
src/emitterstate.cpp
View file @
8d7eb02c
#include "emitterstate.h"
#include "yaml-cpp/exceptions.h"
#include <limits>
#include "emitterstate.h"
#include "yaml-cpp/exceptions.h" // IWYU pragma: keep
namespace
YAML
{
EmitterState
::
EmitterState
()
:
m_isGood
(
true
),
...
...
src/emitterutils.cpp
View file @
8d7eb02c
#include <iomanip>
#include <sstream>
#include "emitterutils.h"
#include "exp.h"
#include "indentation.h"
#include "
yaml-cpp/binary
.h"
#include "
yaml-cpp/exceptions
.h"
#include "
regex_yaml
.h"
#include "
regeximpl
.h"
#include "stringsource.h"
#include
<sstream>
#include
<iomanip>
#include
"yaml-cpp/binary.h" // IWYU pragma: keep
#include
"yaml-cpp/ostream_wrapper.h"
namespace
YAML
{
namespace
Utils
{
...
...
src/emitterutils.h
View file @
8d7eb02c
...
...
@@ -7,9 +7,15 @@
#pragma once
#endif
#include <string>
#include "emitterstate.h"
#include "yaml-cpp/emittermanip.h"
#include "yaml-cpp/ostream_wrapper.h"
#include <string>
namespace
YAML
{
class
ostream_wrapper
;
}
// namespace YAML
namespace
YAML
{
class
Binary
;
...
...
src/exp.cpp
View file @
8d7eb02c
#include "exp.h"
#include "yaml-cpp/exceptions.h"
#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
Exp
{
unsigned
ParseHex
(
const
std
::
string
&
str
,
const
Mark
&
mark
)
{
...
...
src/exp.h
View file @
8d7eb02c
...
...
@@ -7,9 +7,10 @@
#pragma once
#endif
#include "regex_yaml.h"
#include <string>
#include <ios>
#include <string>
#include "regex_yaml.h"
#include "stream.h"
namespace
YAML
{
...
...
src/parser.cpp
View file @
8d7eb02c
#include
"yaml-cpp/parser.h"
#include
"yaml-cpp/eventhandler.h"
#include "yaml-cpp/exceptions.h"
#include "directives.h"
#include "scanner.h"
#include
<cstdio>
#include
<sstream>
#include "directives.h"
// IWYU pragma: keep
#include "scanner.h"
// IWYU pragma: keep
#include "singledocparser.h"
#include "tag.h"
#include "token.h"
#include
<sstream>
#include
<cstdio>
#include
"yaml-cpp/exceptions.h" // IWYU pragma: keep
#include
"yaml-cpp/parser.h"
namespace
YAML
{
class
EventHandler
;
Parser
::
Parser
()
{}
Parser
::
Parser
(
std
::
istream
&
in
)
{
Load
(
in
);
}
...
...
src/regex_yaml.h
View file @
8d7eb02c
...
...
@@ -7,8 +7,8 @@
#pragma once
#endif
#include <vector>
#include <string>
#include <vector>
namespace
YAML
{
class
Stream
;
...
...
src/scanner.cpp
View file @
8d7eb02c
#include "scanner.h"
#include "token.h"
#include "yaml-cpp/exceptions.h"
#include "exp.h"
#include <cassert>
#include <memory>
#include "exp.h"
#include "scanner.h"
#include "token.h"
#include "yaml-cpp/exceptions.h" // IWYU pragma: keep
namespace
YAML
{
Scanner
::
Scanner
(
std
::
istream
&
in
)
:
INPUT
(
in
),
...
...
src/scanner.h
View file @
8d7eb02c
...
...
@@ -8,14 +8,16 @@
#endif
#include <ios>
#include <
string
>
#include <
map
>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <stack>
#include <string>
#include "ptr_vector.h"
#include "stream.h"
#include "token.h"
#include "yaml-cpp/mark.h"
namespace
YAML
{
class
Node
;
...
...
src/scanscalar.cpp
View file @
8d7eb02c
#include "scanscalar.h"
#include "scanner.h"
#include "exp.h"
#include "yaml-cpp/exceptions.h"
#include "token.h"
#include "regeximpl.h"
#include "scanscalar.h"
#include "stream.h"
#include "yaml-cpp/exceptions.h" // IWYU pragma: keep
namespace
YAML
{
// ScanScalar
...
...
src/scanscalar.h
View file @
8d7eb02c
...
...
@@ -8,6 +8,7 @@
#endif
#include <string>
#include "regex_yaml.h"
#include "stream.h"
...
...
src/scantag.cpp
View file @
8d7eb02c
#include "scanner.h"
#include "regex_yaml.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
{
const
std
::
string
ScanVerbatimTag
(
Stream
&
INPUT
)
{
...
...
src/scantoken.cpp
View file @
8d7eb02c
#include "scanner.h"
#include "token.h"
#include "yaml-cpp/exceptions.h"
#include <sstream>
#include "exp.h"
#include "regex_yaml.h"
#include "regeximpl.h"
#include "scanner.h"
#include "scanscalar.h"
#include "scantag.h"
#include "tag.h"
#include <sstream>
#include "scantag.h" // IWYU pragma: keep
#include "tag.h" // IWYU pragma: keep
#include "token.h"
#include "yaml-cpp/exceptions.h" // IWYU pragma: keep
#include "yaml-cpp/mark.h"
namespace
YAML
{
///////////////////////////////////////////////////////////////////////
...
...
src/simplekey.cpp
View file @
8d7eb02c
#include "scanner.h"
#include "token.h"
#include "yaml-cpp/exceptions.h"
#include "exp.h"
namespace
YAML
{
struct
Mark
;
Scanner
::
SimpleKey
::
SimpleKey
(
const
Mark
&
mark_
,
int
flowLevel_
)
:
mark
(
mark_
),
flowLevel
(
flowLevel_
),
pIndent
(
0
),
pMapStart
(
0
),
pKey
(
0
)
{}
...
...
src/singledocparser.cpp
View file @
8d7eb02c
#include
"singledocparser.h"
#include
"collectionstack.h"
#include
"directives.h"
#include "yaml-cpp/eventhandler.h"
#include "
yaml-cpp/exceptions.h"
#include
<algorithm>
#include
<cstdio>
#include
<sstream>
#include "
collectionstack.h" // IWYU pragma: keep
#include "scanner.h"
#include "singledocparser.h"
#include "tag.h"
#include "token.h"
#include
<sstream>
#include
<cstdio>
#include
<algorithm>
#include
"yaml-cpp/eventhandler.h"
#include
"yaml-cpp/exceptions.h" // IWYU pragma: keep
#include
"yaml-cpp/mark.h"
namespace
YAML
{
SingleDocParser
::
SingleDocParser
(
Scanner
&
scanner
,
const
Directives
&
directives
)
...
...
src/singledocparser.h
View file @
8d7eb02c
...
...
@@ -7,20 +7,21 @@
#pragma once
#endif
#include "yaml-cpp/anchor.h"
#include "yaml-cpp/noncopyable.h"
#include <string>
#include <map>
#include <memory>
#include <string>
#include "yaml-cpp/anchor.h"
#include "yaml-cpp/noncopyable.h"
namespace
YAML
{
struct
Directives
;
struct
Mark
;
struct
Token
;
class
CollectionStack
;
class
EventHandler
;
class
Node
;
class
Scanner
;
struct
Directives
;
struct
Mark
;
struct
Token
;
class
SingleDocParser
:
private
noncopyable
{
public
:
...
...
src/stream.cpp
View file @
8d7eb02c
#include "stream.h"
#include <iostream>
#include "exp.h"
#include "stream.h"
#ifndef YAML_PREFETCH_SIZE
#define YAML_PREFETCH_SIZE 2048
...
...
src/tag.cpp
View file @
8d7eb02c
#include "tag.h"
#include "directives.h"
#include "token.h"
#include <cassert>
#include <stdexcept>
#include "directives.h" // IWYU pragma: keep
#include "tag.h"
#include "token.h"
namespace
YAML
{
Tag
::
Tag
(
const
Token
&
token
)
:
type
(
static_cast
<
TYPE
>
(
token
.
data
))
{
switch
(
type
)
{
...
...
src/tag.h
View file @
8d7eb02c
...
...
@@ -10,8 +10,8 @@
#include <string>
namespace
YAML
{
struct
Token
;
struct
Directives
;
struct
Token
;
struct
Tag
{
enum
TYPE
{
...
...
test/core/parsertests.cpp
View file @
8d7eb02c
#include "parsertests.h"
#include "handlermacros.h"
#include "yaml-cpp/yaml.h"
#include <iostream>
#include "handlermacros.h"
#include "parsertests.h" // IWYU pragma: keep
#include "teststruct.h"
#include "yaml-cpp/parser.h"
namespace
YAML
{
class
Exception
;
class
ParserException
;
}
// namespace YAML
namespace
Test
{
namespace
Parser
{
TEST
NoEndOfMapFlow
()
{
...
...
test/core/spectests.cpp
View file @
8d7eb02c
#include "spectests.h"
#include "handlermacros.h"
#include "specexamples.h"
#include "yaml-cpp/yaml.h"
#include <cassert>
#include "handlermacros.h"
#include "specexamples.h" // IWYU pragma: keep
#include "spectests.h" // IWYU pragma: keep
#include "yaml-cpp/yaml.h" // IWYU pragma: keep
namespace
Test
{
namespace
Spec
{
// 2.1
...
...
test/emittertests.cpp
View file @
8d7eb02c
#include "tests.h"
#include "handlermacros.h"
#include "yaml-cpp/yaml.h"
#include <iostream>
#include "teststruct.h"
#include "yaml-cpp/eventhandler.h"
#include "yaml-cpp/yaml.h" // IWYU pragma: keep
namespace
Test
{
namespace
Emitter
{
////////////////////////////////////////////////////////////////////////////////////////////////////////
...
...
test/ostream_wrapper_test.cpp
View file @
8d7eb02c
#include "yaml-cpp/ostream_wrapper.h"
#include <stddef.h>
#include <sstream>
#include "gtest/gtest.h"
#include "yaml-cpp/ostream_wrapper.h"
namespace
{
TEST
(
OstreamWrapperTest
,
BufferNoWrite
)
{
...
...
test/spectests.cpp
View file @
8d7eb02c
#include "spectests.h"
#include "yaml-cpp/yaml.h"
#include <iostream>
#include "spectests.h"
#include "yaml-cpp/yaml.h" // IWYU pragma: keep
namespace
YAML
{
class
Exception
;
}
// namespace YAML
namespace
Test
{
namespace
{
void
RunSpecTest
(
TEST
(
*
test
)(),
const
std
::
string
&
index
,
...
...
test/tests.cpp
View file @
8d7eb02c
#include "tests.h"
#include <fstream>
#include <iostream>
#include <sstream>
#include <vector>
#include "emittertests.h"
#include "nodetests.h"
#include "parsertests.h"
#include "spectests.h"
#include "yaml-cpp/yaml.h"
#include <fstream>
#include <sstream>
#include <vector>
#include <iostream>
#include "tests.h"
namespace
Test
{
void
RunAll
()
{
...
...
util/read.cpp
View file @
8d7eb02c
#include "yaml-cpp/yaml.h"
#include "yaml-cpp/eventhandler.h"
#include <iostream>
#include "yaml-cpp/yaml.h" // IWYU pragma: keep
class
NullEventHandler
:
public
YAML
::
EventHandler
{
public
:
typedef
YAML
::
Mark
Mark
;
...
...
util/sandbox.cpp
View file @
8d7eb02c
#include "yaml-cpp/yaml.h"
#include "yaml-cpp/eventhandler.h"
#include <iostream>
#include "yaml-cpp/eventhandler.h"
#include "yaml-cpp/yaml.h" // IWYU pragma: keep
class
NullEventHandler
:
public
YAML
::
EventHandler
{
public
:
typedef
YAML
::
Mark
Mark
;
...
...
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