aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/qpdf/QPDFObjectHandle.hh10
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