From 03bc6535bda2480adcfc30ae501db3252ffbcc92 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 26 Feb 2022 09:17:00 -0500 Subject: generate_auto_job: protect generated files from formatting --- libqpdf/qpdf/auto_job_decl.hh | 2 ++ libqpdf/qpdf/auto_job_help.hh | 2 ++ libqpdf/qpdf/auto_job_init.hh | 2 ++ libqpdf/qpdf/auto_job_json_decl.hh | 2 ++ libqpdf/qpdf/auto_job_json_init.hh | 2 ++ 5 files changed, 10 insertions(+) (limited to 'libqpdf') diff --git a/libqpdf/qpdf/auto_job_decl.hh b/libqpdf/qpdf/auto_job_decl.hh index 2671d130..02f0ca91 100644 --- a/libqpdf/qpdf/auto_job_decl.hh +++ b/libqpdf/qpdf/auto_job_decl.hh @@ -3,6 +3,8 @@ // Edits will be automatically overwritten if the build is // run in maintainer mode. // +// clang-format off +// static constexpr char const* O_PAGES = "pages"; static constexpr char const* O_ENCRYPTION = "encryption"; static constexpr char const* O_40_BIT_ENCRYPTION = "40-bit encryption"; diff --git a/libqpdf/qpdf/auto_job_help.hh b/libqpdf/qpdf/auto_job_help.hh index 38d275b5..388b861f 100644 --- a/libqpdf/qpdf/auto_job_help.hh +++ b/libqpdf/qpdf/auto_job_help.hh @@ -3,6 +3,8 @@ // Edits will be automatically overwritten if the build is // run in maintainer mode. // +// clang-format off +// static void add_help_1(QPDFArgParser& ap) { ap.addHelpTopic("usage", "basic invocation", R"(Read a PDF file, apply transformations or modifications, and write diff --git a/libqpdf/qpdf/auto_job_init.hh b/libqpdf/qpdf/auto_job_init.hh index 54506493..5483cbb2 100644 --- a/libqpdf/qpdf/auto_job_init.hh +++ b/libqpdf/qpdf/auto_job_init.hh @@ -3,6 +3,8 @@ // Edits will be automatically overwritten if the build is // run in maintainer mode. // +// clang-format off +// auto b = [this](void (ArgParser::*f)()) { return QPDFArgParser::bindBare(f, this); }; diff --git a/libqpdf/qpdf/auto_job_json_decl.hh b/libqpdf/qpdf/auto_job_json_decl.hh index 951e6a92..7f996928 100644 --- a/libqpdf/qpdf/auto_job_json_decl.hh +++ b/libqpdf/qpdf/auto_job_json_decl.hh @@ -3,6 +3,8 @@ // Edits will be automatically overwritten if the build is // run in maintainer mode. // +// clang-format off +// void setupInputFile(); void setupPassword(); void setupEmpty(); diff --git a/libqpdf/qpdf/auto_job_json_init.hh b/libqpdf/qpdf/auto_job_json_init.hh index 01a22167..2f807469 100644 --- a/libqpdf/qpdf/auto_job_json_init.hh +++ b/libqpdf/qpdf/auto_job_json_init.hh @@ -3,6 +3,8 @@ // Edits will be automatically overwritten if the build is // run in maintainer mode. // +// clang-format off +// static char const* yn_choices[] = {"y", "n", 0}; static char const* password_mode_choices[] = {"bytes", "hex-bytes", "unicode", "auto", 0}; static char const* stream_data_choices[] = {"compress", "preserve", "uncompress", 0}; -- cgit v1.2.3-54-g00ecf