issue a warning if returning the address of a local variable
[cparser] / ast_t.h
diff --git a/ast_t.h b/ast_t.h
index dac6215..d19147a 100644 (file)
--- a/ast_t.h
+++ b/ast_t.h
@@ -51,7 +51,8 @@ typedef enum {
        EXPR_UNARY_CAST,
        EXPR_UNARY_CAST_IMPLICIT, /**< compiler generated cast */
        EXPR_UNARY_ASSUME,        /**< MS __assume() */
-       EXPR_UNARY_LAST = EXPR_UNARY_ASSUME,
+       EXPR_UNARY_BITFIELD_EXTRACT,
+       EXPR_UNARY_LAST = EXPR_UNARY_BITFIELD_EXTRACT,
 
        EXPR_BINARY_FIRST,
        EXPR_BINARY_ADD = EXPR_BINARY_FIRST,
@@ -148,10 +149,11 @@ typedef enum {
        case EXPR_UNARY_PREFIX_DECREMENT:      \
        case EXPR_UNARY_CAST:                  \
        case EXPR_UNARY_CAST_IMPLICIT:         \
-       case EXPR_UNARY_ASSUME:
+       case EXPR_UNARY_ASSUME:                \
+       case EXPR_UNARY_BITFIELD_EXTRACT:
 
 struct context_t {
-       declaration_t *declarations;
+       declaration_t *declarations;  /**< List of declarations in this context. */
 };
 
 struct expression_base_t {
@@ -392,7 +394,7 @@ typedef unsigned short decl_modifiers_t;
 struct declaration_t {
        unsigned char       namespc;
        unsigned char       storage_class;
-       decl_modifiers_t    decl_modifiers;
+       decl_modifiers_t    modifiers;
        unsigned int        address_taken : 1;
        unsigned int        is_inline     : 1;
        type_t             *type;