diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-04-02 23:14:10 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-04-04 14:10:40 +0200 |
commit | 12f1eb15ca3fed6310402847559a7c99d3c77847 (patch) | |
tree | 8935675b623c6f3b4914b8b44f7fa5f2816a9241 /fuzz/ascii85_fuzzer.cc | |
parent | f20fa61eb4c323eb1642c69c236b3d9a1f8b2cdb (diff) | |
download | qpdf-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 'fuzz/ascii85_fuzzer.cc')
-rw-r--r-- | fuzz/ascii85_fuzzer.cc | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/fuzz/ascii85_fuzzer.cc b/fuzz/ascii85_fuzzer.cc index 40422e5b..daf6628c 100644 --- a/fuzz/ascii85_fuzzer.cc +++ b/fuzz/ascii85_fuzzer.cc @@ -1,5 +1,5 @@ -#include <qpdf/Pl_Discard.hh> #include <qpdf/Pl_ASCII85Decoder.hh> +#include <qpdf/Pl_Discard.hh> #include <iostream> #include <stdexcept> @@ -34,17 +34,15 @@ FuzzHelper::doChecks() void FuzzHelper::run() { - try - { + try { doChecks(); - } - catch (std::runtime_error const& e) - { + } catch (std::runtime_error const& e) { std::cerr << "runtime_error: " << e.what() << std::endl; } } -extern "C" int LLVMFuzzerTestOneInput(unsigned char const* data, size_t size) +extern "C" int +LLVMFuzzerTestOneInput(unsigned char const* data, size_t size) { FuzzHelper f(data, size); f.run(); |