aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-02-26 15:17:00 +0100
committerJay Berkenbilt <ejb@ql.org>2022-02-26 15:17:51 +0100
commit03bc6535bda2480adcfc30ae501db3252ffbcc92 (patch)
tree389bdf5dbe44e553e31e8d1d8b73fb1eccbc06f5 /libqpdf
parent48467ccdc17564f737322d24670f968be66fa23d (diff)
downloadqpdf-03bc6535bda2480adcfc30ae501db3252ffbcc92.tar.zst
generate_auto_job: protect generated files from formatting
Diffstat (limited to 'libqpdf')
-rw-r--r--libqpdf/qpdf/auto_job_decl.hh2
-rw-r--r--libqpdf/qpdf/auto_job_help.hh2
-rw-r--r--libqpdf/qpdf/auto_job_init.hh2
-rw-r--r--libqpdf/qpdf/auto_job_json_decl.hh2
-rw-r--r--libqpdf/qpdf/auto_job_json_init.hh2
5 files changed, 10 insertions, 0 deletions
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};