Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guard export includes in every public header #1303

Merged
merged 1 commit into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/evaluator/include/sourcemeta/jsontoolkit/evaluator.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#ifndef SOURCEMETA_JSONTOOLKIT_EVALUATOR_H_
#define SOURCEMETA_JSONTOOLKIT_EVALUATOR_H_

#ifndef SOURCEMETA_JSONTOOLKIT_EVALUATOR_EXPORT
#include "evaluator_export.h"
#endif

#include <sourcemeta/jsontoolkit/evaluator_context.h>
#include <sourcemeta/jsontoolkit/evaluator_error.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#ifndef SOURCEMETA_JSONTOOLKIT_EVALUATOR_CONTEXT_H
#define SOURCEMETA_JSONTOOLKIT_EVALUATOR_CONTEXT_H

#ifndef SOURCEMETA_JSONTOOLKIT_EVALUATOR_EXPORT
#include "evaluator_export.h"
#endif

#include <sourcemeta/jsontoolkit/evaluator_template.h>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#ifndef SOURCEMETA_JSONTOOLKIT_EVALUATOR_ERROR_H
#define SOURCEMETA_JSONTOOLKIT_EVALUATOR_ERROR_H

#ifndef SOURCEMETA_JSONTOOLKIT_EVALUATOR_EXPORT
#include "evaluator_export.h"
#endif

#include <exception> // std::exception
#include <string> // std::string
Expand Down
2 changes: 2 additions & 0 deletions src/json/include/sourcemeta/jsontoolkit/json.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#ifndef SOURCEMETA_JSONTOOLKIT_JSON_H_
#define SOURCEMETA_JSONTOOLKIT_JSON_H_

#ifndef SOURCEMETA_JSONTOOLKIT_JSON_EXPORT
#include "json_export.h"
#endif

#include <sourcemeta/jsontoolkit/json_error.h>
#include <sourcemeta/jsontoolkit/json_value.h>
Expand Down
2 changes: 2 additions & 0 deletions src/json/include/sourcemeta/jsontoolkit/json_error.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#ifndef SOURCEMETA_JSONTOOLKIT_JSON_ERROR_H_
#define SOURCEMETA_JSONTOOLKIT_JSON_ERROR_H_

#ifndef SOURCEMETA_JSONTOOLKIT_JSON_EXPORT
#include "json_export.h"
#endif

#include <cstdint> // std::uint64_t
#include <exception> // std::exception
Expand Down
2 changes: 2 additions & 0 deletions src/json/include/sourcemeta/jsontoolkit/json_value.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#ifndef SOURCEMETA_JSONTOOLKIT_JSON_VALUE_H_
#define SOURCEMETA_JSONTOOLKIT_JSON_VALUE_H_

#ifndef SOURCEMETA_JSONTOOLKIT_JSON_EXPORT
#include "json_export.h"
#endif

#include <sourcemeta/jsontoolkit/json_array.h>
#include <sourcemeta/jsontoolkit/json_object.h>
Expand Down
2 changes: 2 additions & 0 deletions src/jsonl/include/sourcemeta/jsontoolkit/jsonl.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#ifndef SOURCEMETA_JSONTOOLKIT_JSONL_H_
#define SOURCEMETA_JSONTOOLKIT_JSONL_H_

#ifndef SOURCEMETA_JSONTOOLKIT_JSONL_EXPORT
#include "jsonl_export.h"
#endif

#include <sourcemeta/jsontoolkit/json.h>
#include <sourcemeta/jsontoolkit/jsonl_iterator.h>
Expand Down
2 changes: 2 additions & 0 deletions src/jsonl/include/sourcemeta/jsontoolkit/jsonl_iterator.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#ifndef SOURCEMETA_JSONTOOLKIT_JSONL_ITERATOR_H_
#define SOURCEMETA_JSONTOOLKIT_JSONL_ITERATOR_H_

#ifndef SOURCEMETA_JSONTOOLKIT_JSONL_EXPORT
#include "jsonl_export.h"
#endif

#include <sourcemeta/jsontoolkit/json.h>

Expand Down
2 changes: 2 additions & 0 deletions src/jsonpointer/include/sourcemeta/jsontoolkit/jsonpointer.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#ifndef SOURCEMETA_JSONTOOLKIT_JSONPOINTER_H_
#define SOURCEMETA_JSONTOOLKIT_JSONPOINTER_H_

#ifndef SOURCEMETA_JSONTOOLKIT_JSONPOINTER_EXPORT
#include "jsonpointer_export.h"
#endif

#include <sourcemeta/jsontoolkit/json.h>
#include <sourcemeta/jsontoolkit/jsonpointer.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#ifndef SOURCEMETA_JSONTOOLKIT_JSONPOINTER_ERROR_H_
#define SOURCEMETA_JSONTOOLKIT_JSONPOINTER_ERROR_H_

#ifndef SOURCEMETA_JSONTOOLKIT_JSONPOINTER_EXPORT
#include "jsonpointer_export.h"
#endif

#include <sourcemeta/jsontoolkit/json_error.h>

Expand Down
2 changes: 2 additions & 0 deletions src/jsonschema/include/sourcemeta/jsontoolkit/jsonschema.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#ifndef SOURCEMETA_JSONTOOLKIT_JSONSCHEMA_H_
#define SOURCEMETA_JSONTOOLKIT_JSONSCHEMA_H_

#ifndef SOURCEMETA_JSONTOOLKIT_JSONSCHEMA_EXPORT
#include "jsonschema_export.h"
#endif

#include <sourcemeta/jsontoolkit/json.h>
#include <sourcemeta/jsontoolkit/jsonschema_anchor.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#ifndef SOURCEMETA_JSONTOOLKIT_JSONSCHEMA_ANCHOR_H_
#define SOURCEMETA_JSONTOOLKIT_JSONSCHEMA_ANCHOR_H_

#ifndef SOURCEMETA_JSONTOOLKIT_JSONSCHEMA_EXPORT
#include "jsonschema_export.h"
#endif

#include <sourcemeta/jsontoolkit/json.h>
#include <sourcemeta/jsontoolkit/jsonschema_resolver.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#ifndef SOURCEMETA_JSONTOOLKIT_JSONSCHEMA_BUNDLE_H_
#define SOURCEMETA_JSONTOOLKIT_JSONSCHEMA_BUNDLE_H_

#ifndef SOURCEMETA_JSONTOOLKIT_JSONSCHEMA_EXPORT
#include "jsonschema_export.h"
#endif

#include <sourcemeta/jsontoolkit/json.h>
#include <sourcemeta/jsontoolkit/jsonschema_resolver.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#ifndef SOURCEMETA_JSONTOOLKIT_JSONSCHEMA_COMPILE_H_
#define SOURCEMETA_JSONTOOLKIT_JSONSCHEMA_COMPILE_H_

#ifndef SOURCEMETA_JSONTOOLKIT_JSONSCHEMA_EXPORT
#include "jsonschema_export.h"
#endif

#include <sourcemeta/jsontoolkit/evaluator.h>
#include <sourcemeta/jsontoolkit/jsonschema_reference.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#ifndef SOURCEMETA_JSONTOOLKIT_JSONSCHEMA_ERROR_H
#define SOURCEMETA_JSONTOOLKIT_JSONSCHEMA_ERROR_H

#ifndef SOURCEMETA_JSONTOOLKIT_JSONSCHEMA_EXPORT
#include "jsonschema_export.h"
#endif

#include <sourcemeta/jsontoolkit/jsonpointer.h>
#include <sourcemeta/jsontoolkit/uri.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#ifndef SOURCEMETA_JSONTOOLKIT_JSONSCHEMA_REFERENCE_H_
#define SOURCEMETA_JSONTOOLKIT_JSONSCHEMA_REFERENCE_H_

#ifndef SOURCEMETA_JSONTOOLKIT_JSONSCHEMA_EXPORT
#include "jsonschema_export.h"
#endif

#include <sourcemeta/jsontoolkit/jsonpointer.h>
#include <sourcemeta/jsontoolkit/jsonschema_resolver.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#ifndef SOURCEMETA_JSONTOOLKIT_JSONSCHEMA_RESOLVER_H_
#define SOURCEMETA_JSONTOOLKIT_JSONSCHEMA_RESOLVER_H_

#ifndef SOURCEMETA_JSONTOOLKIT_JSONSCHEMA_EXPORT
#include "jsonschema_export.h"
#endif

#include <sourcemeta/jsontoolkit/json.h>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#ifndef SOURCEMETA_JSONTOOLKIT_JSONSCHEMA_WALKER_H_
#define SOURCEMETA_JSONTOOLKIT_JSONSCHEMA_WALKER_H_

#ifndef SOURCEMETA_JSONTOOLKIT_JSONSCHEMA_EXPORT
#include "jsonschema_export.h"
#endif

#include <sourcemeta/jsontoolkit/json.h>
#include <sourcemeta/jsontoolkit/jsonpointer.h>
Expand Down
2 changes: 2 additions & 0 deletions src/uri/include/sourcemeta/jsontoolkit/uri.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#ifndef SOURCEMETA_JSONTOOLKIT_URI_H_
#define SOURCEMETA_JSONTOOLKIT_URI_H_

#ifndef SOURCEMETA_JSONTOOLKIT_URI_EXPORT
#include "uri_export.h"
#endif

#include <sourcemeta/jsontoolkit/uri_error.h>

Expand Down
2 changes: 2 additions & 0 deletions src/uri/include/sourcemeta/jsontoolkit/uri_error.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#ifndef SOURCEMETA_JSONTOOLKIT_URI_ERROR_H_
#define SOURCEMETA_JSONTOOLKIT_URI_ERROR_H_

#ifndef SOURCEMETA_JSONTOOLKIT_URI_EXPORT
#include "uri_export.h"
#endif

#include <cstdint> // std::uint64_t
#include <exception> // std::exception
Expand Down