code.cpp File Reference

#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <assert.h>
#include <ctype.h>
#include <qregexp.h>
#include <qdir.h>
#include "qtbc.h"
#include "entry.h"
#include "doxygen.h"
#include "message.h"
#include "outputlist.h"
#include "util.h"
#include "membername.h"
#include "searchindex.h"
#include <unistd.h>

Go to the source code of this file.

Classes

struct  yy_buffer_state
struct  yy_trans_info
struct  ObjCCallCtx
class  VariableContext
class  VariableContext::Scope
class  CallContext
struct  CallContext::Ctx

Defines

#define YY_INT_ALIGNED   short int
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION   2
#define YY_FLEX_MINOR_VERSION   5
#define YY_FLEX_SUBMINOR_VERSION   33
#define FLEX_BETA
#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   codeYYrestart(codeYYin )
#define YY_END_OF_BUFFER_CHAR   0
#define YY_BUF_SIZE   262144
#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
#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_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   codeYY_flush_buffer(YY_CURRENT_BUFFER )
#define yy_new_buffer   codeYY_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 codeYYwrap(n)   1
#define YY_SKIP_YYWRAP
#define yytext_ptr   codeYYtext
#define YY_DO_BEFORE_ACTION
#define YY_NUM_RULES   187
#define YY_END_OF_BUFFER   188
#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_NEVER_INTERACTIVE   1
#define DBG_CTX(x)   do { } while(0)
#define CLASSBLOCK   (int *)4
#define SCOPEBLOCK   (int *)8
#define INNERBLOCK   (int *)12
#define YY_INPUT(buf, result, max_size)   result=yyread(buf,max_size);
#define INITIAL   0
#define SkipString   1
#define SkipStringS   2
#define SkipVerbString   3
#define SkipCPP   4
#define SkipComment   5
#define SkipCxxComment   6
#define RemoveSpecialCComment   7
#define StripSpecialCComment   8
#define Body   9
#define FuncCall   10
#define MemberCall   11
#define MemberCall2   12
#define SkipInits   13
#define ClassName   14
#define PackageName   15
#define ClassVar   16
#define CppCliTypeModifierFollowup   17
#define Bases   18
#define SkipSharp   19
#define ReadInclude   20
#define TemplDecl   21
#define TemplCast   22
#define CallEnd   23
#define ObjCMethod   24
#define ObjCParams   25
#define ObjCParamType   26
#define ObjCCall   27
#define ObjCMName   28
#define ObjCSkipStr   29
#define OldStyleArgs   30
#define UsingName   31
#define YY_EXTRA_TYPE   void *
#define YY_READ_BUF_SIZE   8192
#define ECHO   (void) fwrite( codeYYtext, codeYYleng, 1, codeYYout )
#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 codeYYlex (void)
#define YY_BREAK   break;
#define YY_RULE_SETUP
#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 yy_buffer_stateYY_BUFFER_STATE
typedef unsigned int yy_size_t
typedef unsigned char YY_CHAR
typedef int yy_state_type

Functions

void codeYYrestart (FILE *input_file)
void codeYY_switch_to_buffer (YY_BUFFER_STATE new_buffer)
YY_BUFFER_STATE codeYY_create_buffer (FILE *file, int size)
void codeYY_delete_buffer (YY_BUFFER_STATE b)
void codeYY_flush_buffer (YY_BUFFER_STATE b)
void codeYYpush_buffer_state (YY_BUFFER_STATE new_buffer)
void codeYYpop_buffer_state (void)
YY_BUFFER_STATE codeYY_scan_buffer (char *base, yy_size_t size)
YY_BUFFER_STATE codeYY_scan_string (yyconst char *yy_str)
YY_BUFFER_STATE codeYY_scan_bytes (yyconst char *bytes, int len)
void * codeYYalloc (yy_size_t)
void * codeYYrealloc (void *, yy_size_t)
void codeYYfree (void *)
int codeYYlex (void)

Variables

int codeYYleng
FILE * codeYYin
FILE * codeYYout
int codeYYleng
FILE * codeYYin = (FILE *) 0
FILE * codeYYout = (FILE *) 0
int codeYYlineno
int codeYYlineno = 1
char * codeYYtext
int codeYY_flex_debug
int codeYY_flex_debug = 0
char * codeYYtext


Define Documentation

#define Bases   18

Definition at line 9645 of file code.cpp.

Referenced by parseVhdlCode().

#define BEGIN   (yy_start) = 1 + 2 *

Definition at line 123 of file code.cpp.

#define Body   9

Definition at line 9636 of file code.cpp.

Referenced by resetPythonCodeParserState().

#define CallEnd   23

Definition at line 9650 of file code.cpp.

#define CLASSBLOCK   (int *)4

Definition at line 7993 of file code.cpp.

#define ClassName   14

Definition at line 9641 of file code.cpp.

#define ClassVar   16

Definition at line 9643 of file code.cpp.

#define codeYYwrap (  )     1

Definition at line 338 of file code.cpp.

#define CppCliTypeModifierFollowup   17

Definition at line 9644 of file code.cpp.

#define DBG_CTX (  )     do { } while(0)

Definition at line 7991 of file code.cpp.

Referenced by VariableContext::addVariable(), CallContext::clear(), VariableContext::clearExceptGlobal(), VariableContext::findVariable(), CallContext::popScope(), VariableContext::popScope(), CallContext::pushScope(), VariableContext::pushScope(), and CallContext::setClass().

#define ECHO   (void) fwrite( codeYYtext, codeYYleng, 1, codeYYout )

Definition at line 9716 of file code.cpp.

#define EOB_ACT_CONTINUE_SCAN   0

Definition at line 158 of file code.cpp.

#define EOB_ACT_END_OF_FILE   1

Definition at line 159 of file code.cpp.

#define EOB_ACT_LAST_MATCH   2

Definition at line 160 of file code.cpp.

#define FLEX_BETA

Definition at line 13 of file code.cpp.

#define FLEX_SCANNER

Definition at line 8 of file code.cpp.

#define FuncCall   10

Definition at line 9637 of file code.cpp.

#define INITIAL   0

Definition at line 9627 of file code.cpp.

#define INNERBLOCK   (int *)12

Definition at line 7995 of file code.cpp.

#define INT16_MAX   (32767)

Definition at line 72 of file code.cpp.

#define INT16_MIN   (-32767-1)

Definition at line 63 of file code.cpp.

#define INT32_MAX   (2147483647)

Definition at line 75 of file code.cpp.

#define INT32_MIN   (-2147483647-1)

Definition at line 66 of file code.cpp.

#define INT8_MAX   (127)

Definition at line 69 of file code.cpp.

#define INT8_MIN   (-128)

Definition at line 60 of file code.cpp.

#define MemberCall   11

Definition at line 9638 of file code.cpp.

#define MemberCall2   12

Definition at line 9639 of file code.cpp.

#define ObjCCall   27

Definition at line 9654 of file code.cpp.

#define ObjCMethod   24

Definition at line 9651 of file code.cpp.

#define ObjCMName   28

Definition at line 9655 of file code.cpp.

#define ObjCParams   25

Definition at line 9652 of file code.cpp.

#define ObjCParamType   26

Definition at line 9653 of file code.cpp.

#define ObjCSkipStr   29

Definition at line 9656 of file code.cpp.

#define OldStyleArgs   30

Definition at line 9657 of file code.cpp.

#define PackageName   15

Definition at line 9642 of file code.cpp.

#define ReadInclude   20

Definition at line 9647 of file code.cpp.

#define REJECT

Value:

{ \
*yy_cp = (yy_hold_char); /* undo effects of setting up codeYYtext */ \
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; \
}

Definition at line 7935 of file code.cpp.

#define RemoveSpecialCComment   7

Definition at line 9634 of file code.cpp.

#define SCOPEBLOCK   (int *)8

Definition at line 7994 of file code.cpp.

#define SkipComment   5

Definition at line 9632 of file code.cpp.

#define SkipCPP   4

Definition at line 9631 of file code.cpp.

#define SkipCxxComment   6

Definition at line 9633 of file code.cpp.

#define SkipInits   13

Definition at line 9640 of file code.cpp.

#define SkipSharp   19

Definition at line 9646 of file code.cpp.

#define SkipString   1

Definition at line 9628 of file code.cpp.

#define SkipStringS   2

Definition at line 9629 of file code.cpp.

#define SkipVerbString   3

Definition at line 9630 of file code.cpp.

#define StripSpecialCComment   8

Definition at line 9635 of file code.cpp.

#define TemplCast   22

Definition at line 9649 of file code.cpp.

#define TemplDecl   21

Definition at line 9648 of file code.cpp.

#define UINT16_MAX   (65535U)

Definition at line 81 of file code.cpp.

#define UINT32_MAX   (4294967295U)

Definition at line 84 of file code.cpp.

#define UINT8_MAX   (255U)

Definition at line 78 of file code.cpp.

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

Definition at line 178 of file code.cpp.

#define UsingName   31

Definition at line 9658 of file code.cpp.

 
#define YY_AT_BOL (  )     (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)

Definition at line 334 of file code.cpp.

#define YY_BREAK   break;

Definition at line 9795 of file code.cpp.

#define YY_BUF_SIZE   262144

Definition at line 142 of file code.cpp.

#define YY_BUFFER_EOF_PENDING   2

Definition at line 250 of file code.cpp.

#define YY_BUFFER_NEW   0

Definition at line 238 of file code.cpp.

#define YY_BUFFER_NORMAL   1

Definition at line 239 of file code.cpp.

#define YY_CURRENT_BUFFER

Value:

( (yy_buffer_stack) \
                          ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
                          : NULL)

Definition at line 266 of file code.cpp.

#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]

Definition at line 273 of file code.cpp.

#define YY_DECL   int codeYYlex (void)

Definition at line 9783 of file code.cpp.

#define YY_DECL_IS_OURS   1

Definition at line 9779 of file code.cpp.

#define YY_DO_BEFORE_ACTION

Value:

(yytext_ptr) = yy_bp; \
        codeYYleng = (size_t) (yy_cp - yy_bp); \
        (yy_hold_char) = *yy_cp; \
        *yy_cp = '\0'; \
        (yy_c_buf_p) = yy_cp;

Definition at line 362 of file code.cpp.

#define YY_END_OF_BUFFER   188

Definition at line 370 of file code.cpp.

#define YY_END_OF_BUFFER_CHAR   0

Definition at line 138 of file code.cpp.

#define YY_EXIT_FAILURE   2

#define YY_EXTRA_TYPE   void *

Definition at line 9669 of file code.cpp.

#define YY_FATAL_ERROR ( msg   )     yy_fatal_error( msg )

Definition at line 9770 of file code.cpp.

#define YY_FLEX_MAJOR_VERSION   2

Definition at line 9 of file code.cpp.

#define YY_FLEX_MINOR_VERSION   5

Definition at line 10 of file code.cpp.

#define YY_FLEX_SUBMINOR_VERSION   33

Definition at line 11 of file code.cpp.

#define YY_FLUSH_BUFFER   codeYY_flush_buffer(YY_CURRENT_BUFFER )

Definition at line 302 of file code.cpp.

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

Definition at line 9581 of file code.cpp.

#define YY_INT_ALIGNED   short int

Definition at line 4 of file code.cpp.

#define YY_LESS_LINENO (  ) 

Definition at line 162 of file code.cpp.

#define YY_MORE_ADJ   0

Definition at line 7947 of file code.cpp.

#define YY_NEVER_INTERACTIVE   1

Definition at line 7987 of file code.cpp.

#define yy_new_buffer   codeYY_create_buffer

Definition at line 312 of file code.cpp.

#define YY_NEW_FILE   codeYYrestart(codeYYin )

Definition at line 136 of file code.cpp.

#define YY_NULL   0

Definition at line 110 of file code.cpp.

#define YY_NUM_RULES   187

Definition at line 369 of file code.cpp.

#define YY_READ_BUF_SIZE   8192

Definition at line 9708 of file code.cpp.

#define YY_RESTORE_YY_MORE_OFFSET

Definition at line 7948 of file code.cpp.

#define YY_RULE_SETUP

Value:

if ( codeYYleng > 0 ) \
                YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \
                                (codeYYtext[codeYYleng - 1] == '\n'); \
        YY_USER_ACTION

Definition at line 9798 of file code.cpp.

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

Definition at line 117 of file code.cpp.

#define yy_set_bol ( at_bol   ) 

Value:

{ \
        if ( ! YY_CURRENT_BUFFER ){\
        codeYYensure_buffer_stack (); \
                YY_CURRENT_BUFFER_LVALUE =    \
            codeYY_create_buffer(codeYYin,YY_BUF_SIZE ); \
        } \
        YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
        }

Definition at line 324 of file code.cpp.

#define yy_set_interactive ( is_interactive   ) 

Value:

{ \
        if ( ! YY_CURRENT_BUFFER ){ \
        codeYYensure_buffer_stack (); \
                YY_CURRENT_BUFFER_LVALUE =    \
            codeYY_create_buffer(codeYYin,YY_BUF_SIZE ); \
        } \
        YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
        }

Definition at line 314 of file code.cpp.

#define YY_SKIP_YYWRAP

Definition at line 339 of file code.cpp.

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

Definition at line 129 of file code.cpp.

#define YY_START_STACK_INCR   25

Definition at line 9765 of file code.cpp.

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

Definition at line 147 of file code.cpp.

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

Definition at line 133 of file code.cpp.

#define YY_TRAILING_HEAD_MASK   0x4000

Definition at line 7934 of file code.cpp.

#define YY_TRAILING_MASK   0x2000

Definition at line 7933 of file code.cpp.

#define yyconst

Definition at line 106 of file code.cpp.

#define yyless (  ) 

Value:

do \
                { \
                /* Undo effects of setting up codeYYtext. */ \
        int yyless_macro_arg = (n); \
        YY_LESS_LINENO(yyless_macro_arg);\
                codeYYtext[codeYYleng] = (yy_hold_char); \
                (yy_c_buf_p) = codeYYtext + yyless_macro_arg; \
                (yy_hold_char) = *(yy_c_buf_p); \
                *(yy_c_buf_p) = '\0'; \
                codeYYleng = yyless_macro_arg; \
                } \
        while ( 0 )

Definition at line 165 of file code.cpp.

#define yyless (  ) 

Value:

do \
                { \
                /* Undo effects of setting up codeYYtext. */ \
        int yyless_macro_arg = (n); \
        YY_LESS_LINENO(yyless_macro_arg);\
                *yy_cp = (yy_hold_char); \
                YY_RESTORE_YY_MORE_OFFSET \
                (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
                YY_DO_BEFORE_ACTION; /* set up codeYYtext again */ \
                } \
        while ( 0 )

Definition at line 165 of file code.cpp.

 
#define yymore (  )     yymore_used_but_not_detected

Definition at line 7946 of file code.cpp.

#define YYSTATE   YY_START

Definition at line 130 of file code.cpp.

#define YYTABLES_NAME   "yytables"

 
#define yyterminate (  )     return YY_NULL

Definition at line 9760 of file code.cpp.

#define yytext_ptr   codeYYtext

Definition at line 352 of file code.cpp.


Typedef Documentation

typedef short int flex_int16_t

Definition at line 51 of file code.cpp.

typedef int flex_int32_t

Definition at line 52 of file code.cpp.

typedef signed char flex_int8_t

Definition at line 50 of file code.cpp.

typedef unsigned short int flex_uint16_t

Definition at line 54 of file code.cpp.

typedef unsigned int flex_uint32_t

Definition at line 55 of file code.cpp.

typedef unsigned char flex_uint8_t

Definition at line 53 of file code.cpp.

typedef struct yy_buffer_state* YY_BUFFER_STATE

Definition at line 151 of file code.cpp.

typedef unsigned char YY_CHAR

Definition at line 341 of file code.cpp.

typedef unsigned int yy_size_t

Definition at line 187 of file code.cpp.

typedef int yy_state_type

Definition at line 345 of file code.cpp.


Function Documentation

YY_BUFFER_STATE codeYY_create_buffer ( FILE *  file,
int  size 
)

void codeYY_delete_buffer ( YY_BUFFER_STATE  b  ) 

void codeYY_flush_buffer ( YY_BUFFER_STATE  b  ) 

YY_BUFFER_STATE codeYY_scan_buffer ( char *  base,
yy_size_t  size 
)

YY_BUFFER_STATE codeYY_scan_bytes ( yyconst char *  bytes,
int  len 
)

YY_BUFFER_STATE codeYY_scan_string ( yyconst char *  yy_str  ) 

void codeYY_switch_to_buffer ( YY_BUFFER_STATE  new_buffer  ) 

void* codeYYalloc ( yy_size_t   ) 

void codeYYfree ( void *   ) 

int codeYYlex ( void   ) 

void codeYYpop_buffer_state ( void   ) 

void codeYYpush_buffer_state ( YY_BUFFER_STATE  new_buffer  ) 

void* codeYYrealloc ( void *  ,
yy_size_t   
)

void codeYYrestart ( FILE *  input_file  ) 


Variable Documentation

int codeYY_flex_debug = 0

Definition at line 7925 of file code.cpp.

int codeYY_flex_debug

Definition at line 7925 of file code.cpp.

FILE* codeYYin = (FILE *) 0

Definition at line 343 of file code.cpp.

FILE* codeYYin

Definition at line 343 of file code.cpp.

int codeYYleng

Definition at line 278 of file code.cpp.

int codeYYleng

Definition at line 278 of file code.cpp.

int codeYYlineno = 1

Definition at line 349 of file code.cpp.

int codeYYlineno

Definition at line 349 of file code.cpp.

FILE * codeYYout = (FILE *) 0

Definition at line 343 of file code.cpp.

FILE * codeYYout

Definition at line 343 of file code.cpp.

char* codeYYtext

Definition at line 7949 of file code.cpp.

char* codeYYtext

Definition at line 7949 of file code.cpp.



Generated on Mon Mar 31 10:58:51 2008 by  doxygen 1.5.1