aboutsummaryrefslogtreecommitdiffstats
path: root/include/qpdf/JSON.hh
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-04-02 23:14:10 +0200
committerJay Berkenbilt <ejb@ql.org>2022-04-04 14:10:40 +0200
commit12f1eb15ca3fed6310402847559a7c99d3c77847 (patch)
tree8935675b623c6f3b4914b8b44f7fa5f2816a9241 /include/qpdf/JSON.hh
parentf20fa61eb4c323eb1642c69c236b3d9a1f8b2cdb (diff)
downloadqpdf-12f1eb15ca3fed6310402847559a7c99d3c77847.tar.zst
Programmatically apply new formatting to code
Run this: for i in **/*.cc **/*.c **/*.h **/*.hh; do clang-format < $i >| $i.new && mv $i.new $i done
Diffstat (limited to 'include/qpdf/JSON.hh')
-rw-r--r--include/qpdf/JSON.hh25
1 files changed, 12 insertions, 13 deletions
diff --git a/include/qpdf/JSON.hh b/include/qpdf/JSON.hh
index 55a3ec73..2f54721c 100644
--- a/include/qpdf/JSON.hh
+++ b/include/qpdf/JSON.hh
@@ -38,12 +38,12 @@
#include <qpdf/DLL.h>
#include <qpdf/PointerHolder.hh>
-#include <string>
-#include <map>
-#include <vector>
-#include <list>
#include <functional>
+#include <list>
+#include <map>
#include <memory>
+#include <string>
+#include <vector>
class JSON
{
@@ -134,14 +134,13 @@ class JSON
f_optional = 1 << 0,
};
QPDF_DLL
- bool checkSchema(JSON schema, unsigned long flags,
- std::list<std::string>& errors);
+ bool checkSchema(
+ JSON schema, unsigned long flags, std::list<std::string>& errors);
// Same as passing 0 for flags
QPDF_DLL
bool checkSchema(JSON schema, std::list<std::string>& errors);
-
// Create a JSON object from a string.
QPDF_DLL
static JSON parse(std::string const&);
@@ -198,11 +197,12 @@ class JSON
JSON(std::shared_ptr<JSON_value>);
- static bool
- checkSchemaInternal(JSON_value* this_v, JSON_value* sch_v,
- unsigned long flags,
- std::list<std::string>& errors,
- std::string prefix);
+ static bool checkSchemaInternal(
+ JSON_value* this_v,
+ JSON_value* sch_v,
+ unsigned long flags,
+ std::list<std::string>& errors,
+ std::string prefix);
class Members
{
@@ -222,5 +222,4 @@ class JSON
PointerHolder<Members> m;
};
-
#endif // JSON_HH