Warn about reference address as bool in condition of ?: and if (), too, not only...
[cparser] / type_t.h
index 3f84f0c..a8f07fc 100644 (file)
--- a/type_t.h
+++ b/type_t.h
@@ -116,6 +116,13 @@ struct function_parameter_t {
        function_parameter_t *next;  /**< Points to the next type inthe parameter list.*/
 };
 
+/** Linkage specifications. */
+typedef enum linkage_kind_t {
+       LINKAGE_INVALID,
+       LINKAGE_C,       /**< C linkage. */
+       LINKAGE_CXX      /**< C++ linkage. */
+} linkage_kind_t;
+
 /** Calling conventions. */
 typedef enum cc_kind_t {
        CC_DEFAULT,      /**< default calling convention. */
@@ -132,6 +139,7 @@ struct function_type_t {
        type_base_t           base;
        type_t               *return_type;        /**< The return type. */
        function_parameter_t *parameters;         /**< A list of the parameter types. */
+       linkage_kind_t        linkage;
        cc_kind_t             calling_convention; /**< The specified calling convention. */
        bool                  variadic : 1;
        bool                  unspecified_parameters : 1;
@@ -140,7 +148,7 @@ struct function_type_t {
 
 struct compound_type_t {
        type_base_t  base;
-       bool         packed : 1;       /** Set if packed was specified. */
+       bool         packed : 1; /**< Set if packed was specified. */
        /** the declaration of the compound type, the scope of the declaration
         *  contains the compound entries. */
        compound_t  *compound;