aboutsummaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2015-06-07 17:01:54 +0200
committerDavid Bremner <david@tethera.net>2015-08-04 09:11:17 +0200
commit7e2d0ef10588b37922a6b48ca18005ce51bc0669 (patch)
tree5e1b376904ff568ac3193c4dc0c17e1afa933d36 /devel
parente6ad3a5dd4ca7a09a4760c4eb6721217cc906aaa (diff)
lib: define NOTMUCH_DEPRECATED macro, document its use.
This has been tested with gcc and clang.
Diffstat (limited to 'devel')
-rw-r--r--devel/STYLE10
1 files changed, 10 insertions, 0 deletions
diff --git a/devel/STYLE b/devel/STYLE
index 92de42cc..24bd5482 100644
--- a/devel/STYLE
+++ b/devel/STYLE
@@ -93,3 +93,13 @@ libnotmuch conventions
* Code which needs to be accessed from both the CLI and from
libnotmuch should be factored out into libutil (under util/).
+
+* Deprecated functions should be marked with the NOTMUCH_DEPRECATED
+ macro which generates run time warnings with gcc and clang. In order
+ not to confuse doxygen this should go at the beginning of the
+ declaration like:
+
+ NOTMUCH_DEPRECATED(major,minor) notmuch_status_t notmuch_dwim(void *arg);
+
+ The @deprecated doxygen command can be used to generate markup in
+ the API docs.