mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-18 02:45:40 +02:00
Add PCH support and 'CATCH_ENABLE_PCH' flag
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
#include <catch2/internal/catch_test_spec_parser.hpp>
|
||||
#include <catch2/internal/catch_tag_alias_registry.hpp>
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
|
||||
|
||||
Catch::TagAliasRegistry tar;
|
||||
|
@@ -11,6 +11,8 @@
|
||||
|
||||
#include "NullOStream.h"
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
|
||||
|
||||
std::string buf(Data,Data+Size);
|
||||
@@ -19,4 +21,3 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
|
||||
encode.encodeTo(nul);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@@ -14,6 +14,8 @@
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
|
||||
template<class Callback>
|
||||
void split(const char *Data, size_t Size, Callback callback) {
|
||||
@@ -50,4 +52,3 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user