Classes | Macros | Typedefs | Functions | Variables
declinfo.cpp File Reference
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <assert.h>
#include <ctype.h>
#include "declinfo.h"
#include "util.h"
#include "message.h"

Go to the source code of this file.

Classes

struct  yy_buffer_state
 
struct  yy_trans_info
 

Macros

#define YY_INT_ALIGNED   short int
 
#define yy_create_buffer   declinfoYY_create_buffer
 
#define yy_delete_buffer   declinfoYY_delete_buffer
 
#define yy_flex_debug   declinfoYY_flex_debug
 
#define yy_init_buffer   declinfoYY_init_buffer
 
#define yy_flush_buffer   declinfoYY_flush_buffer
 
#define yy_load_buffer_state   declinfoYY_load_buffer_state
 
#define yy_switch_to_buffer   declinfoYY_switch_to_buffer
 
#define yyin   declinfoYYin
 
#define yyleng   declinfoYYleng
 
#define yylex   declinfoYYlex
 
#define yylineno   declinfoYYlineno
 
#define yyout   declinfoYYout
 
#define yyrestart   declinfoYYrestart
 
#define yytext   declinfoYYtext
 
#define yywrap   declinfoYYwrap
 
#define yyalloc   declinfoYYalloc
 
#define yyrealloc   declinfoYYrealloc
 
#define yyfree   declinfoYYfree
 
#define FLEX_SCANNER
 
#define YY_FLEX_MAJOR_VERSION   2
 
#define YY_FLEX_MINOR_VERSION   5
 
#define YY_FLEX_SUBMINOR_VERSION   35
 
#define FLEX_BETA
 
#define FLEXINT_H
 
#define INT8_MIN   (-128)
 
#define INT16_MIN   (-32767-1)
 
#define INT32_MIN   (-2147483647-1)
 
#define INT8_MAX   (127)
 
#define INT16_MAX   (32767)
 
#define INT32_MAX   (2147483647)
 
#define UINT8_MAX   (255U)
 
#define UINT16_MAX   (65535U)
 
#define UINT32_MAX   (4294967295U)
 
#define yyconst
 
#define YY_NULL   0
 
#define YY_SC_TO_UI(c)   ((unsigned int) (unsigned char) c)
 
#define BEGIN   (yy_start) = 1 + 2 *
 
#define YY_START   (((yy_start) - 1) / 2)
 
#define YYSTATE   YY_START
 
#define YY_STATE_EOF(state)   (YY_END_OF_BUFFER + state + 1)
 
#define YY_NEW_FILE   declinfoYYrestart(declinfoYYin )
 
#define YY_END_OF_BUFFER_CHAR   0
 
#define YY_BUF_SIZE   16384
 
#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
 
#define YY_TYPEDEF_YY_BUFFER_STATE
 
#define EOB_ACT_CONTINUE_SCAN   0
 
#define EOB_ACT_END_OF_FILE   1
 
#define EOB_ACT_LAST_MATCH   2
 
#define YY_LESS_LINENO(n)
 
#define yyless(n)
 
#define unput(c)   yyunput( c, (yytext_ptr) )
 
#define YY_TYPEDEF_YY_SIZE_T
 
#define YY_STRUCT_YY_BUFFER_STATE
 
#define YY_BUFFER_NEW   0
 
#define YY_BUFFER_NORMAL   1
 
#define YY_BUFFER_EOF_PENDING   2
 
#define YY_CURRENT_BUFFER
 
#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]
 
#define YY_FLUSH_BUFFER   declinfoYY_flush_buffer(YY_CURRENT_BUFFER )
 
#define yy_new_buffer   declinfoYY_create_buffer
 
#define yy_set_interactive(is_interactive)
 
#define yy_set_bol(at_bol)
 
#define YY_AT_BOL()   (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
 
#define declinfoYYwrap(n)   1
 
#define YY_SKIP_YYWRAP
 
#define yytext_ptr   declinfoYYtext
 
#define YY_DO_BEFORE_ACTION
 
#define YY_NUM_RULES   26
 
#define YY_END_OF_BUFFER   27
 
#define YY_TRAILING_MASK   0x2000
 
#define YY_TRAILING_HEAD_MASK   0x4000
 
#define REJECT
 
#define yymore()   yymore_used_but_not_detected
 
#define YY_MORE_ADJ   0
 
#define YY_RESTORE_YY_MORE_OFFSET
 
#define YY_NO_INPUT   1
 
#define YY_NO_UNISTD_H   1
 
#define YY_NEVER_INTERACTIVE   1
 
#define YY_INPUT(buf, result, max_size)   result=yyread(buf,max_size);
 
#define INITIAL   0
 
#define Start   1
 
#define Template   2
 
#define ReadArgs   3
 
#define Operator   4
 
#define FuncPtr   5
 
#define EndTemplate   6
 
#define StripTempArgs   7
 
#define SkipSharp   8
 
#define ReadExceptions   9
 
#define YY_EXTRA_TYPE   void *
 
#define YY_READ_BUF_SIZE   8192
 
#define ECHO   do { if (fwrite( declinfoYYtext, declinfoYYleng, 1, declinfoYYout )) {} } while (0)
 
#define yyterminate()   return YY_NULL
 
#define YY_START_STACK_INCR   25
 
#define YY_FATAL_ERROR(msg)   yy_fatal_error( msg )
 
#define YY_DECL_IS_OURS   1
 
#define YY_DECL   int declinfoYYlex (void)
 
#define YY_USER_ACTION
 
#define YY_BREAK   break;
 
#define YY_RULE_SETUP   YY_USER_ACTION
 
#define YY_EXIT_FAILURE   2
 
#define yyless(n)
 
#define YYTABLES_NAME   "yytables"
 

Typedefs

typedef signed char flex_int8_t
 
typedef short int flex_int16_t
 
typedef int flex_int32_t
 
typedef unsigned char flex_uint8_t
 
typedef unsigned short int flex_uint16_t
 
typedef unsigned int flex_uint32_t
 
typedef struct yy_buffer_stateYY_BUFFER_STATE
 
typedef size_t yy_size_t
 
typedef unsigned char YY_CHAR
 
typedef int yy_state_type
 

Functions

void declinfoYYrestart (FILE *input_file)
 
void declinfoYY_switch_to_buffer (YY_BUFFER_STATE new_buffer)
 
YY_BUFFER_STATE declinfoYY_create_buffer (FILE *file, int size)
 
void declinfoYY_delete_buffer (YY_BUFFER_STATE b)
 
void declinfoYY_flush_buffer (YY_BUFFER_STATE b)
 
void declinfoYYpush_buffer_state (YY_BUFFER_STATE new_buffer)
 
void declinfoYYpop_buffer_state (void)
 
static void declinfoYYensure_buffer_stack (void)
 
static void declinfoYY_load_buffer_state (void)
 
static void declinfoYY_init_buffer (YY_BUFFER_STATE b, FILE *file)
 
YY_BUFFER_STATE declinfoYY_scan_buffer (char *base, yy_size_t size)
 
YY_BUFFER_STATE declinfoYY_scan_string (yyconst char *yy_str)
 
YY_BUFFER_STATE declinfoYY_scan_bytes (yyconst char *bytes, int len)
 
void * declinfoYYalloc (yy_size_t)
 
void * declinfoYYrealloc (void *, yy_size_t)
 
void declinfoYYfree (void *)
 
static yy_state_type yy_get_previous_state (void)
 
static yy_state_type yy_try_NUL_trans (yy_state_type current_state)
 
static int yy_get_next_buffer (void)
 
static void yy_fatal_error (yyconst char msg[])
 
static void addType ()
 
static void addTypeName ()
 
static int yyread (char *buf, int max_size)
 
static int yy_init_globals (void)
 
int declinfoYYlex_destroy (void)
 
int declinfoYYget_debug (void)
 
void declinfoYYset_debug (int debug_flag)
 
YY_EXTRA_TYPE declinfoYYget_extra (void)
 
void declinfoYYset_extra (YY_EXTRA_TYPE user_defined)
 
FILE * declinfoYYget_in (void)
 
void declinfoYYset_in (FILE *in_str)
 
FILE * declinfoYYget_out (void)
 
void declinfoYYset_out (FILE *out_str)
 
int declinfoYYget_leng (void)
 
char * declinfoYYget_text (void)
 
int declinfoYYget_lineno (void)
 
void declinfoYYset_lineno (int line_number)
 
int declinfoYYlex (void)
 
 if (!(yy_init))
 
 while (1)
 
static void yy_fatal_error (yyconst char *msg)
 
void parseFuncDecl (const QCString &decl, bool objC, QCString &cl, QCString &t, QCString &n, QCString &a, QCString &ftl, QCString &exc)
 

Variables

int declinfoYYleng
 
FILE * declinfoYYin = (FILE *) 0
 
FILE * declinfoYYout = (FILE *) 0
 
static size_t yy_buffer_stack_top = 0
 
static size_t yy_buffer_stack_max = 0
 
static YY_BUFFER_STATEyy_buffer_stack = 0
 
static char yy_hold_char
 
static int yy_n_chars
 
static char * yy_c_buf_p = (char *) 0
 
static int yy_init = 0
 
static int yy_start = 0
 
static int yy_did_buffer_switch_on_eof
 
int declinfoYYlineno = 1
 
char * declinfoYYtext
 
static yyconst flex_int16_t yy_acclist [121]
 
static yyconst flex_int16_t yy_accept [140]
 
static yyconst flex_int32_t yy_ec [256]
 
static yyconst flex_int32_t yy_meta [31]
 
static yyconst flex_int16_t yy_base [153]
 
static yyconst flex_int16_t yy_def [153]
 
static yyconst flex_int16_t yy_nxt [377]
 
static yyconst flex_int16_t yy_chk [377]
 
int declinfoYY_flex_debug = 0
 
static yy_state_typeyy_state_buf =0
 
static yy_state_typeyy_state_ptr =0
 
static char * yy_full_match
 
static int yy_lp
 
static int yy_looking_for_trail_begin = 0
 
static int yy_full_lp
 
static int * yy_full_state
 
static const char * inputString
 
static int inputPosition
 
static QCString scope
 
static QCString className
 
static QCString classTempList
 
static QCString funcTempList
 
static QCString type
 
static QCString name
 
static QCString args
 
static int sharpCount
 
static bool classTempListFound
 
static bool funcTempListFound
 
static QCString exceptionString
 
static bool insideObjC
 
 YY_DECL
 
register char * yy_cp
 
register char * yy_bp
 
register int yy_act
 

Macro Definition Documentation

#define BEGIN   (yy_start) = 1 + 2 *

Definition at line 144 of file declinfo.cpp.

#define declinfoYYwrap (   n)    1

Definition at line 354 of file declinfo.cpp.

#define ECHO   do { if (fwrite( declinfoYYtext, declinfoYYleng, 1, declinfoYYout )) {} } while (0)

Definition at line 830 of file declinfo.cpp.

#define EndTemplate   6

Definition at line 742 of file declinfo.cpp.

#define EOB_ACT_CONTINUE_SCAN   0

Definition at line 179 of file declinfo.cpp.

#define EOB_ACT_END_OF_FILE   1

Definition at line 180 of file declinfo.cpp.

#define EOB_ACT_LAST_MATCH   2

Definition at line 181 of file declinfo.cpp.

#define FLEX_BETA

Definition at line 33 of file declinfo.cpp.

#define FLEX_SCANNER

Definition at line 28 of file declinfo.cpp.

#define FLEXINT_H

Definition at line 49 of file declinfo.cpp.

#define FuncPtr   5

Definition at line 741 of file declinfo.cpp.

#define INITIAL   0

Definition at line 736 of file declinfo.cpp.

#define INT16_MAX   (32767)

Definition at line 92 of file declinfo.cpp.

#define INT16_MIN   (-32767-1)

Definition at line 83 of file declinfo.cpp.

#define INT32_MAX   (2147483647)

Definition at line 95 of file declinfo.cpp.

#define INT32_MIN   (-2147483647-1)

Definition at line 86 of file declinfo.cpp.

#define INT8_MAX   (127)

Definition at line 89 of file declinfo.cpp.

#define INT8_MIN   (-128)

Definition at line 80 of file declinfo.cpp.

#define Operator   4

Definition at line 740 of file declinfo.cpp.

#define ReadArgs   3

Definition at line 739 of file declinfo.cpp.

#define ReadExceptions   9

Definition at line 745 of file declinfo.cpp.

#define REJECT
Value:
{ \
*yy_cp = (yy_hold_char); /* undo effects of setting up declinfoYYtext */ \
yy_cp = (yy_full_match); /* restore poss. backed-over text */ \
(yy_lp) = (yy_full_lp); /* restore orig. accepting pos. */ \
(yy_state_ptr) = (yy_full_state); /* restore orig. state */ \
yy_current_state = *(yy_state_ptr); /* restore curr. state */ \
++(yy_lp); \
goto find_rule; \
}
static yy_state_type * yy_state_ptr
Definition: declinfo.cpp:604
static int * yy_full_state
Definition: declinfo.cpp:609
static int yy_full_lp
Definition: declinfo.cpp:608
register char * yy_cp
Definition: declinfo.cpp:920
static int yy_lp
Definition: declinfo.cpp:606
static char * yy_full_match
Definition: declinfo.cpp:605
static char yy_hold_char
Definition: declinfo.cpp:292

Definition at line 612 of file declinfo.cpp.

#define SkipSharp   8

Definition at line 744 of file declinfo.cpp.

#define Start   1

Definition at line 737 of file declinfo.cpp.

#define StripTempArgs   7

Definition at line 743 of file declinfo.cpp.

#define Template   2

Definition at line 738 of file declinfo.cpp.

#define UINT16_MAX   (65535U)

Definition at line 101 of file declinfo.cpp.

#define UINT32_MAX   (4294967295U)

Definition at line 104 of file declinfo.cpp.

#define UINT8_MAX   (255U)

Definition at line 98 of file declinfo.cpp.

#define unput (   c)    yyunput( c, (yytext_ptr) )

Definition at line 199 of file declinfo.cpp.

#define YY_AT_BOL ( )    (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)

Definition at line 350 of file declinfo.cpp.

#define YY_BREAK   break;

Definition at line 909 of file declinfo.cpp.

#define YY_BUF_SIZE   16384

Definition at line 163 of file declinfo.cpp.

#define YY_BUFFER_EOF_PENDING   2

Definition at line 266 of file declinfo.cpp.

#define YY_BUFFER_NEW   0

Definition at line 254 of file declinfo.cpp.

#define YY_BUFFER_NORMAL   1

Definition at line 255 of file declinfo.cpp.

#define yy_create_buffer   declinfoYY_create_buffer

Definition at line 9 of file declinfo.cpp.

#define YY_CURRENT_BUFFER
Value:
: NULL)
static YY_BUFFER_STATE * yy_buffer_stack
Definition: declinfo.cpp:274
static size_t yy_buffer_stack_top
Definition: declinfo.cpp:272

Definition at line 282 of file declinfo.cpp.

#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]

Definition at line 289 of file declinfo.cpp.

#define YY_DECL   int declinfoYYlex (void)

Definition at line 897 of file declinfo.cpp.

#define YY_DECL_IS_OURS   1

Definition at line 893 of file declinfo.cpp.

#define yy_delete_buffer   declinfoYY_delete_buffer

Definition at line 10 of file declinfo.cpp.

#define YY_DO_BEFORE_ACTION
Value:
declinfoYYleng = (size_t) (yy_cp - yy_bp); \
*yy_cp = '\0'; \
register char * yy_bp
Definition: declinfo.cpp:920
static char * yy_c_buf_p
Definition: declinfo.cpp:297
#define yytext_ptr
Definition: declinfo.cpp:368
int declinfoYYleng
Definition: declinfo.cpp:294
register char * yy_cp
Definition: declinfo.cpp:920
static char yy_hold_char
Definition: declinfo.cpp:292

Definition at line 378 of file declinfo.cpp.

#define YY_END_OF_BUFFER   27

Definition at line 386 of file declinfo.cpp.

#define YY_END_OF_BUFFER_CHAR   0

Definition at line 159 of file declinfo.cpp.

#define YY_EXIT_FAILURE   2

Definition at line 1994 of file declinfo.cpp.

#define YY_EXTRA_TYPE   void *

Definition at line 756 of file declinfo.cpp.

#define YY_FATAL_ERROR (   msg)    yy_fatal_error( msg )

Definition at line 884 of file declinfo.cpp.

#define yy_flex_debug   declinfoYY_flex_debug

Definition at line 11 of file declinfo.cpp.

#define YY_FLEX_MAJOR_VERSION   2

Definition at line 29 of file declinfo.cpp.

#define YY_FLEX_MINOR_VERSION   5

Definition at line 30 of file declinfo.cpp.

#define YY_FLEX_SUBMINOR_VERSION   35

Definition at line 31 of file declinfo.cpp.

#define yy_flush_buffer   declinfoYY_flush_buffer

Definition at line 13 of file declinfo.cpp.

#define YY_FLUSH_BUFFER   declinfoYY_flush_buffer(YY_CURRENT_BUFFER )

Definition at line 318 of file declinfo.cpp.

#define yy_init_buffer   declinfoYY_init_buffer

Definition at line 12 of file declinfo.cpp.

#define YY_INPUT (   buf,
  result,
  max_size 
)    result=yyread(buf,max_size);

Definition at line 712 of file declinfo.cpp.

#define YY_INT_ALIGNED   short int

Definition at line 5 of file declinfo.cpp.

#define YY_LESS_LINENO (   n)

Definition at line 183 of file declinfo.cpp.

#define yy_load_buffer_state   declinfoYY_load_buffer_state

Definition at line 14 of file declinfo.cpp.

#define YY_MORE_ADJ   0

Definition at line 624 of file declinfo.cpp.

#define YY_NEVER_INTERACTIVE   1

Definition at line 707 of file declinfo.cpp.

#define yy_new_buffer   declinfoYY_create_buffer

Definition at line 328 of file declinfo.cpp.

#define YY_NEW_FILE   declinfoYYrestart(declinfoYYin )

Definition at line 157 of file declinfo.cpp.

#define YY_NO_INPUT   1

Definition at line 658 of file declinfo.cpp.

#define YY_NO_UNISTD_H   1

Definition at line 659 of file declinfo.cpp.

#define YY_NULL   0

Definition at line 131 of file declinfo.cpp.

#define YY_NUM_RULES   26

Definition at line 385 of file declinfo.cpp.

#define YY_READ_BUF_SIZE   8192

Definition at line 822 of file declinfo.cpp.

#define YY_RESTORE_YY_MORE_OFFSET

Definition at line 625 of file declinfo.cpp.

#define YY_RULE_SETUP   YY_USER_ACTION

Definition at line 912 of file declinfo.cpp.

#define YY_SC_TO_UI (   c)    ((unsigned int) (unsigned char) c)

Definition at line 138 of file declinfo.cpp.

#define yy_set_bol (   at_bol)
Value:
{ \
declinfoYYensure_buffer_stack (); \
declinfoYY_create_buffer(declinfoYYin,YY_BUF_SIZE ); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
}
if(!(yy_init))
Definition: declinfo.cpp:928
FILE * declinfoYYin
Definition: declinfo.cpp:359
#define YY_CURRENT_BUFFER_LVALUE
Definition: declinfo.cpp:289
#define YY_CURRENT_BUFFER
Definition: declinfo.cpp:282
#define YY_BUF_SIZE
Definition: declinfo.cpp:163

Definition at line 340 of file declinfo.cpp.

#define yy_set_interactive (   is_interactive)
Value:
{ \
declinfoYYensure_buffer_stack (); \
declinfoYY_create_buffer(declinfoYYin,YY_BUF_SIZE ); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
}
if(!(yy_init))
Definition: declinfo.cpp:928
FILE * declinfoYYin
Definition: declinfo.cpp:359
#define YY_CURRENT_BUFFER_LVALUE
Definition: declinfo.cpp:289
#define YY_CURRENT_BUFFER
Definition: declinfo.cpp:282
#define YY_BUF_SIZE
Definition: declinfo.cpp:163

Definition at line 330 of file declinfo.cpp.

#define YY_SKIP_YYWRAP

Definition at line 355 of file declinfo.cpp.

#define YY_START   (((yy_start) - 1) / 2)

Definition at line 150 of file declinfo.cpp.

#define YY_START_STACK_INCR   25

Definition at line 879 of file declinfo.cpp.

#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))

Definition at line 168 of file declinfo.cpp.

#define YY_STATE_EOF (   state)    (YY_END_OF_BUFFER + state + 1)

Definition at line 154 of file declinfo.cpp.

#define YY_STRUCT_YY_BUFFER_STATE

Definition at line 207 of file declinfo.cpp.

#define yy_switch_to_buffer   declinfoYY_switch_to_buffer

Definition at line 15 of file declinfo.cpp.

#define YY_TRAILING_HEAD_MASK   0x4000

Definition at line 611 of file declinfo.cpp.

#define YY_TRAILING_MASK   0x2000

Definition at line 610 of file declinfo.cpp.

#define YY_TYPEDEF_YY_BUFFER_STATE

Definition at line 171 of file declinfo.cpp.

#define YY_TYPEDEF_YY_SIZE_T

Definition at line 202 of file declinfo.cpp.

#define YY_USER_ACTION

Definition at line 904 of file declinfo.cpp.

#define yyalloc   declinfoYYalloc

Definition at line 24 of file declinfo.cpp.

#define yyconst

Definition at line 127 of file declinfo.cpp.

#define yyfree   declinfoYYfree

Definition at line 26 of file declinfo.cpp.

#define yyin   declinfoYYin

Definition at line 16 of file declinfo.cpp.

#define yyleng   declinfoYYleng

Definition at line 17 of file declinfo.cpp.

#define yyless (   n)
Value:
do \
{ \
/* Undo effects of setting up declinfoYYtext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
(yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
YY_DO_BEFORE_ACTION; /* set up declinfoYYtext again */ \
} \
while ( 0 )
#define YY_DO_BEFORE_ACTION
Definition: declinfo.cpp:378
register char * yy_bp
Definition: declinfo.cpp:920
static char * yy_c_buf_p
Definition: declinfo.cpp:297
#define YY_RESTORE_YY_MORE_OFFSET
Definition: declinfo.cpp:625
std::void_t< T > n
#define YY_MORE_ADJ
Definition: declinfo.cpp:624
register char * yy_cp
Definition: declinfo.cpp:920
static char yy_hold_char
Definition: declinfo.cpp:292
while(1)
Definition: declinfo.cpp:960

Definition at line 2006 of file declinfo.cpp.

#define yyless (   n)
Value:
do \
{ \
/* Undo effects of setting up declinfoYYtext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
(yy_c_buf_p) = declinfoYYtext + yyless_macro_arg; \
*(yy_c_buf_p) = '\0'; \
declinfoYYleng = yyless_macro_arg; \
} \
while ( 0 )
static char * yy_c_buf_p
Definition: declinfo.cpp:297
char * declinfoYYtext
Definition: declinfo.cpp:626
int declinfoYYleng
Definition: declinfo.cpp:294
std::void_t< T > n
static char yy_hold_char
Definition: declinfo.cpp:292
while(1)
Definition: declinfo.cpp:960

Definition at line 2006 of file declinfo.cpp.

#define yylex   declinfoYYlex

Definition at line 18 of file declinfo.cpp.

#define yylineno   declinfoYYlineno

Definition at line 19 of file declinfo.cpp.

#define yymore ( )    yymore_used_but_not_detected

Definition at line 623 of file declinfo.cpp.

#define yyout   declinfoYYout

Definition at line 20 of file declinfo.cpp.

#define yyrealloc   declinfoYYrealloc

Definition at line 25 of file declinfo.cpp.

#define yyrestart   declinfoYYrestart

Definition at line 21 of file declinfo.cpp.

#define YYSTATE   YY_START

Definition at line 151 of file declinfo.cpp.

#define YYTABLES_NAME   "yytables"

Definition at line 2204 of file declinfo.cpp.

#define yyterminate ( )    return YY_NULL

Definition at line 874 of file declinfo.cpp.

#define yytext   declinfoYYtext

Definition at line 22 of file declinfo.cpp.

#define yytext_ptr   declinfoYYtext

Definition at line 368 of file declinfo.cpp.

#define yywrap   declinfoYYwrap

Definition at line 23 of file declinfo.cpp.

Typedef Documentation

typedef short int flex_int16_t

Definition at line 71 of file declinfo.cpp.

typedef int flex_int32_t

Definition at line 72 of file declinfo.cpp.

typedef signed char flex_int8_t

Definition at line 70 of file declinfo.cpp.

typedef unsigned short int flex_uint16_t

Definition at line 74 of file declinfo.cpp.

typedef unsigned int flex_uint32_t

Definition at line 75 of file declinfo.cpp.

typedef unsigned char flex_uint8_t

Definition at line 73 of file declinfo.cpp.

Definition at line 172 of file declinfo.cpp.

typedef unsigned char YY_CHAR

Definition at line 357 of file declinfo.cpp.

typedef size_t yy_size_t

Definition at line 203 of file declinfo.cpp.

typedef int yy_state_type

Definition at line 361 of file declinfo.cpp.

Function Documentation

static void addType ( )
static

Definition at line 681 of file declinfo.cpp.

682 {
683  //printf("addType() type=`%s' scope=`%s' name=`%s'\n",
684  // type.data(),scope.data(),name.data());
685  if (name.isEmpty() && scope.isEmpty()) return;
686  if (!type.isEmpty()) type+=" ";
687  if (!scope.isEmpty()) type+=scope+"::";
688  type+=name;
689  scope.resize(0);
690  name.resize(0);
691 }
static QCString name
Definition: declinfo.cpp:673
bool resize(uint newlen)
Definition: qcstring.h:225
static QCString scope
Definition: declinfo.cpp:668
bool isEmpty() const
Definition: qcstring.h:189
static void addTypeName ( )
static

Definition at line 693 of file declinfo.cpp.

694 {
695  //printf("addTypeName() type=`%s' scope=`%s' name=`%s'\n",
696  // type.data(),scope.data(),name.data());
697  if (name.isEmpty() ||
698  name.at(name.length()-1)==':') // end of Objective-C keyword => append to name not type
699  {
700  return;
701  }
702  if (!type.isEmpty()) type+=' ';
703  type+=name;
704  name.resize(0);
705 }
static QCString name
Definition: declinfo.cpp:673
bool resize(uint newlen)
Definition: qcstring.h:225
bool isEmpty() const
Definition: qcstring.h:189
uint length() const
Definition: qcstring.h:195
char & at(uint i) const
Definition: qcstring.h:326
YY_BUFFER_STATE declinfoYY_create_buffer ( FILE *  file,
int  size 
)

Allocate and initialize an input buffer state.

Parameters
fileA readable stream.
sizeThe character buffer size in bytes. When in doubt, use YY_BUF_SIZE.
Returns
the allocated buffer state.

Definition at line 1711 of file declinfo.cpp.

1712 {
1714 
1715  b = (YY_BUFFER_STATE) declinfoYYalloc(sizeof( struct yy_buffer_state ) );
1716  if ( ! b )
1717  YY_FATAL_ERROR( "out of dynamic memory in declinfoYY_create_buffer()" );
1718 
1719  b->yy_buf_size = size;
1720 
1721  /* yy_ch_buf has to be 2 characters longer than the size given because
1722  * we need to put in 2 end-of-buffer characters.
1723  */
1724  b->yy_ch_buf = (char *) declinfoYYalloc(b->yy_buf_size + 2 );
1725  if ( ! b->yy_ch_buf )
1726  YY_FATAL_ERROR( "out of dynamic memory in declinfoYY_create_buffer()" );
1727 
1728  b->yy_is_our_buffer = 1;
1729 
1731 
1732  return b;
1733 }
void * declinfoYYalloc(yy_size_t)
Definition: declinfo.cpp:2182
yy_size_t yy_buf_size
Definition: code.cpp:218
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition: StdUtils.h:92
struct yy_buffer_state * YY_BUFFER_STATE
Definition: declinfo.cpp:172
char * yy_ch_buf
Definition: code.cpp:212
int yy_is_our_buffer
Definition: code.cpp:229
#define YY_FATAL_ERROR(msg)
Definition: declinfo.cpp:884
static void declinfoYY_init_buffer(YY_BUFFER_STATE b, FILE *file)
Definition: declinfo.cpp:1758
static bool * b
Definition: config.cpp:1043
void declinfoYY_delete_buffer ( YY_BUFFER_STATE  b)

Destroy the buffer.

Parameters
ba buffer created with declinfoYY_create_buffer()

Definition at line 1739 of file declinfo.cpp.

1740 {
1741 
1742  if ( ! b )
1743  return;
1744 
1745  if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
1747 
1748  if ( b->yy_is_our_buffer )
1749  declinfoYYfree((void *) b->yy_ch_buf );
1750 
1751  declinfoYYfree((void *) b );
1752 }
struct yy_buffer_state * YY_BUFFER_STATE
Definition: declinfo.cpp:172
char * yy_ch_buf
Definition: code.cpp:212
int yy_is_our_buffer
Definition: code.cpp:229
#define YY_CURRENT_BUFFER_LVALUE
Definition: declinfo.cpp:289
#define YY_CURRENT_BUFFER
Definition: declinfo.cpp:282
void declinfoYYfree(void *)
Definition: declinfo.cpp:2199
void declinfoYY_flush_buffer ( YY_BUFFER_STATE  b)

Discard all buffered characters. On the next scan, YY_INPUT will be called.

Parameters
bthe buffer state to be flushed, usually YY_CURRENT_BUFFER.

Definition at line 1786 of file declinfo.cpp.

1787 {
1788  if ( ! b )
1789  return;
1790 
1791  b->yy_n_chars = 0;
1792 
1793  /* We always need two end-of-buffer characters. The first causes
1794  * a transition to the end-of-buffer state. The second causes
1795  * a jam in that state.
1796  */
1799 
1800  b->yy_buf_pos = &b->yy_ch_buf[0];
1801 
1802  b->yy_at_bol = 1;
1804 
1805  if ( b == YY_CURRENT_BUFFER )
1807 }
char * yy_buf_pos
Definition: code.cpp:213
int yy_n_chars
Definition: code.cpp:223
char * yy_ch_buf
Definition: code.cpp:212
static void declinfoYY_load_buffer_state(void)
Definition: declinfo.cpp:1697
#define YY_BUFFER_NEW
Definition: declinfo.cpp:254
#define YY_END_OF_BUFFER_CHAR
Definition: declinfo.cpp:159
#define YY_CURRENT_BUFFER
Definition: declinfo.cpp:282
int yy_buffer_status
Definition: code.cpp:252
static void declinfoYY_init_buffer ( YY_BUFFER_STATE  b,
FILE *  file 
)
static

Definition at line 1758 of file declinfo.cpp.

1760 {
1761  int oerrno = errno;
1762 
1764 
1765  b->yy_input_file = file;
1766  b->yy_fill_buffer = 1;
1767 
1768  /* If b is the current buffer, then declinfoYY_init_buffer was _probably_
1769  * called from declinfoYYrestart() or through yy_get_next_buffer.
1770  * In that case, we don't want to reset the lineno or column.
1771  */
1772  if (b != YY_CURRENT_BUFFER){
1773  b->yy_bs_lineno = 1;
1774  b->yy_bs_column = 0;
1775  }
1776 
1777  b->yy_is_interactive = 0;
1778 
1779  errno = oerrno;
1780 }
FILE * yy_input_file
Definition: code.cpp:210
int yy_fill_buffer
Definition: code.cpp:250
int yy_bs_lineno
Definition: code.cpp:244
int errno
Contains the last error code.
Definition: structcmd.h:53
void declinfoYY_flush_buffer(YY_BUFFER_STATE b)
Definition: declinfo.cpp:1786
int yy_bs_column
Definition: code.cpp:245
int yy_is_interactive
Definition: code.cpp:236
#define YY_CURRENT_BUFFER
Definition: declinfo.cpp:282
static void declinfoYY_load_buffer_state ( void  )
static

Definition at line 1697 of file declinfo.cpp.

1698 {
1699  (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1700  (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
1701  declinfoYYin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
1702  (yy_hold_char) = *(yy_c_buf_p);
1703 }
static char * yy_c_buf_p
Definition: declinfo.cpp:297
#define yytext_ptr
Definition: declinfo.cpp:368
FILE * declinfoYYin
Definition: declinfo.cpp:359
static int yy_n_chars
Definition: declinfo.cpp:293
static char yy_hold_char
Definition: declinfo.cpp:292
#define YY_CURRENT_BUFFER_LVALUE
Definition: declinfo.cpp:289
YY_BUFFER_STATE declinfoYY_scan_buffer ( char *  base,
yy_size_t  size 
)

Setup the input buffer state to scan directly from a user-specified character buffer.

Parameters
basethe character buffer
sizethe size in bytes of the character buffer
Returns
the newly allocated buffer state object.

Definition at line 1913 of file declinfo.cpp.

1914 {
1916 
1917  if ( size < 2 ||
1920  /* They forgot to leave room for the EOB's. */
1921  return 0;
1922 
1923  b = (YY_BUFFER_STATE) declinfoYYalloc(sizeof( struct yy_buffer_state ) );
1924  if ( ! b )
1925  YY_FATAL_ERROR( "out of dynamic memory in declinfoYY_scan_buffer()" );
1926 
1927  b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
1928  b->yy_buf_pos = b->yy_ch_buf = base;
1929  b->yy_is_our_buffer = 0;
1930  b->yy_input_file = 0;
1931  b->yy_n_chars = b->yy_buf_size;
1932  b->yy_is_interactive = 0;
1933  b->yy_at_bol = 1;
1934  b->yy_fill_buffer = 0;
1936 
1938 
1939  return b;
1940 }
char * yy_buf_pos
Definition: code.cpp:213
FILE * yy_input_file
Definition: code.cpp:210
int yy_n_chars
Definition: code.cpp:223
void declinfoYY_switch_to_buffer(YY_BUFFER_STATE new_buffer)
Definition: declinfo.cpp:1666
int yy_fill_buffer
Definition: code.cpp:250
void * declinfoYYalloc(yy_size_t)
Definition: declinfo.cpp:2182
yy_size_t yy_buf_size
Definition: code.cpp:218
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition: StdUtils.h:92
struct yy_buffer_state * YY_BUFFER_STATE
Definition: declinfo.cpp:172
char * yy_ch_buf
Definition: code.cpp:212
int yy_is_our_buffer
Definition: code.cpp:229
#define YY_FATAL_ERROR(msg)
Definition: declinfo.cpp:884
#define YY_BUFFER_NEW
Definition: declinfo.cpp:254
#define YY_END_OF_BUFFER_CHAR
Definition: declinfo.cpp:159
static bool * b
Definition: config.cpp:1043
int yy_is_interactive
Definition: code.cpp:236
int yy_buffer_status
Definition: code.cpp:252
YY_BUFFER_STATE declinfoYY_scan_bytes ( yyconst char *  yybytes,
int  _yybytes_len 
)

Setup the input buffer state to scan the given bytes. The next call to declinfoYYlex() will scan from a copy of bytes.

Parameters
bytesthe byte buffer to scan
lenthe number of bytes in the buffer pointed to by bytes.
Returns
the newly allocated buffer state object.

Definition at line 1963 of file declinfo.cpp.

1964 {
1966  char *buf;
1967  yy_size_t n;
1968  int i;
1969 
1970  /* Get memory for full buffer, including space for trailing EOB's. */
1971  n = _yybytes_len + 2;
1972  buf = (char *) declinfoYYalloc(n );
1973  if ( ! buf )
1974  YY_FATAL_ERROR( "out of dynamic memory in declinfoYY_scan_bytes()" );
1975 
1976  for ( i = 0; i < _yybytes_len; ++i )
1977  buf[i] = yybytes[i];
1978 
1979  buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
1980 
1981  b = declinfoYY_scan_buffer(buf,n );
1982  if ( ! b )
1983  YY_FATAL_ERROR( "bad buffer in declinfoYY_scan_bytes()" );
1984 
1985  /* It's okay to grow etc. this buffer, and we should throw it
1986  * away when we're done.
1987  */
1988  b->yy_is_our_buffer = 1;
1989 
1990  return b;
1991 }
void * declinfoYYalloc(yy_size_t)
Definition: declinfo.cpp:2182
std::void_t< T > n
int yy_is_our_buffer
Definition: code.cpp:229
#define YY_FATAL_ERROR(msg)
Definition: declinfo.cpp:884
#define YY_END_OF_BUFFER_CHAR
Definition: declinfo.cpp:159
YY_BUFFER_STATE declinfoYY_scan_buffer(char *base, yy_size_t size)
Definition: declinfo.cpp:1913
static bool * b
Definition: config.cpp:1043
size_t yy_size_t
Definition: code.cpp:203
YY_BUFFER_STATE declinfoYY_scan_string ( yyconst char *  yystr)

Setup the input buffer state to scan a string. The next call to declinfoYYlex() will scan from a copy of str.

Parameters
yystra NUL-terminated string to scan
Returns
the newly allocated buffer state object.
Note
If you want to scan bytes that may contain NUL values, then use declinfoYY_scan_bytes() instead.

Definition at line 1950 of file declinfo.cpp.

1951 {
1952 
1953  return declinfoYY_scan_bytes(yystr,strlen(yystr) );
1954 }
YY_BUFFER_STATE declinfoYY_scan_bytes(yyconst char *bytes, int len)
Definition: declinfo.cpp:1963
void declinfoYY_switch_to_buffer ( YY_BUFFER_STATE  new_buffer)

Switch to a different input buffer.

Parameters
new_bufferThe new input buffer.

Definition at line 1666 of file declinfo.cpp.

1667 {
1668 
1669  /* TODO. We should be able to replace this entire function body
1670  * with
1671  * declinfoYYpop_buffer_state();
1672  * declinfoYYpush_buffer_state(new_buffer);
1673  */
1675  if ( YY_CURRENT_BUFFER == new_buffer )
1676  return;
1677 
1678  if ( YY_CURRENT_BUFFER )
1679  {
1680  /* Flush out information for old buffer. */
1681  *(yy_c_buf_p) = (yy_hold_char);
1682  YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
1683  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1684  }
1685 
1686  YY_CURRENT_BUFFER_LVALUE = new_buffer;
1688 
1689  /* We don't actually know whether we did this switch during
1690  * EOF (declinfoYYwrap()) processing, but the only time this flag
1691  * is looked at is after declinfoYYwrap() is called, so it's safe
1692  * to go ahead and always set it.
1693  */
1695 }
static int yy_did_buffer_switch_on_eof
Definition: declinfo.cpp:304
static char * yy_c_buf_p
Definition: declinfo.cpp:297
static int yy_n_chars
Definition: declinfo.cpp:293
static char yy_hold_char
Definition: declinfo.cpp:292
static void declinfoYY_load_buffer_state(void)
Definition: declinfo.cpp:1697
#define YY_CURRENT_BUFFER_LVALUE
Definition: declinfo.cpp:289
static void declinfoYYensure_buffer_stack(void)
Definition: declinfo.cpp:1864
#define YY_CURRENT_BUFFER
Definition: declinfo.cpp:282
void * declinfoYYalloc ( yy_size_t  size)

Definition at line 2182 of file declinfo.cpp.

2183 {
2184  return (void *) malloc( size );
2185 }
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition: StdUtils.h:92
static void declinfoYYensure_buffer_stack ( void  )
static

Definition at line 1864 of file declinfo.cpp.

1865 {
1866  int num_to_alloc;
1867 
1868  if (!(yy_buffer_stack)) {
1869 
1870  /* First allocation is just for 2 elements, since we don't know if this
1871  * scanner will even need a stack. We use 2 instead of 1 to avoid an
1872  * immediate realloc on the next call.
1873  */
1874  num_to_alloc = 1;
1876  (num_to_alloc * sizeof(struct yy_buffer_state*)
1877  );
1878  if ( ! (yy_buffer_stack) )
1879  YY_FATAL_ERROR( "out of dynamic memory in declinfoYYensure_buffer_stack()" );
1880 
1881  memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
1882 
1883  (yy_buffer_stack_max) = num_to_alloc;
1884  (yy_buffer_stack_top) = 0;
1885  return;
1886  }
1887 
1888  if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
1889 
1890  /* Increase the buffer to prepare for a possible push. */
1891  int grow_size = 8 /* arbitrary grow size */;
1892 
1893  num_to_alloc = (yy_buffer_stack_max) + grow_size;
1895  ((yy_buffer_stack),
1896  num_to_alloc * sizeof(struct yy_buffer_state*)
1897  );
1898  if ( ! (yy_buffer_stack) )
1899  YY_FATAL_ERROR( "out of dynamic memory in declinfoYYensure_buffer_stack()" );
1900 
1901  /* zero only the new slots.*/
1902  memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
1903  (yy_buffer_stack_max) = num_to_alloc;
1904  }
1905 }
void * declinfoYYalloc(yy_size_t)
Definition: declinfo.cpp:2182
static size_t yy_buffer_stack_max
Definition: declinfo.cpp:273
void * declinfoYYrealloc(void *, yy_size_t)
Definition: declinfo.cpp:2187
#define YY_FATAL_ERROR(msg)
Definition: declinfo.cpp:884
static YY_BUFFER_STATE * yy_buffer_stack
Definition: declinfo.cpp:274
static size_t yy_buffer_stack_top
Definition: declinfo.cpp:272
void declinfoYYfree ( void *  ptr)

Definition at line 2199 of file declinfo.cpp.

2200 {
2201  free( (char *) ptr ); /* see declinfoYYrealloc() for (char *) cast */
2202 }
int declinfoYYget_debug ( void  )

Definition at line 2090 of file declinfo.cpp.

2091 {
2092  return declinfoYY_flex_debug;
2093 }
int declinfoYY_flex_debug
Definition: declinfo.cpp:602
YY_EXTRA_TYPE declinfoYYget_extra ( void  )
FILE * declinfoYYget_in ( void  )

Get the input stream.

Definition at line 2034 of file declinfo.cpp.

2035 {
2036  return declinfoYYin;
2037 }
FILE * declinfoYYin
Definition: declinfo.cpp:359
int declinfoYYget_leng ( void  )

Get the length of the current token.

Definition at line 2050 of file declinfo.cpp.

2051 {
2052  return declinfoYYleng;
2053 }
int declinfoYYleng
Definition: declinfo.cpp:294
int declinfoYYget_lineno ( void  )

Get the current line number.

Definition at line 2025 of file declinfo.cpp.

2026 {
2027 
2028  return declinfoYYlineno;
2029 }
int declinfoYYlineno
Definition: declinfo.cpp:365
FILE * declinfoYYget_out ( void  )

Get the output stream.

Definition at line 2042 of file declinfo.cpp.

2043 {
2044  return declinfoYYout;
2045 }
FILE * declinfoYYout
Definition: declinfo.cpp:359
char * declinfoYYget_text ( void  )

Get the current token.

Definition at line 2059 of file declinfo.cpp.

2060 {
2061  return declinfoYYtext;
2062 }
char * declinfoYYtext
Definition: declinfo.cpp:626
int declinfoYYlex ( void  )
int declinfoYYlex_destroy ( void  )

Definition at line 2134 of file declinfo.cpp.

2135 {
2136 
2137  /* Pop the buffer stack, destroying each element. */
2138  while(YY_CURRENT_BUFFER){
2140  YY_CURRENT_BUFFER_LVALUE = NULL;
2142  }
2143 
2144  /* Destroy the stack itself. */
2146  (yy_buffer_stack) = NULL;
2147 
2149  (yy_state_buf) = NULL;
2150 
2151  /* Reset the globals. This is important in a non-reentrant scanner so the next time
2152  * declinfoYYlex() is called, initialization will occur. */
2153  yy_init_globals( );
2154 
2155  return 0;
2156 }
static int yy_init_globals(void)
Definition: declinfo.cpp:2100
static yy_state_type * yy_state_buf
Definition: declinfo.cpp:604
#define YY_CURRENT_BUFFER_LVALUE
Definition: declinfo.cpp:289
static YY_BUFFER_STATE * yy_buffer_stack
Definition: declinfo.cpp:274
void declinfoYYpop_buffer_state(void)
Definition: declinfo.cpp:1845
void declinfoYY_delete_buffer(YY_BUFFER_STATE b)
Definition: declinfo.cpp:1739
#define YY_CURRENT_BUFFER
Definition: declinfo.cpp:282
void declinfoYYfree(void *)
Definition: declinfo.cpp:2199
void declinfoYYpop_buffer_state ( void  )

Removes and deletes the top of the stack, if present. The next element becomes the new top.

Definition at line 1845 of file declinfo.cpp.

1846 {
1847  if (!YY_CURRENT_BUFFER)
1848  return;
1849 
1851  YY_CURRENT_BUFFER_LVALUE = NULL;
1852  if ((yy_buffer_stack_top) > 0)
1853  --(yy_buffer_stack_top);
1854 
1855  if (YY_CURRENT_BUFFER) {
1858  }
1859 }
static int yy_did_buffer_switch_on_eof
Definition: declinfo.cpp:304
static void declinfoYY_load_buffer_state(void)
Definition: declinfo.cpp:1697
#define YY_CURRENT_BUFFER_LVALUE
Definition: declinfo.cpp:289
void declinfoYY_delete_buffer(YY_BUFFER_STATE b)
Definition: declinfo.cpp:1739
#define YY_CURRENT_BUFFER
Definition: declinfo.cpp:282
static size_t yy_buffer_stack_top
Definition: declinfo.cpp:272
void declinfoYYpush_buffer_state ( YY_BUFFER_STATE  new_buffer)

Pushes the new state onto the stack. The new state becomes the current state. This function will allocate the stack if necessary.

Parameters
new_bufferThe new state.

Definition at line 1815 of file declinfo.cpp.

1816 {
1817  if (new_buffer == NULL)
1818  return;
1819 
1821 
1822  /* This block is copied from declinfoYY_switch_to_buffer. */
1823  if ( YY_CURRENT_BUFFER )
1824  {
1825  /* Flush out information for old buffer. */
1826  *(yy_c_buf_p) = (yy_hold_char);
1827  YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
1828  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1829  }
1830 
1831  /* Only push if top exists. Otherwise, replace top. */
1832  if (YY_CURRENT_BUFFER)
1833  (yy_buffer_stack_top)++;
1834  YY_CURRENT_BUFFER_LVALUE = new_buffer;
1835 
1836  /* copied from declinfoYY_switch_to_buffer. */
1839 }
static int yy_did_buffer_switch_on_eof
Definition: declinfo.cpp:304
static char * yy_c_buf_p
Definition: declinfo.cpp:297
static int yy_n_chars
Definition: declinfo.cpp:293
static char yy_hold_char
Definition: declinfo.cpp:292
static void declinfoYY_load_buffer_state(void)
Definition: declinfo.cpp:1697
#define YY_CURRENT_BUFFER_LVALUE
Definition: declinfo.cpp:289
static void declinfoYYensure_buffer_stack(void)
Definition: declinfo.cpp:1864
#define YY_CURRENT_BUFFER
Definition: declinfo.cpp:282
static size_t yy_buffer_stack_top
Definition: declinfo.cpp:272
void * declinfoYYrealloc ( void *  ptr,
yy_size_t  size 
)

Definition at line 2187 of file declinfo.cpp.

2188 {
2189  /* The cast to (char *) in the following accommodates both
2190  * implementations that use char* generic pointers, and those
2191  * that use void* generic pointers. It works with the latter
2192  * because both ANSI C and C++ allow castless assignment from
2193  * any pointer type to void*, and deal with argument conversions
2194  * as though doing an assignment.
2195  */
2196  return (void *) realloc( (char *) ptr, size );
2197 }
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition: StdUtils.h:92
void declinfoYYrestart ( FILE *  input_file)

Immediately switch to a different input stream.

Parameters
input_fileA readable stream.
Note
This function does not reset the start condition to INITIAL .

Definition at line 1649 of file declinfo.cpp.

1650 {
1651 
1652  if ( ! YY_CURRENT_BUFFER ){
1656  }
1657 
1660 }
FILE * declinfoYYin
Definition: declinfo.cpp:359
static void declinfoYY_load_buffer_state(void)
Definition: declinfo.cpp:1697
YY_BUFFER_STATE declinfoYY_create_buffer(FILE *file, int size)
Definition: declinfo.cpp:1711
#define YY_CURRENT_BUFFER_LVALUE
Definition: declinfo.cpp:289
static void declinfoYY_init_buffer(YY_BUFFER_STATE b, FILE *file)
Definition: declinfo.cpp:1758
static void declinfoYYensure_buffer_stack(void)
Definition: declinfo.cpp:1864
#define YY_CURRENT_BUFFER
Definition: declinfo.cpp:282
#define YY_BUF_SIZE
Definition: declinfo.cpp:163
void declinfoYYset_debug ( int  debug_flag)

Definition at line 2095 of file declinfo.cpp.

2096 {
2097  declinfoYY_flex_debug = bdebug ;
2098 }
int declinfoYY_flex_debug
Definition: declinfo.cpp:602
void declinfoYYset_extra ( YY_EXTRA_TYPE  user_defined)
void declinfoYYset_in ( FILE *  in_str)

Set the input stream. This does not discard the current input buffer.

Parameters
in_strA readable stream.
See also
declinfoYY_switch_to_buffer

Definition at line 2080 of file declinfo.cpp.

2081 {
2082  declinfoYYin = in_str ;
2083 }
FILE * declinfoYYin
Definition: declinfo.cpp:359
void declinfoYYset_lineno ( int  line_number)

Set the current line number.

Parameters
line_number

Definition at line 2068 of file declinfo.cpp.

2069 {
2070 
2071  declinfoYYlineno = line_number;
2072 }
int declinfoYYlineno
Definition: declinfo.cpp:365
void declinfoYYset_out ( FILE *  out_str)

Definition at line 2085 of file declinfo.cpp.

2086 {
2087  declinfoYYout = out_str ;
2088 }
FILE * declinfoYYout
Definition: declinfo.cpp:359
if ( yy_init)

Definition at line 928 of file declinfo.cpp.

929  {
930  (yy_init) = 1;
931 
932 #ifdef YY_USER_INIT
933  YY_USER_INIT;
934 #endif
935 
936  /* Create the reject buffer large enough to save one state per allowed character. */
937  if ( ! (yy_state_buf) )
939  if ( ! (yy_state_buf) )
940  YY_FATAL_ERROR( "out of dynamic memory in declinfoYYlex()" );
941 
942  if ( ! (yy_start) )
943  (yy_start) = 1; /* first start state */
944 
945  if ( ! declinfoYYin )
946  declinfoYYin = stdin;
947 
948  if ( ! declinfoYYout )
950 
951  if ( ! YY_CURRENT_BUFFER ) {
955  }
956 
958  }
void * declinfoYYalloc(yy_size_t)
Definition: declinfo.cpp:2182
int yy_state_type
Definition: code.cpp:361
static yy_state_type * yy_state_buf
Definition: declinfo.cpp:604
FILE * declinfoYYin
Definition: declinfo.cpp:359
static int yy_init
Definition: declinfo.cpp:298
static void declinfoYY_load_buffer_state(void)
Definition: declinfo.cpp:1697
#define YY_FATAL_ERROR(msg)
Definition: declinfo.cpp:884
YY_BUFFER_STATE declinfoYY_create_buffer(FILE *file, int size)
Definition: declinfo.cpp:1711
#define YY_CURRENT_BUFFER_LVALUE
Definition: declinfo.cpp:289
static void declinfoYYensure_buffer_stack(void)
Definition: declinfo.cpp:1864
FILE * declinfoYYout
Definition: declinfo.cpp:359
static int yy_start
Definition: declinfo.cpp:299
#define YY_STATE_BUF_SIZE
Definition: declinfo.cpp:168
#define YY_CURRENT_BUFFER
Definition: declinfo.cpp:282
#define YY_BUF_SIZE
Definition: declinfo.cpp:163
void parseFuncDecl ( const QCString decl,
bool  objC,
QCString cl,
QCString t,
QCString n,
QCString a,
QCString ftl,
QCString exc 
)

Definition at line 2213 of file declinfo.cpp.

2215 {
2216  printlex(declinfoYY_flex_debug, TRUE, __FILE__, NULL);
2217  inputString = decl;
2218  //printf("Input=`%s'\n",inputString);
2219  if (inputString==0) return;
2220  inputPosition = 0;
2223  insideObjC = objC;
2224  scope.resize(0);
2225  className.resize(0);
2226  classTempList.resize(0);
2227  funcTempList.resize(0);
2228  name.resize(0);
2229  type.resize(0);
2230  args.resize(0);
2232  // first we try to find the type, scope, name and arguments
2234  BEGIN( Start );
2235  declinfoYYlex();
2236 
2237  //printf("type=`%s' class=`%s' name=`%s' args=`%s'\n",
2238  // type.data(),scope.data(),name.data(),args.data());
2239 
2240  int nb = name.findRev('[');
2241  if (nb!=-1 && args.isEmpty()) // correct for [] in name ambigity (due to Java return type allowing [])
2242  {
2244  name=name.left(nb);
2245  }
2246 
2247 #if 0
2248  {
2249  int l=scope.length();
2250  int i=0;
2251  int skipCount=0;
2252  cl.resize(0);
2253  ctl.resize(0);
2254  for (i=0;i<l;i++)
2255  {
2256  char c=scope.at(i);
2257  if (c=='<')
2258  skipCount++;
2259  else if (c=='>')
2260  skipCount--;
2261  else if (skipCount==0)
2262  cl+=c;
2263  }
2264  }
2266  ctl.resize(0);
2267 #endif
2268 
2269  cl=scope;
2271  int il,ir;
2272  if ((il=n.find('<'))!=-1 && (ir=n.findRev('>'))!=-1)
2273  // TODO: handle cases like where n="operator<< <T>"
2274  {
2275  ftl=removeRedundantWhiteSpace(n.right(n.length()-il));
2276  n=n.left(il);
2277  }
2278 
2279  //ctl=classTempList.copy();
2280  //ftl=funcTempList.copy();
2284 
2285  if (!t.isEmpty() && t.at(t.length()-1)==')') // for function pointers
2286  {
2287  a.prepend(")");
2288  t=t.left(t.length()-1);
2289  }
2290  //printf("type=`%s' class=`%s' name=`%s' args=`%s'\n",
2291  // t.data(),cl.data(),n.data(),a.data());
2292 
2293  printlex(declinfoYY_flex_debug, FALSE, __FILE__, NULL);
2294  return;
2295 
2296 
2297 }
static QCString name
Definition: declinfo.cpp:673
bool resize(uint newlen)
Definition: qcstring.h:225
static QCString scope
Definition: declinfo.cpp:668
static constexpr double nb
Definition: Units.h:81
bool isEmpty() const
Definition: qcstring.h:189
void printlex(int dbg, bool enter, const char *lexName, const char *fileName)
Definition: message.cpp:242
uint length() const
Definition: qcstring.h:195
char & at(uint i) const
Definition: qcstring.h:326
const bool FALSE
Definition: qglobal.h:370
static QCString className
Definition: declinfo.cpp:669
QCString left(uint len) const
Definition: qcstring.cpp:213
int find(char c, int index=0, bool cs=TRUE) const
Definition: qcstring.cpp:41
static QCString args
Definition: declinfo.cpp:674
static QStrList * l
Definition: config.cpp:1044
int findRev(char c, int index=-1, bool cs=TRUE) const
Definition: qcstring.cpp:95
QCString stripTemplateSpecifiersFromScope(const QCString &fullName, bool parentOnly, QCString *pLastScopeStripped)
Definition: util.cpp:6226
static QCString funcTempList
Definition: declinfo.cpp:671
static bool funcTempListFound
Definition: declinfo.cpp:677
QCString right(uint len) const
Definition: qcstring.cpp:231
int declinfoYY_flex_debug
Definition: declinfo.cpp:602
QCString & prepend(const char *s)
Definition: qcstring.cpp:387
FILE * declinfoYYin
Definition: declinfo.cpp:359
QCString removeRedundantWhiteSpace(const QCString &s)
Definition: util.cpp:1655
#define Start
Definition: declinfo.cpp:737
#define BEGIN
Definition: declinfo.cpp:144
int declinfoYYlex(void)
static bool insideObjC
Definition: declinfo.cpp:679
static bool classTempListFound
Definition: declinfo.cpp:676
void declinfoYYrestart(FILE *input_file)
Definition: declinfo.cpp:1649
static QCString classTempList
Definition: declinfo.cpp:670
const bool TRUE
Definition: qglobal.h:371
static int inputPosition
Definition: declinfo.cpp:667
static QCString exceptionString
Definition: declinfo.cpp:678
static const char * inputString
Definition: declinfo.cpp:666
while ( )

Definition at line 960 of file declinfo.cpp.

961  {
962  yy_cp = (yy_c_buf_p);
963 
964  /* Support of declinfoYYtext. */
965  *yy_cp = (yy_hold_char);
966 
967  /* yy_bp points to the position in yy_ch_buf of the start of
968  * the current run.
969  */
970  yy_bp = yy_cp;
971 
972  yy_current_state = (yy_start);
973 
975  *(yy_state_ptr)++ = yy_current_state;
976 
977 yy_match:
978  do
979  {
980  register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
981  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
982  {
983  yy_current_state = (int) yy_def[yy_current_state];
984  if ( yy_current_state >= 139 )
985  yy_c = yy_meta[(unsigned int) yy_c];
986  }
987  yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
988  *(yy_state_ptr)++ = yy_current_state;
989  ++yy_cp;
990  }
991  while ( yy_current_state != 138 );
992 
993 yy_find_action:
994  yy_current_state = *--(yy_state_ptr);
995  (yy_lp) = yy_accept[yy_current_state];
996 find_rule: /* we branch to this label when backing up */
997  for ( ; ; ) /* until we find what rule we matched */
998  {
999  if ( (yy_lp) && (yy_lp) < yy_accept[yy_current_state + 1] )
1000  {
1001  yy_act = yy_acclist[(yy_lp)];
1002  if ( yy_act & YY_TRAILING_HEAD_MASK ||
1004  {
1006  {
1009  break;
1010  }
1011  }
1012  else if ( yy_act & YY_TRAILING_MASK )
1013  {
1014  (yy_looking_for_trail_begin) = yy_act & ~YY_TRAILING_MASK;
1016  (yy_full_match) = yy_cp;
1018  (yy_full_lp) = (yy_lp);
1019  }
1020  else
1021  {
1022  (yy_full_match) = yy_cp;
1024  (yy_full_lp) = (yy_lp);
1025  break;
1026  }
1027  ++(yy_lp);
1028  goto find_rule;
1029  }
1030  --yy_cp;
1031  yy_current_state = *--(yy_state_ptr);
1032  (yy_lp) = yy_accept[yy_current_state];
1033  }
1034 
1036 
1037 do_action: /* This label is used only to access EOF actions. */
1038 
1039  switch ( yy_act )
1040  { /* beginning of action switch */
1041 case 1:
1042 *yy_cp = (yy_hold_char); /* undo effects of setting up declinfoYYtext */
1043 (yy_c_buf_p) = yy_cp = yy_bp + 8;
1044 YY_DO_BEFORE_ACTION; /* set up declinfoYYtext again */
1046 #line 119 "declinfo.l"
1047 { // operator rule must be before {ID} rule
1048  name += declinfoYYtext;
1049  BEGIN(Operator);
1050  }
1051  YY_BREAK
1052 case 2:
1054 #line 123 "declinfo.l"
1055 { // Objective-C class categories
1056  if (!insideObjC)
1057  {
1058  REJECT;
1059  }
1060  else
1061  {
1062  name += declinfoYYtext;
1063  }
1064  }
1065  YY_BREAK
1066 case 3:
1068 #line 133 "declinfo.l"
1069 { // the []'s are for Java,
1070  // the / was add to deal with multi-
1071  // dimensional C++ arrays like A[][15]
1072  // the leading ~ is for a destructor
1073  // the leading ! is for a C++/CLI finalizer (see bug 456475 and 635198)
1074  addTypeName();
1075  name += declinfoYYtext;
1076  }
1077  YY_BREAK
1078 case 4:
1080 #line 141 "declinfo.l"
1081 { // found a scope specifier
1082  if (!scope.isEmpty())
1083  {
1084  scope+="::"+name; // add name to scope
1085  }
1086  else
1087  {
1088  scope = name.copy(); // scope becomes name
1089  }
1090  name.resize(0);
1091  }
1092  YY_BREAK
1093 case 5:
1095 #line 152 "declinfo.l"
1096 { // Objective-C argument separator
1098  }
1099  YY_BREAK
1100 case 6:
1102 #line 155 "declinfo.l"
1103 {
1104  addType();
1106  }
1107  YY_BREAK
1108 case 7:
1110 #line 159 "declinfo.l"
1111 {
1112  addType();
1113  }
1114  YY_BREAK
1115 case 8:
1117 #line 162 "declinfo.l"
1118 {
1119  addType();
1120  QCString text=declinfoYYtext;
1121  type+=text.stripWhiteSpace();
1122  }
1123  YY_BREAK
1124 case 9:
1126 #line 167 "declinfo.l"
1127 {
1128  type+=")";
1129  }
1130  YY_BREAK
1131 case 10:
1133 #line 170 "declinfo.l"
1134 { // TODO: function pointers
1135  args+="(";
1136  BEGIN(ReadArgs);
1137  }
1138  YY_BREAK
1139 case 11:
1141 #line 174 "declinfo.l"
1142 {
1143  args+="[";
1144  BEGIN(ReadArgs);
1145  }
1146  YY_BREAK
1147 case 12:
1149 #line 178 "declinfo.l"
1150 {
1151  name+="<";
1152  sharpCount=0;
1153  BEGIN(Template);
1154  }
1155  YY_BREAK
1156 case 13:
1158 #line 183 "declinfo.l"
1159 { name+="<<"; }
1160  YY_BREAK
1161 case 14:
1163 #line 184 "declinfo.l"
1164 { name+=">>"; }
1165  YY_BREAK
1166 case 15:
1168 #line 185 "declinfo.l"
1169 {
1170  name+="<";
1171  sharpCount++;
1172  }
1173  YY_BREAK
1174 case 16:
1176 #line 189 "declinfo.l"
1177 {
1178  name+=">";
1179  if (sharpCount)
1180  --sharpCount;
1181  else
1182  {
1183  BEGIN(Start);
1184  }
1185  }
1186  YY_BREAK
1187 case 17:
1189 #line 198 "declinfo.l"
1190 {
1191  name+=*declinfoYYtext;
1192  }
1193  YY_BREAK
1194 case 18:
1195 *yy_cp = (yy_hold_char); /* undo effects of setting up declinfoYYtext */
1196 (yy_c_buf_p) = yy_cp -= 1;
1197 YY_DO_BEFORE_ACTION; /* set up declinfoYYtext again */
1199 #line 201 "declinfo.l"
1200 {
1201  name+="() <>";
1202  BEGIN(ReadArgs);
1203  }
1204  YY_BREAK
1205 case 19:
1206 *yy_cp = (yy_hold_char); /* undo effects of setting up declinfoYYtext */
1207 (yy_c_buf_p) = yy_cp -= 1;
1208 YY_DO_BEFORE_ACTION; /* set up declinfoYYtext again */
1210 #line 205 "declinfo.l"
1211 {
1212  name+="()";
1213  BEGIN(ReadArgs);
1214  }
1215  YY_BREAK
1216 case 20:
1217 /* rule 20 can match eol */
1218 *yy_cp = (yy_hold_char); /* undo effects of setting up declinfoYYtext */
1219 (yy_c_buf_p) = yy_cp -= 1;
1220 YY_DO_BEFORE_ACTION; /* set up declinfoYYtext again */
1222 #line 209 "declinfo.l"
1223 {
1225  BEGIN(ReadArgs);
1226  }
1227  YY_BREAK
1228 case 21:
1230 #line 213 "declinfo.l"
1231 {
1232  exceptionString="throw(";
1234  }
1235  YY_BREAK
1236 case 22:
1238 #line 217 "declinfo.l"
1239 {
1240  args+=*declinfoYYtext;
1241  }
1242  YY_BREAK
1243 case 23:
1245 #line 220 "declinfo.l"
1246 {
1248  }
1249  YY_BREAK
1250 case 24:
1252 #line 223 "declinfo.l"
1253 
1254  YY_BREAK
1255 case 25:
1256 /* rule 25 can match eol */
1258 #line 224 "declinfo.l"
1259 
1260  YY_BREAK
1261 case 26:
1263 #line 226 "declinfo.l"
1264 ECHO;
1265  YY_BREAK
1266 #line 1267 "/nova/app/home/novasoft/doxygen/doxygen-1.8.11/build/generated_src/declinfo.cpp"
1267  case YY_STATE_EOF(INITIAL):
1268  case YY_STATE_EOF(Start):
1269  case YY_STATE_EOF(Template):
1270  case YY_STATE_EOF(ReadArgs):
1271  case YY_STATE_EOF(Operator):
1272  case YY_STATE_EOF(FuncPtr):
1273  case YY_STATE_EOF(EndTemplate):
1274  case YY_STATE_EOF(StripTempArgs):
1275  case YY_STATE_EOF(SkipSharp):
1276  case YY_STATE_EOF(ReadExceptions):
1277  yyterminate();
1278 
1279  case YY_END_OF_BUFFER:
1280  {
1281  /* Amount of text matched not including the EOB char. */
1282  int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
1283 
1284  /* Undo the effects of YY_DO_BEFORE_ACTION. */
1285  *yy_cp = (yy_hold_char);
1287 
1288  if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
1289  {
1290  /* We're scanning a new file or input source. It's
1291  * possible that this happened because the user
1292  * just pointed declinfoYYin at a new source and called
1293  * declinfoYYlex(). If so, then we have to assure
1294  * consistency between YY_CURRENT_BUFFER and our
1295  * globals. Here is the right place to do so, because
1296  * this is the first action (other than possibly a
1297  * back-up) that will match for the new input source.
1298  */
1299  (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1300  YY_CURRENT_BUFFER_LVALUE->yy_input_file = declinfoYYin;
1301  YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
1302  }
1303 
1304  /* Note that here we test for yy_c_buf_p "<=" to the position
1305  * of the first EOB in the buffer, since yy_c_buf_p will
1306  * already have been incremented past the NUL character
1307  * (since all states make transitions on EOB to the
1308  * end-of-buffer state). Contrast this with the test
1309  * in input().
1310  */
1311  if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
1312  { /* This was really a NUL. */
1313  yy_state_type yy_next_state;
1314 
1315  (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
1316 
1317  yy_current_state = yy_get_previous_state( );
1318 
1319  /* Okay, we're now positioned to make the NUL
1320  * transition. We couldn't have
1321  * yy_get_previous_state() go ahead and do it
1322  * for us because it doesn't know how to deal
1323  * with the possibility of jamming (and we don't
1324  * want to build jamming into it because then it
1325  * will run more slowly).
1326  */
1327 
1328  yy_next_state = yy_try_NUL_trans( yy_current_state );
1329 
1331 
1332  if ( yy_next_state )
1333  {
1334  /* Consume the NUL. */
1335  yy_cp = ++(yy_c_buf_p);
1336  yy_current_state = yy_next_state;
1337  goto yy_match;
1338  }
1339 
1340  else
1341  {
1342  yy_cp = (yy_c_buf_p);
1343  goto yy_find_action;
1344  }
1345  }
1346 
1347  else switch ( yy_get_next_buffer( ) )
1348  {
1349  case EOB_ACT_END_OF_FILE:
1350  {
1352 
1353  if ( declinfoYYwrap( ) )
1354  {
1355  /* Note: because we've taken care in
1356  * yy_get_next_buffer() to have set up
1357  * declinfoYYtext, we can now set up
1358  * yy_c_buf_p so that if some total
1359  * hoser (like flex itself) wants to
1360  * call the scanner after we return the
1361  * YY_NULL, it'll still work - another
1362  * YY_NULL will get returned.
1363  */
1365 
1367  goto do_action;
1368  }
1369 
1370  else
1371  {
1372  if ( ! (yy_did_buffer_switch_on_eof) )
1373  YY_NEW_FILE;
1374  }
1375  break;
1376  }
1377 
1378  case EOB_ACT_CONTINUE_SCAN:
1379  (yy_c_buf_p) =
1380  (yytext_ptr) + yy_amount_of_matched_text;
1381 
1382  yy_current_state = yy_get_previous_state( );
1383 
1384  yy_cp = (yy_c_buf_p);
1386  goto yy_match;
1387 
1388  case EOB_ACT_LAST_MATCH:
1389  (yy_c_buf_p) =
1390  &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
1391 
1392  yy_current_state = yy_get_previous_state( );
1393 
1394  yy_cp = (yy_c_buf_p);
1396  goto yy_find_action;
1397  }
1398  break;
1399  }
1400 
1401  default:
1403  "fatal flex scanner internal error--no action found" );
1404  } /* end of action switch */
1405  } /* end of scanning one token */
static QCString name
Definition: declinfo.cpp:673
#define YY_STATE_EOF(state)
Definition: declinfo.cpp:154
bool resize(uint newlen)
Definition: qcstring.h:225
#define YY_DO_BEFORE_ACTION
Definition: declinfo.cpp:378
#define YY_NEW_FILE
Definition: declinfo.cpp:157
QCString stripWhiteSpace() const
Definition: qcstring.cpp:295
static QCString scope
Definition: declinfo.cpp:668
#define yyterminate()
Definition: declinfo.cpp:874
#define INITIAL
Definition: declinfo.cpp:736
register char * yy_bp
Definition: declinfo.cpp:920
Abstract interface for a template.
Definition: template.h:542
register int yy_act
Definition: declinfo.cpp:921
bool isEmpty() const
Definition: qcstring.h:189
Class representing operators that can appear in template expressions.
Definition: template.cpp:428
#define ReadArgs
Definition: declinfo.cpp:739
static int yy_did_buffer_switch_on_eof
Definition: declinfo.cpp:304
static yyconst flex_int32_t yy_meta[31]
Definition: declinfo.cpp:462
#define FuncPtr
Definition: declinfo.cpp:741
static char * yy_c_buf_p
Definition: declinfo.cpp:297
#define YY_TRAILING_HEAD_MASK
Definition: declinfo.cpp:611
static yy_state_type * yy_state_ptr
Definition: declinfo.cpp:604
static int * yy_full_state
Definition: declinfo.cpp:609
#define YY_START
Definition: declinfo.cpp:150
#define EndTemplate
Definition: declinfo.cpp:742
#define yytext_ptr
Definition: declinfo.cpp:368
#define YY_BREAK
Definition: declinfo.cpp:909
#define YY_SC_TO_UI(c)
Definition: declinfo.cpp:138
#define EOB_ACT_END_OF_FILE
Definition: declinfo.cpp:180
#define YY_BUFFER_NORMAL
Definition: declinfo.cpp:255
static QCString args
Definition: declinfo.cpp:674
int yy_state_type
Definition: code.cpp:361
static yyconst flex_int16_t yy_chk[377]
Definition: declinfo.cpp:556
#define declinfoYYwrap(n)
Definition: declinfo.cpp:354
#define YY_RULE_SETUP
Definition: declinfo.cpp:912
static yyconst flex_int16_t yy_def[153]
Definition: declinfo.cpp:490
#define EOB_ACT_CONTINUE_SCAN
Definition: declinfo.cpp:179
QCString copy() const
Definition: qcstring.h:250
char * declinfoYYtext
Definition: declinfo.cpp:626
#define YY_RESTORE_YY_MORE_OFFSET
Definition: declinfo.cpp:625
static int yy_full_lp
Definition: declinfo.cpp:608
#define EOB_ACT_LAST_MATCH
Definition: declinfo.cpp:181
static yyconst flex_int32_t yy_ec[256]
Definition: declinfo.cpp:430
#define ECHO
Definition: declinfo.cpp:830
static yy_state_type * yy_state_buf
Definition: declinfo.cpp:604
#define YY_MORE_ADJ
Definition: declinfo.cpp:624
static yyconst flex_int16_t yy_nxt[377]
Definition: declinfo.cpp:511
static int yy_looking_for_trail_begin
Definition: declinfo.cpp:607
FILE * declinfoYYin
Definition: declinfo.cpp:359
#define StripTempArgs
Definition: declinfo.cpp:743
static int yy_n_chars
Definition: declinfo.cpp:293
unsigned char YY_CHAR
Definition: code.cpp:357
static yy_state_type yy_try_NUL_trans(yy_state_type current_state)
Definition: declinfo.cpp:1551
static yyconst flex_int16_t yy_base[153]
Definition: declinfo.cpp:469
static void addTypeName()
Definition: declinfo.cpp:693
register char * yy_cp
Definition: declinfo.cpp:920
static int yy_lp
Definition: declinfo.cpp:606
#define YY_END_OF_BUFFER
Definition: declinfo.cpp:386
static yyconst flex_int16_t yy_acclist[121]
Definition: declinfo.cpp:394
static char * yy_full_match
Definition: declinfo.cpp:605
static char yy_hold_char
Definition: declinfo.cpp:292
#define YY_FATAL_ERROR(msg)
Definition: declinfo.cpp:884
#define ReadExceptions
Definition: declinfo.cpp:745
#define YY_CURRENT_BUFFER_LVALUE
Definition: declinfo.cpp:289
#define Start
Definition: declinfo.cpp:737
#define BEGIN
Definition: declinfo.cpp:144
static int yy_get_next_buffer(void)
Definition: declinfo.cpp:1415
#define YY_BUFFER_NEW
Definition: declinfo.cpp:254
static void addType()
Definition: declinfo.cpp:681
static int sharpCount
Definition: declinfo.cpp:675
static yy_state_type yy_get_previous_state(void)
Definition: declinfo.cpp:1520
#define REJECT
Definition: declinfo.cpp:612
static bool insideObjC
Definition: declinfo.cpp:679
static int yy_start
Definition: declinfo.cpp:299
static yyconst flex_int16_t yy_accept[140]
Definition: declinfo.cpp:411
#define YY_TRAILING_MASK
Definition: declinfo.cpp:610
static QCString exceptionString
Definition: declinfo.cpp:678
#define SkipSharp
Definition: declinfo.cpp:744
static void yy_fatal_error ( yyconst char  msg[])
static
static void yy_fatal_error ( yyconst char *  msg)
static

Definition at line 1997 of file declinfo.cpp.

1998 {
1999  (void) fprintf( stderr, "%s\n", msg );
2000  exit( YY_EXIT_FAILURE );
2001 }
void msg(const char *fmt,...)
Definition: message.cpp:107
#define YY_EXIT_FAILURE
Definition: declinfo.cpp:1994
static int yy_get_next_buffer ( void  )
static

Definition at line 1415 of file declinfo.cpp.

1416 {
1417  register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
1418  register char *source = (yytext_ptr);
1419  register int number_to_move, i;
1420  int ret_val;
1421 
1422  if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
1424  "fatal flex scanner internal error--end of buffer missed" );
1425 
1426  if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
1427  { /* Don't try to fill the buffer, so this is an EOF. */
1428  if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
1429  {
1430  /* We matched a single character, the EOB, so
1431  * treat this as a final EOF.
1432  */
1433  return EOB_ACT_END_OF_FILE;
1434  }
1435 
1436  else
1437  {
1438  /* We matched some text prior to the EOB, first
1439  * process it.
1440  */
1441  return EOB_ACT_LAST_MATCH;
1442  }
1443  }
1444 
1445  /* Try to read more data. */
1446 
1447  /* First move last chars to start of buffer. */
1448  number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1;
1449 
1450  for ( i = 0; i < number_to_move; ++i )
1451  *(dest++) = *(source++);
1452 
1453  if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
1454  /* don't do the read, it's not guaranteed to return an EOF,
1455  * just force an EOF
1456  */
1457  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
1458 
1459  else
1460  {
1461  int num_to_read =
1462  YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
1463 
1464  while ( num_to_read <= 0 )
1465  { /* Not enough room in the buffer - grow it. */
1466 
1468 "input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
1469 
1470  }
1471 
1472  if ( num_to_read > YY_READ_BUF_SIZE )
1473  num_to_read = YY_READ_BUF_SIZE;
1474 
1475  /* Read in more data. */
1476  YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
1477  (yy_n_chars), (size_t) num_to_read );
1478 
1479  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1480  }
1481 
1482  if ( (yy_n_chars) == 0 )
1483  {
1484  if ( number_to_move == YY_MORE_ADJ )
1485  {
1486  ret_val = EOB_ACT_END_OF_FILE;
1488  }
1489 
1490  else
1491  {
1492  ret_val = EOB_ACT_LAST_MATCH;
1493  YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
1495  }
1496  }
1497 
1498  else
1499  ret_val = EOB_ACT_CONTINUE_SCAN;
1500 
1501  if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
1502  /* Extend the array by 50%, plus the number we really need. */
1503  yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
1504  YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) declinfoYYrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size );
1505  if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
1506  YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
1507  }
1508 
1509  (yy_n_chars) += number_to_move;
1512 
1513  (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
1514 
1515  return ret_val;
1516 }
static char * yy_c_buf_p
Definition: declinfo.cpp:297
#define yytext_ptr
Definition: declinfo.cpp:368
#define EOB_ACT_END_OF_FILE
Definition: declinfo.cpp:180
#define YY_INPUT(buf, result, max_size)
Definition: declinfo.cpp:712
#define EOB_ACT_CONTINUE_SCAN
Definition: declinfo.cpp:179
#define EOB_ACT_LAST_MATCH
Definition: declinfo.cpp:181
void * declinfoYYrealloc(void *, yy_size_t)
Definition: declinfo.cpp:2187
#define YY_READ_BUF_SIZE
Definition: declinfo.cpp:822
#define YY_MORE_ADJ
Definition: declinfo.cpp:624
FILE * declinfoYYin
Definition: declinfo.cpp:359
static int yy_n_chars
Definition: declinfo.cpp:293
#define YY_FATAL_ERROR(msg)
Definition: declinfo.cpp:884
#define YY_CURRENT_BUFFER_LVALUE
Definition: declinfo.cpp:289
#define YY_END_OF_BUFFER_CHAR
Definition: declinfo.cpp:159
#define YY_BUFFER_EOF_PENDING
Definition: declinfo.cpp:266
size_t yy_size_t
Definition: code.cpp:203
void declinfoYYrestart(FILE *input_file)
Definition: declinfo.cpp:1649
static yy_state_type yy_get_previous_state ( void  )
static

Definition at line 1520 of file declinfo.cpp.

1521 {
1522  register yy_state_type yy_current_state;
1523  register char *yy_cp;
1524 
1525  yy_current_state = (yy_start);
1526 
1527  (yy_state_ptr) = (yy_state_buf);
1528  *(yy_state_ptr)++ = yy_current_state;
1529 
1530  for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
1531  {
1532  register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
1533  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1534  {
1535  yy_current_state = (int) yy_def[yy_current_state];
1536  if ( yy_current_state >= 139 )
1537  yy_c = yy_meta[(unsigned int) yy_c];
1538  }
1539  yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1540  *(yy_state_ptr)++ = yy_current_state;
1541  }
1542 
1543  return yy_current_state;
1544 }
static yyconst flex_int32_t yy_meta[31]
Definition: declinfo.cpp:462
static char * yy_c_buf_p
Definition: declinfo.cpp:297
static yy_state_type * yy_state_ptr
Definition: declinfo.cpp:604
#define yytext_ptr
Definition: declinfo.cpp:368
#define YY_SC_TO_UI(c)
Definition: declinfo.cpp:138
int yy_state_type
Definition: code.cpp:361
static yyconst flex_int16_t yy_chk[377]
Definition: declinfo.cpp:556
static yyconst flex_int16_t yy_def[153]
Definition: declinfo.cpp:490
static yyconst flex_int32_t yy_ec[256]
Definition: declinfo.cpp:430
static yy_state_type * yy_state_buf
Definition: declinfo.cpp:604
#define YY_MORE_ADJ
Definition: declinfo.cpp:624
static yyconst flex_int16_t yy_nxt[377]
Definition: declinfo.cpp:511
unsigned char YY_CHAR
Definition: code.cpp:357
static yyconst flex_int16_t yy_base[153]
Definition: declinfo.cpp:469
register char * yy_cp
Definition: declinfo.cpp:920
static int yy_start
Definition: declinfo.cpp:299
static int yy_init_globals ( void  )
static

Definition at line 2100 of file declinfo.cpp.

2101 {
2102  /* Initialization is the same as for the non-reentrant scanner.
2103  * This function is called from declinfoYYlex_destroy(), so don't allocate here.
2104  */
2105 
2106  (yy_buffer_stack) = 0;
2107  (yy_buffer_stack_top) = 0;
2108  (yy_buffer_stack_max) = 0;
2109  (yy_c_buf_p) = (char *) 0;
2110  (yy_init) = 0;
2111  (yy_start) = 0;
2112 
2113  (yy_state_buf) = 0;
2114  (yy_state_ptr) = 0;
2115  (yy_full_match) = 0;
2116  (yy_lp) = 0;
2117 
2118 /* Defined in main.c */
2119 #ifdef YY_STDINIT
2120  declinfoYYin = stdin;
2122 #else
2123  declinfoYYin = (FILE *) 0;
2124  declinfoYYout = (FILE *) 0;
2125 #endif
2126 
2127  /* For future reference: Set errno on error, since we are called by
2128  * declinfoYYlex_init()
2129  */
2130  return 0;
2131 }
static char * yy_c_buf_p
Definition: declinfo.cpp:297
static yy_state_type * yy_state_ptr
Definition: declinfo.cpp:604
static size_t yy_buffer_stack_max
Definition: declinfo.cpp:273
static yy_state_type * yy_state_buf
Definition: declinfo.cpp:604
FILE * declinfoYYin
Definition: declinfo.cpp:359
static int yy_init
Definition: declinfo.cpp:298
static int yy_lp
Definition: declinfo.cpp:606
static char * yy_full_match
Definition: declinfo.cpp:605
static YY_BUFFER_STATE * yy_buffer_stack
Definition: declinfo.cpp:274
FILE * declinfoYYout
Definition: declinfo.cpp:359
static int yy_start
Definition: declinfo.cpp:299
static size_t yy_buffer_stack_top
Definition: declinfo.cpp:272
static yy_state_type yy_try_NUL_trans ( yy_state_type  current_state)
static

Definition at line 1551 of file declinfo.cpp.

1552 {
1553  register int yy_is_jam;
1554 
1555  register YY_CHAR yy_c = 1;
1556  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1557  {
1558  yy_current_state = (int) yy_def[yy_current_state];
1559  if ( yy_current_state >= 139 )
1560  yy_c = yy_meta[(unsigned int) yy_c];
1561  }
1562  yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1563  yy_is_jam = (yy_current_state == 138);
1564  if ( ! yy_is_jam )
1565  *(yy_state_ptr)++ = yy_current_state;
1566 
1567  return yy_is_jam ? 0 : yy_current_state;
1568 }
static yyconst flex_int32_t yy_meta[31]
Definition: declinfo.cpp:462
static yy_state_type * yy_state_ptr
Definition: declinfo.cpp:604
static yyconst flex_int16_t yy_chk[377]
Definition: declinfo.cpp:556
static yyconst flex_int16_t yy_def[153]
Definition: declinfo.cpp:490
static yyconst flex_int16_t yy_nxt[377]
Definition: declinfo.cpp:511
unsigned char YY_CHAR
Definition: code.cpp:357
static yyconst flex_int16_t yy_base[153]
Definition: declinfo.cpp:469
static int yyread ( char *  buf,
int  max_size 
)
static

Definition at line 714 of file declinfo.cpp.

715 {
716  int c=0;
717  while( c < max_size && inputString[inputPosition] )
718  {
719  *buf = inputString[inputPosition++] ;
720  c++; buf++;
721  }
722  return c;
723 }
static int inputPosition
Definition: declinfo.cpp:667
static const char * inputString
Definition: declinfo.cpp:666

Variable Documentation

QCString args
static

Definition at line 674 of file declinfo.cpp.

QCString className
static

Definition at line 669 of file declinfo.cpp.

QCString classTempList
static

Definition at line 670 of file declinfo.cpp.

bool classTempListFound
static

Definition at line 676 of file declinfo.cpp.

int declinfoYY_flex_debug = 0

Definition at line 602 of file declinfo.cpp.

FILE * declinfoYYin = (FILE *) 0

Definition at line 359 of file declinfo.cpp.

int declinfoYYleng

Definition at line 294 of file declinfo.cpp.

int declinfoYYlineno = 1

Definition at line 365 of file declinfo.cpp.

FILE * declinfoYYout = (FILE *) 0

Definition at line 359 of file declinfo.cpp.

char * declinfoYYtext

Definition at line 626 of file declinfo.cpp.

QCString exceptionString
static

Definition at line 678 of file declinfo.cpp.

QCString funcTempList
static

Definition at line 671 of file declinfo.cpp.

bool funcTempListFound
static

Definition at line 677 of file declinfo.cpp.

int inputPosition
static

Definition at line 667 of file declinfo.cpp.

const char* inputString
static

Definition at line 666 of file declinfo.cpp.

bool insideObjC
static

Definition at line 679 of file declinfo.cpp.

QCString name
static

Definition at line 673 of file declinfo.cpp.

QCString scope
static

Definition at line 668 of file declinfo.cpp.

int sharpCount
static

Definition at line 675 of file declinfo.cpp.

QCString type
static

Definition at line 672 of file declinfo.cpp.

yyconst flex_int16_t yy_accept[140]
static
Initial value:
=
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 2, 4, 6, 9, 11, 13, 16, 19, 22,
25, 28, 30, 34, 37, 41, 44, 48, 52, 55,
58, 60, 62, 64, 67, 69, 72, 73, 74, 75,
76, 77, 78, 78, 78, 78, 80, 82, 83, 83,
83, 84, 84, 84, 85, 87, 87, 87, 89, 89,
91, 92, 93, 93, 93, 93, 94, 94, 94, 95,
95, 95, 95, 97, 97, 99, 99, 99, 99, 99,
99, 99, 100, 100, 100, 100, 100, 100, 101, 103,
103, 103, 104, 104, 104, 104, 104, 104, 104, 104,
105, 105, 107, 107, 107, 107, 107, 109, 109, 109,
110, 110, 110, 112, 112, 113, 113, 113, 115, 116,
116, 119, 119, 119, 119, 119, 121, 121, 121
}

Definition at line 411 of file declinfo.cpp.

yyconst flex_int16_t yy_acclist[121]
static
Initial value:
=
{ 0,
27, 24, 26, 25, 26, 7, 24, 26, 24, 26,
24, 26, 6, 24, 26, 10, 24, 26, 9, 24,
26, 5, 24, 26, 12, 24, 26, 24, 26, 8195,
24, 26,16387, 11, 24, 26, 8195, 24, 26,16387,
17, 24, 26, 15, 17, 24, 26, 16, 17, 24,
26, 22, 24, 26, 22, 24, 26, 24, 26, 24,
26, 25, 26, 20, 24, 26, 24, 26, 23, 24,
26, 7, 10, 9, 5, 12, 11, 8195,16387, 8195,
16387, 6, 8, 4, 8195,16387, 8195,16387, 8195,16387,
13, 14, 20, 20, 8195,16387, 8195,16387, 4, 8195,
8195,16387, 19, 2, 8195,16387, 8195,16387, 18, 8195,
16387, 21, 8195,16387, 8, 1, 8195,16387, 1, 8195
}

Definition at line 394 of file declinfo.cpp.

register int yy_act

Definition at line 921 of file declinfo.cpp.

yyconst flex_int16_t yy_base[153]
static
Initial value:
=
{ 0,
342, 341, 0, 0, 28, 30, 29, 31, 41, 43,
340, 339, 338, 336, 333, 332, 331, 328, 327, 326,
328, 346, 346, 58, 51, 0, 321, 65, 346, 309,
346, 308, 70, 346, 72, 346, 305, 303, 346, 294,
73, 79, 81, 47, 87, 346, 0, 98, 346, 290,
346, 346, 100, 104, 289, 36, 271, 289, 56, 110,
89, 283, 281, 288, 112, 118, 124, 264, 45, 57,
346, 346, 258, 128, 129, 346, 136, 139, 93, 120,
142, 149, 143, 140, 152, 155, 259, 258, 26, 271,
270, 224, 157, 159, 216, 161, 94, 163, 149, 199,
169, 346, 207, 175, 193, 193, 0, 179, 177, 346,
181, 107, 184, 188, 186, 195, 166, 190, 191, 346,
180, 140, 175, 194, 346, 164, 113, 177, 106, 71,
202, 44, 203, 204, 205, 207, 209, 346, 227, 237,
247, 257, 267, 276, 28, 284, 292, 302, 311, 315,
323, 331
}

Definition at line 469 of file declinfo.cpp.

register char * yy_bp

Definition at line 920 of file declinfo.cpp.

YY_BUFFER_STATE* yy_buffer_stack = 0
static

Stack as an array.

Definition at line 274 of file declinfo.cpp.

size_t yy_buffer_stack_max = 0
static

capacity of stack.

Definition at line 273 of file declinfo.cpp.

size_t yy_buffer_stack_top = 0
static

index of top of stack.

Definition at line 272 of file declinfo.cpp.

char* yy_c_buf_p = (char *) 0
static

Definition at line 297 of file declinfo.cpp.

yyconst flex_int16_t yy_chk[377]
static

Definition at line 556 of file declinfo.cpp.

register char* yy_cp

Definition at line 920 of file declinfo.cpp.

YY_DECL
Initial value:
{
register yy_state_type yy_current_state
int yy_state_type
Definition: code.cpp:361

The main scanner function which does all the work.

Definition at line 918 of file declinfo.cpp.

yyconst flex_int16_t yy_def[153]
static
Initial value:
=
{ 0,
139, 139, 138, 3, 140, 140, 141, 141, 142, 142,
139, 139, 139, 139, 139, 139, 139, 139, 143, 143,
138, 138, 138, 138, 144, 145, 138, 146, 138, 138,
138, 138, 147, 138, 147, 138, 138, 138, 138, 138,
148, 148, 148, 138, 148, 138, 24, 146, 138, 138,
138, 138, 144, 144, 138, 149, 35, 138, 138, 146,
138, 138, 150, 138, 138, 138, 151, 35, 138, 35,
138, 138, 138, 148, 148, 138, 148, 148, 138, 138,
138, 148, 138, 138, 149, 138, 138, 138, 138, 150,
138, 138, 151, 151, 138, 152, 138, 138, 35, 138,
138, 138, 138, 148, 138, 138, 48, 138, 138, 138,
152, 35, 138, 138, 138, 138, 35, 138, 138, 138,
138, 138, 35, 138, 138, 138, 138, 35, 138, 138,
35, 138, 138, 138, 138, 138, 138, 0, 138, 138,
138, 138, 138, 138, 138, 138, 138, 138, 138, 138,
138, 138
}

Definition at line 490 of file declinfo.cpp.

int yy_did_buffer_switch_on_eof
static

Definition at line 304 of file declinfo.cpp.

yyconst flex_int32_t yy_ec[256]
static

Definition at line 430 of file declinfo.cpp.

int yy_full_lp
static

Definition at line 608 of file declinfo.cpp.

char* yy_full_match
static

Definition at line 605 of file declinfo.cpp.

int* yy_full_state
static

Definition at line 609 of file declinfo.cpp.

char yy_hold_char
static

Definition at line 292 of file declinfo.cpp.

int yy_init = 0
static

Definition at line 298 of file declinfo.cpp.

int yy_looking_for_trail_begin = 0
static

Definition at line 607 of file declinfo.cpp.

int yy_lp
static

Definition at line 606 of file declinfo.cpp.

yyconst flex_int32_t yy_meta[31]
static
Initial value:
=
{ 0,
1, 2, 1, 1, 3, 4, 5, 6, 7, 8,
1, 1, 3, 9, 10, 1, 9, 9, 9, 9,
9, 9, 9, 9, 9, 9, 9, 9, 9, 9
}

Definition at line 462 of file declinfo.cpp.

int yy_n_chars
static

Definition at line 293 of file declinfo.cpp.

yyconst flex_int16_t yy_nxt[377]
static

Definition at line 511 of file declinfo.cpp.

int yy_start = 0
static

Definition at line 299 of file declinfo.cpp.

yy_state_type* yy_state_buf =0
static

Definition at line 604 of file declinfo.cpp.

yy_state_type * yy_state_ptr =0
static

Definition at line 604 of file declinfo.cpp.