Commit 03bc6535bda2480adcfc30ae501db3252ffbcc92
1 parent
48467ccd
generate_auto_job: protect generated files from formatting
Showing
13 changed files
with
36 additions
and
12 deletions
generate_auto_job
| @@ -130,6 +130,8 @@ BANNER = f'''// | @@ -130,6 +130,8 @@ BANNER = f'''// | ||
| 130 | // This file is automatically generated by {whoami}. | 130 | // This file is automatically generated by {whoami}. |
| 131 | // Edits will be automatically overwritten if the build is | 131 | // Edits will be automatically overwritten if the build is |
| 132 | // run in maintainer mode. | 132 | // run in maintainer mode. |
| 133 | +// | ||
| 134 | +// clang-format off | ||
| 133 | //''' | 135 | //''' |
| 134 | 136 | ||
| 135 | 137 |
include/qpdf/auto_job_c_att.hh
| @@ -3,6 +3,8 @@ | @@ -3,6 +3,8 @@ | ||
| 3 | // Edits will be automatically overwritten if the build is | 3 | // Edits will be automatically overwritten if the build is |
| 4 | // run in maintainer mode. | 4 | // run in maintainer mode. |
| 5 | // | 5 | // |
| 6 | +// clang-format off | ||
| 7 | +// | ||
| 6 | QPDF_DLL AttConfig* replace(); | 8 | QPDF_DLL AttConfig* replace(); |
| 7 | QPDF_DLL AttConfig* key(std::string const& parameter); | 9 | QPDF_DLL AttConfig* key(std::string const& parameter); |
| 8 | QPDF_DLL AttConfig* filename(std::string const& parameter); | 10 | QPDF_DLL AttConfig* filename(std::string const& parameter); |
include/qpdf/auto_job_c_copy_att.hh
| @@ -3,5 +3,7 @@ | @@ -3,5 +3,7 @@ | ||
| 3 | // Edits will be automatically overwritten if the build is | 3 | // Edits will be automatically overwritten if the build is |
| 4 | // run in maintainer mode. | 4 | // run in maintainer mode. |
| 5 | // | 5 | // |
| 6 | +// clang-format off | ||
| 7 | +// | ||
| 6 | QPDF_DLL CopyAttConfig* prefix(std::string const& parameter); | 8 | QPDF_DLL CopyAttConfig* prefix(std::string const& parameter); |
| 7 | QPDF_DLL CopyAttConfig* password(std::string const& parameter); | 9 | QPDF_DLL CopyAttConfig* password(std::string const& parameter); |
include/qpdf/auto_job_c_enc.hh
| @@ -3,6 +3,8 @@ | @@ -3,6 +3,8 @@ | ||
| 3 | // Edits will be automatically overwritten if the build is | 3 | // Edits will be automatically overwritten if the build is |
| 4 | // run in maintainer mode. | 4 | // run in maintainer mode. |
| 5 | // | 5 | // |
| 6 | +// clang-format off | ||
| 7 | +// | ||
| 6 | QPDF_DLL EncConfig* extract(std::string const& parameter); | 8 | QPDF_DLL EncConfig* extract(std::string const& parameter); |
| 7 | QPDF_DLL EncConfig* annotate(std::string const& parameter); | 9 | QPDF_DLL EncConfig* annotate(std::string const& parameter); |
| 8 | QPDF_DLL EncConfig* print(std::string const& parameter); | 10 | QPDF_DLL EncConfig* print(std::string const& parameter); |
include/qpdf/auto_job_c_main.hh
| @@ -3,6 +3,8 @@ | @@ -3,6 +3,8 @@ | ||
| 3 | // Edits will be automatically overwritten if the build is | 3 | // Edits will be automatically overwritten if the build is |
| 4 | // run in maintainer mode. | 4 | // run in maintainer mode. |
| 5 | // | 5 | // |
| 6 | +// clang-format off | ||
| 7 | +// | ||
| 6 | QPDF_DLL Config* allowWeakCrypto(); | 8 | QPDF_DLL Config* allowWeakCrypto(); |
| 7 | QPDF_DLL Config* check(); | 9 | QPDF_DLL Config* check(); |
| 8 | QPDF_DLL Config* checkLinearization(); | 10 | QPDF_DLL Config* checkLinearization(); |
include/qpdf/auto_job_c_pages.hh
include/qpdf/auto_job_c_uo.hh
| @@ -3,6 +3,8 @@ | @@ -3,6 +3,8 @@ | ||
| 3 | // Edits will be automatically overwritten if the build is | 3 | // Edits will be automatically overwritten if the build is |
| 4 | // run in maintainer mode. | 4 | // run in maintainer mode. |
| 5 | // | 5 | // |
| 6 | +// clang-format off | ||
| 7 | +// | ||
| 6 | QPDF_DLL UOConfig* to(std::string const& parameter); | 8 | QPDF_DLL UOConfig* to(std::string const& parameter); |
| 7 | QPDF_DLL UOConfig* from(std::string const& parameter); | 9 | QPDF_DLL UOConfig* from(std::string const& parameter); |
| 8 | QPDF_DLL UOConfig* repeat(std::string const& parameter); | 10 | QPDF_DLL UOConfig* repeat(std::string const& parameter); |
job.sums
| 1 | # Generated by generate_auto_job | 1 | # Generated by generate_auto_job |
| 2 | -generate_auto_job 464f660527880d5213ada3f5be5bdab05a425610044dbe0a2a918bc1e268726a | ||
| 3 | -include/qpdf/auto_job_c_att.hh 1f5d589ccf6684b09a203da261c31fc90a866e6eefe906b673e2d6d5a08ef753 | ||
| 4 | -include/qpdf/auto_job_c_copy_att.hh 65bdce5382a60f1815214297cf005072f17556ec4a15317b600f9ecc9cb89ea4 | ||
| 5 | -include/qpdf/auto_job_c_enc.hh 37ca99a124a34bb613f154c6c8934761bd7e7cc5a2719798ccec7edf05b4aeb9 | ||
| 6 | -include/qpdf/auto_job_c_main.hh 1130a203a513659fbfdd3ab8e435779e402d4f519a11f572ab421b8e937f1d7a | ||
| 7 | -include/qpdf/auto_job_c_pages.hh 931840b329a36ca0e41401190e04537b47f2867671a6643bfd8da74014202671 | ||
| 8 | -include/qpdf/auto_job_c_uo.hh 4a1148f815a5d0833d2c519dac940be34825294c8c26f77da65e48fdc75f178e | 2 | +generate_auto_job 86109dcb8646dca3f50b6ff92d460c62fcd98a5c95d47276b7c1217f4430271e |
| 3 | +include/qpdf/auto_job_c_att.hh 4c2b171ea00531db54720bf49a43f8b34481586ae7fb6cbf225099ee42bc5bb4 | ||
| 4 | +include/qpdf/auto_job_c_copy_att.hh 50609012bff14fd82f0649185940d617d05d530cdc522185c7f3920a561ccb42 | ||
| 5 | +include/qpdf/auto_job_c_enc.hh 28446f3c32153a52afa239ea40503e6cc8ac2c026813526a349e0cd4ae17ddd5 | ||
| 6 | +include/qpdf/auto_job_c_main.hh 4ba9bcb8be945f6a3ffa0df3becdb8488b6eaf45dd914d8b714d948e17b5ad5d | ||
| 7 | +include/qpdf/auto_job_c_pages.hh b3cc0f21029f6d89efa043dcdbfa183cb59325b6506001c18911614fe8e568ec | ||
| 8 | +include/qpdf/auto_job_c_uo.hh ae21b69a1efa9333050f4833d465f6daff87e5b38e5106e49bbef5d4132e4ed1 | ||
| 9 | job.yml 06a0b29f63c1622a0c6270d15d848a42084a6424e4b98d5d4942a8ec903b7a70 | 9 | job.yml 06a0b29f63c1622a0c6270d15d848a42084a6424e4b98d5d4942a8ec903b7a70 |
| 10 | -libqpdf/qpdf/auto_job_decl.hh c15c5c4f25f32a8086d579fc40d64326467a74a08209b8fbccf9f996ca2970ab | ||
| 11 | -libqpdf/qpdf/auto_job_help.hh 43184f01816b5210bbc981de8de48446546fb94f4fd6e63cfc7f2fbac3578e6b | ||
| 12 | -libqpdf/qpdf/auto_job_init.hh 4d6c4641347e9ee9ea8d057a37d008c9f0f73484c6a04eb879b7a2f8889828bd | ||
| 13 | -libqpdf/qpdf/auto_job_json_decl.hh c5e3fd38a3b0c569eb0c6b4c60953a09cd6bc7d3361a357a81f64fe36af2b0cf | ||
| 14 | -libqpdf/qpdf/auto_job_json_init.hh b070350d304d137ba594c1ba40b373137e8459735f04b8ca0f8a2ffd1908c69e | 10 | +libqpdf/qpdf/auto_job_decl.hh 74df4d7fdbdf51ecd0d58ce1e9844bb5525b9adac5a45f7c9a787ecdda2868df |
| 11 | +libqpdf/qpdf/auto_job_help.hh a7d7edc3b270f2488778426646bb68dcad036727db4be87d1da9993e2a007634 | ||
| 12 | +libqpdf/qpdf/auto_job_init.hh 6bd71c2ae4ba80e81fe5ae5517ba72abf53a3146f66864f99eeebc7d224998a5 | ||
| 13 | +libqpdf/qpdf/auto_job_json_decl.hh 30058d744cfb0d1b5e5bd2830e1c7b24713ee39c97c4ccb723dbbae1f9fab61c | ||
| 14 | +libqpdf/qpdf/auto_job_json_init.hh d3885830362c4337822bf9bc3d177b50149ba403a26de0e69d37f7751cb5d538 | ||
| 15 | libqpdf/qpdf/auto_job_schema.hh 18a3780671d95224cb9a27dcac627c421cae509d59f33a63e6bda0ab53cce923 | 15 | libqpdf/qpdf/auto_job_schema.hh 18a3780671d95224cb9a27dcac627c421cae509d59f33a63e6bda0ab53cce923 |
| 16 | manual/_ext/qpdf.py e9ac9d6c70642a3d29281ee5ad92ae2422dee8be9306fb8a0bc9dba0ed5e28f3 | 16 | manual/_ext/qpdf.py e9ac9d6c70642a3d29281ee5ad92ae2422dee8be9306fb8a0bc9dba0ed5e28f3 |
| 17 | manual/cli.rst aa44cbe7b6281ee05dc8b19ee1b12ca770503681ffc8ba90e795fc3c3b55153d | 17 | manual/cli.rst aa44cbe7b6281ee05dc8b19ee1b12ca770503681ffc8ba90e795fc3c3b55153d |
libqpdf/qpdf/auto_job_decl.hh
| @@ -3,6 +3,8 @@ | @@ -3,6 +3,8 @@ | ||
| 3 | // Edits will be automatically overwritten if the build is | 3 | // Edits will be automatically overwritten if the build is |
| 4 | // run in maintainer mode. | 4 | // run in maintainer mode. |
| 5 | // | 5 | // |
| 6 | +// clang-format off | ||
| 7 | +// | ||
| 6 | static constexpr char const* O_PAGES = "pages"; | 8 | static constexpr char const* O_PAGES = "pages"; |
| 7 | static constexpr char const* O_ENCRYPTION = "encryption"; | 9 | static constexpr char const* O_ENCRYPTION = "encryption"; |
| 8 | static constexpr char const* O_40_BIT_ENCRYPTION = "40-bit encryption"; | 10 | static constexpr char const* O_40_BIT_ENCRYPTION = "40-bit encryption"; |
libqpdf/qpdf/auto_job_help.hh
| @@ -3,6 +3,8 @@ | @@ -3,6 +3,8 @@ | ||
| 3 | // Edits will be automatically overwritten if the build is | 3 | // Edits will be automatically overwritten if the build is |
| 4 | // run in maintainer mode. | 4 | // run in maintainer mode. |
| 5 | // | 5 | // |
| 6 | +// clang-format off | ||
| 7 | +// | ||
| 6 | static void add_help_1(QPDFArgParser& ap) | 8 | static void add_help_1(QPDFArgParser& ap) |
| 7 | { | 9 | { |
| 8 | ap.addHelpTopic("usage", "basic invocation", R"(Read a PDF file, apply transformations or modifications, and write | 10 | ap.addHelpTopic("usage", "basic invocation", R"(Read a PDF file, apply transformations or modifications, and write |
libqpdf/qpdf/auto_job_init.hh
| @@ -3,6 +3,8 @@ | @@ -3,6 +3,8 @@ | ||
| 3 | // Edits will be automatically overwritten if the build is | 3 | // Edits will be automatically overwritten if the build is |
| 4 | // run in maintainer mode. | 4 | // run in maintainer mode. |
| 5 | // | 5 | // |
| 6 | +// clang-format off | ||
| 7 | +// | ||
| 6 | auto b = [this](void (ArgParser::*f)()) { | 8 | auto b = [this](void (ArgParser::*f)()) { |
| 7 | return QPDFArgParser::bindBare(f, this); | 9 | return QPDFArgParser::bindBare(f, this); |
| 8 | }; | 10 | }; |
libqpdf/qpdf/auto_job_json_decl.hh
| @@ -3,6 +3,8 @@ | @@ -3,6 +3,8 @@ | ||
| 3 | // Edits will be automatically overwritten if the build is | 3 | // Edits will be automatically overwritten if the build is |
| 4 | // run in maintainer mode. | 4 | // run in maintainer mode. |
| 5 | // | 5 | // |
| 6 | +// clang-format off | ||
| 7 | +// | ||
| 6 | void setupInputFile(); | 8 | void setupInputFile(); |
| 7 | void setupPassword(); | 9 | void setupPassword(); |
| 8 | void setupEmpty(); | 10 | void setupEmpty(); |
libqpdf/qpdf/auto_job_json_init.hh
| @@ -3,6 +3,8 @@ | @@ -3,6 +3,8 @@ | ||
| 3 | // Edits will be automatically overwritten if the build is | 3 | // Edits will be automatically overwritten if the build is |
| 4 | // run in maintainer mode. | 4 | // run in maintainer mode. |
| 5 | // | 5 | // |
| 6 | +// clang-format off | ||
| 7 | +// | ||
| 6 | static char const* yn_choices[] = {"y", "n", 0}; | 8 | static char const* yn_choices[] = {"y", "n", 0}; |
| 7 | static char const* password_mode_choices[] = {"bytes", "hex-bytes", "unicode", "auto", 0}; | 9 | static char const* password_mode_choices[] = {"bytes", "hex-bytes", "unicode", "auto", 0}; |
| 8 | static char const* stream_data_choices[] = {"compress", "preserve", "uncompress", 0}; | 10 | static char const* stream_data_choices[] = {"compress", "preserve", "uncompress", 0}; |