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
15 changed files
with
79 additions
and
53 deletions
+79
-53
src/scantoken.cpp
src/scantoken.cpp
+10
-6
src/simplekey.cpp
src/simplekey.cpp
+2
-2
src/singledocparser.cpp
src/singledocparser.cpp
+9
-8
src/singledocparser.h
src/singledocparser.h
+7
-6
src/stream.cpp
src/stream.cpp
+2
-2
src/tag.cpp
src/tag.cpp
+4
-3
src/tag.h
src/tag.h
+1
-1
test/core/parsertests.cpp
test/core/parsertests.cpp
+10
-3
test/core/spectests.cpp
test/core/spectests.cpp
+5
-4
test/emittertests.cpp
test/emittertests.cpp
+9
-4
test/ostream_wrapper_test.cpp
test/ostream_wrapper_test.cpp
+2
-2
test/spectests.cpp
test/spectests.cpp
+7
-2
test/tests.cpp
test/tests.cpp
+6
-6
util/read.cpp
util/read.cpp
+2
-2
util/sandbox.cpp
util/sandbox.cpp
+3
-2
No files found.
src/scantoken.cpp
View file @
5fd25df8
#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 @
5fd25df8
#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 @
5fd25df8
#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 @
5fd25df8
...
...
@@ -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 @
5fd25df8
#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 @
5fd25df8
#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 @
5fd25df8
...
...
@@ -10,8 +10,8 @@
#include <string>
namespace
YAML
{
struct
Token
;
struct
Directives
;
struct
Token
;
struct
Tag
{
enum
TYPE
{
...
...
test/core/parsertests.cpp
View file @
5fd25df8
#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 @
5fd25df8
#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 @
5fd25df8
#include "tests.h"
#include "handlermacros.h"
#include "yaml-cpp/yaml.h"
#include "yaml-cpp/eventhandler.h"
#include <iostream>
#include "teststruct.h"
#include "yaml-cpp/eventhandler.h"
#include "yaml-cpp/yaml.h" // IWYU pragma: keep
namespace
YAML
{
class
Exception
;
struct
Mark
;
}
// namespace YAML
namespace
Test
{
namespace
Emitter
{
////////////////////////////////////////////////////////////////////////////////////////////////////////
...
...
test/ostream_wrapper_test.cpp
View file @
5fd25df8
#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 @
5fd25df8
#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 @
5fd25df8
#include "tests.h"
#include "emittertests.h"
#include "parsertests.h"
#include "spectests.h"
#include "yaml-cpp/yaml.h"
#include <fstream>
#include <iostream>
#include <sstream>
#include <vector>
#include <iostream>
#include "emittertests.h"
#include "parsertests.h"
#include "spectests.h"
#include "tests.h"
namespace
Test
{
void
RunAll
()
{
...
...
util/read.cpp
View file @
5fd25df8
#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 @
5fd25df8
#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
;
...
...
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