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
25c466a1
Commit
25c466a1
authored
Mar 29, 2015
by
Jesse Beder
Browse files
Run clang-format
parent
7092a0b0
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
10 deletions
+9
-10
include/yaml-cpp/node/convert.h
include/yaml-cpp/node/convert.h
+1
-1
include/yaml-cpp/ostream_wrapper.h
include/yaml-cpp/ostream_wrapper.h
+1
-1
src/convert.cpp
src/convert.cpp
+2
-2
src/stream.cpp
src/stream.cpp
+1
-1
src/token.h
src/token.h
+4
-5
No files found.
include/yaml-cpp/node/convert.h
View file @
25c466a1
...
...
@@ -64,7 +64,7 @@ struct convert<const char*> {
template
<
std
::
size_t
N
>
struct
convert
<
const
char
[
N
]
>
{
static
Node
encode
(
const
char
(
&
rhs
)[
N
])
{
return
Node
(
rhs
);
}
static
Node
encode
(
const
char
(
&
rhs
)[
N
])
{
return
Node
(
rhs
);
}
};
template
<
>
...
...
include/yaml-cpp/ostream_wrapper.h
View file @
25c466a1
...
...
@@ -52,7 +52,7 @@ class YAML_CPP_API ostream_wrapper {
template
<
std
::
size_t
N
>
inline
ostream_wrapper
&
operator
<<
(
ostream_wrapper
&
stream
,
const
char
(
&
str
)[
N
])
{
const
char
(
&
str
)[
N
])
{
stream
.
write
(
str
,
N
-
1
);
return
stream
;
}
...
...
src/convert.cpp
View file @
25c466a1
...
...
@@ -52,8 +52,8 @@ bool convert<bool>::decode(const Node& node, bool& rhs) {
static
const
struct
{
std
::
string
truename
,
falsename
;
}
names
[]
=
{
{
"y"
,
"n"
},
{
"yes"
,
"no"
},
{
"true"
,
"false"
},
{
"on"
,
"off"
},
};
{
"y"
,
"n"
},
{
"yes"
,
"no"
},
{
"true"
,
"false"
},
{
"on"
,
"off"
},
};
if
(
!
IsFlexibleCase
(
node
.
Scalar
()))
return
false
;
...
...
src/stream.cpp
View file @
25c466a1
...
...
@@ -7,7 +7,7 @@
#endif
#define S_ARRAY_SIZE(A) (sizeof(A) / sizeof(*(A)))
#define S_ARRAY_END(A) ((A)
+
S_ARRAY_SIZE(A))
#define S_ARRAY_END(A) ((A)
+
S_ARRAY_SIZE(A))
#define CP_REPLACEMENT_CHARACTER (0xFFFD)
...
...
src/token.h
View file @
25c466a1
...
...
@@ -14,11 +14,10 @@
namespace
YAML
{
const
std
::
string
TokenNames
[]
=
{
"DIRECTIVE"
,
"DOC_START"
,
"DOC_END"
,
"BLOCK_SEQ_START"
,
"BLOCK_MAP_START"
,
"BLOCK_SEQ_END"
,
"BLOCK_MAP_END"
,
"BLOCK_ENTRY"
,
"FLOW_SEQ_START"
,
"FLOW_MAP_START"
,
"FLOW_SEQ_END"
,
"FLOW_MAP_END"
,
"FLOW_MAP_COMPACT"
,
"FLOW_ENTRY"
,
"KEY"
,
"VALUE"
,
"ANCHOR"
,
"ALIAS"
,
"TAG"
,
"SCALAR"
};
"DIRECTIVE"
,
"DOC_START"
,
"DOC_END"
,
"BLOCK_SEQ_START"
,
"BLOCK_MAP_START"
,
"BLOCK_SEQ_END"
,
"BLOCK_MAP_END"
,
"BLOCK_ENTRY"
,
"FLOW_SEQ_START"
,
"FLOW_MAP_START"
,
"FLOW_SEQ_END"
,
"FLOW_MAP_END"
,
"FLOW_MAP_COMPACT"
,
"FLOW_ENTRY"
,
"KEY"
,
"VALUE"
,
"ANCHOR"
,
"ALIAS"
,
"TAG"
,
"SCALAR"
};
struct
Token
{
// enums
...
...
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