mirror of
https://github.com/qpdf/qpdf.git
synced 2024-09-28 04:59:05 +00:00
Tweak for clang-format and emacs font-lock
This commit is contained in:
parent
07edf96440
commit
8c504c9a90
@ -1538,8 +1538,16 @@ class QPDFObjectHandle
|
|||||||
|
|
||||||
// If this is causing problems in your code, define
|
// If this is causing problems in your code, define
|
||||||
// QPDF_NO_QPDF_STRING to prevent the declaration from being here.
|
// 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
|
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
|
#endif // QPDF_NO_QPDF_STRING
|
||||||
|
|
||||||
class QPDFObjectHandle::QPDFDictItems
|
class QPDFObjectHandle::QPDFDictItems
|
||||||
|
Loading…
Reference in New Issue
Block a user