diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-04-10 15:23:27 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-04-10 18:49:50 +0200 |
commit | 8c504c9a905dc1cddbcbb32b368afe91f340984f (patch) | |
tree | d9103d17472b563fe66b05452a5e674d6ef9ab9d | |
parent | 07edf9644004bd788eacec56aa21a5c89b3c92cc (diff) | |
download | qpdf-8c504c9a905dc1cddbcbb32b368afe91f340984f.tar.zst |
Tweak for clang-format and emacs font-lock
-rw-r--r-- | include/qpdf/QPDFObjectHandle.hh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/qpdf/QPDFObjectHandle.hh b/include/qpdf/QPDFObjectHandle.hh index 4c1fe6e6..7437d494 100644 --- a/include/qpdf/QPDFObjectHandle.hh +++ b/include/qpdf/QPDFObjectHandle.hh @@ -1538,8 +1538,16 @@ class QPDFObjectHandle // If this is causing problems in your code, define // QPDF_NO_QPDF_STRING to prevent the declaration from being here. + +/* clang-format off */ +// Disable formatting for this declaration: emacs font-lock in cc-mode +// (as of 28.1) treats the rest of the file as a string if +// clang-format removes the space after "operator", and as of +// clang-format 15, there's no way to prevent it from doing so. QPDF_DLL -QPDFObjectHandle operator""_qpdf(char const* v, size_t len); +QPDFObjectHandle operator ""_qpdf(char const* v, size_t len); +/* clang-format on */ + #endif // QPDF_NO_QPDF_STRING class QPDFObjectHandle::QPDFDictItems |