Generate __attribute__(deprecated) for deprecated APIs.
We allow also a custom deprecation message.
Change-Id: I297bed611c7fbbb34d41e7edd796557c9afe50da
diff --git a/api/Utilities.h b/api/Utilities.h
index 04169dc..cd0db72 100644
--- a/api/Utilities.h
+++ b/api/Utilities.h
@@ -47,6 +47,13 @@
*/
double maxDoubleForInteger(int numberOfIntegerBits, int mantissaSize);
+/* Creates an " __attribute__((...))" tag. If userAttribute starts with '=', we don't
+ * use the additionalAttribute. An empty string will be returned if there are no attributes.
+ */
+std::string makeAttributeTag(const std::string& userAttribute,
+ const std::string& additionalAttribute, int deprecatedApiLevel,
+ const std::string& deprecatedMessage);
+
/* This class is used to generate one source file. There will be one instance
* for each generated file.
*/