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 /libtests/closed_file_input_source.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 'libtests/closed_file_input_source.cc')
-rw-r--r-- | libtests/closed_file_input_source.cc | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/libtests/closed_file_input_source.cc b/libtests/closed_file_input_source.cc index f3e4f2ac..ff5354fb 100644 --- a/libtests/closed_file_input_source.cc +++ b/libtests/closed_file_input_source.cc @@ -1,20 +1,21 @@ #include <qpdf/ClosedFileInputSource.hh> #include <qpdf/FileInputSource.hh> -#include <stdio.h> -#include <string.h> #include <iostream> +#include <stdio.h> #include <stdlib.h> +#include <string.h> -void check(std::string const& what, bool result) +void +check(std::string const& what, bool result) { - if (! result) - { + if (!result) { std::cout << "FAIL: " << what << std::endl; } } -void do_tests(InputSource* is) +void +do_tests(InputSource* is) { check("get name", "input" == is->getName()); check("initial tell", 0 == is->tell()); @@ -59,7 +60,8 @@ void do_tests(InputSource* is) check("last offset after read 0", 0 == is->getLastOffset()); } -int main() +int +main() { // This test is designed to work with a specified input file. std::cout << "testing with ClosedFileInputSource\n"; |