Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
json
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
json
Commits
258f04c5
Commit
258f04c5
authored
Dec 14, 2015
by
Niels
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed #154 (no more warnings for incomplete switches)
parent
a70a7a80
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
745 additions
and
461 deletions
+745
-461
Makefile
Makefile
+1
-1
src/json.hpp
src/json.hpp
+352
-230
src/json.hpp.re2c
src/json.hpp.re2c
+352
-230
test/unit.cpp
test/unit.cpp
+40
-0
No files found.
Makefile
View file @
258f04c5
...
...
@@ -17,7 +17,7 @@ clean:
##########################################################################
# additional flags
FLAGS
=
-Wall
-Wextra
-pedantic
-Weffc
++
-Wcast-align
-Wcast-qual
-Wctor-dtor-privacy
-Wdisabled-optimization
-Wformat
=
2
-Winit-self
-Wmissing-declarations
-Wmissing-include-dirs
-Wold-style-cast
-Woverloaded-virtual
-Wredundant-decls
-Wshadow
-Wsign-conversion
-Wsign-promo
-Wstrict-overflow
=
5
-Wswitch
-Wundef
-Wno-unused
-Wnon-virtual-dtor
-Wreorder
-Wdeprecated
-Wfloat-equal
FLAGS
=
-Wall
-Wextra
-pedantic
-Weffc
++
-Wcast-align
-Wcast-qual
-Wctor-dtor-privacy
-Wdisabled-optimization
-Wformat
=
2
-Winit-self
-Wmissing-declarations
-Wmissing-include-dirs
-Wold-style-cast
-Woverloaded-virtual
-Wredundant-decls
-Wshadow
-Wsign-conversion
-Wsign-promo
-Wstrict-overflow
=
5
-Wswitch
-W
switch-enum
-Wswitch-default
-W
undef
-Wno-unused
-Wnon-virtual-dtor
-Wreorder
-Wdeprecated
-Wfloat-equal
# build unit tests
json_unit
:
test/unit.cpp src/json.hpp test/catch.hpp
...
...
src/json.hpp
View file @
258f04c5
This diff is collapsed.
Click to expand it.
src/json.hpp.re2c
View file @
258f04c5
This diff is collapsed.
Click to expand it.
test/unit.cpp
View file @
258f04c5
...
...
@@ -9263,6 +9263,11 @@ TEST_CASE("iterator_wrapper")
CHECK
(
i
.
value
()
==
json
(
2
));
break
;
}
default:
{
break
;
}
}
}
...
...
@@ -9291,6 +9296,11 @@ TEST_CASE("iterator_wrapper")
CHECK
(
i
.
value
()
==
json
(
2
));
break
;
}
default:
{
break
;
}
}
}
...
...
@@ -9319,6 +9329,11 @@ TEST_CASE("iterator_wrapper")
CHECK
(
i
.
value
()
==
json
(
2
));
break
;
}
default:
{
break
;
}
}
}
...
...
@@ -9347,6 +9362,11 @@ TEST_CASE("iterator_wrapper")
CHECK
(
i
.
value
()
==
json
(
2
));
break
;
}
default:
{
break
;
}
}
}
...
...
@@ -9378,6 +9398,11 @@ TEST_CASE("iterator_wrapper")
CHECK
(
i
.
value
()
==
"B"
);
break
;
}
default:
{
break
;
}
}
}
...
...
@@ -9406,6 +9431,11 @@ TEST_CASE("iterator_wrapper")
CHECK
(
i
.
value
()
==
"B"
);
break
;
}
default:
{
break
;
}
}
}
...
...
@@ -9434,6 +9464,11 @@ TEST_CASE("iterator_wrapper")
CHECK
(
i
.
value
()
==
"B"
);
break
;
}
default:
{
break
;
}
}
}
...
...
@@ -9462,6 +9497,11 @@ TEST_CASE("iterator_wrapper")
CHECK
(
i
.
value
()
==
"B"
);
break
;
}
default:
{
break
;
}
}
}
...
...
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