commentscan.cpp File Reference

#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <assert.h>
#include <ctype.h>
#include "qtbc.h"
#include <qarray.h>
#include <qstack.h>
#include <qregexp.h>
#include <unistd.h>
#include <qfile.h>
#include "scanner.h"
#include "entry.h"
#include "doxygen.h"
#include "message.h"
#include "config.h"
#include "util.h"
#include "index.h"
#include "defargs.h"
#include "language.h"
#include "outputlist.h"
#include "membergroup.h"
#include "reflist.h"
#include "debug.h"
#include "parserintf.h"

Go to the source code of this file.

Classes

struct  yy_buffer_state
struct  yy_trans_info
struct  DocCmdMap
class  DocCmdMapper
 Command mapper. More...
struct  DocCmdMapper::Cmd
class  GuardedSection

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   commentScanYYrestart(commentScanYYin )
#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 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   commentScanYY_flush_buffer(YY_CURRENT_BUFFER )
#define yy_new_buffer   commentScanYY_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 commentScanYYwrap(n)   1
#define YY_SKIP_YYWRAP
#define yytext_ptr   commentScanYYtext
#define YY_DO_BEFORE_ACTION
#define YY_NUM_RULES   161
#define YY_END_OF_BUFFER   162
#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 YY_INPUT(buf, result, max_size)   result=yyread(buf,max_size);
#define INITIAL   0
#define Comment   1
#define PageDocArg1   2
#define PageDocArg2   3
#define RelatesParam1   4
#define ClassDocArg1   5
#define ClassDocArg2   6
#define ClassDocArg3   7
#define CategoryDocArg1   8
#define XRefItemParam1   9
#define XRefItemParam2   10
#define XRefItemParam3   11
#define FileDocArg1   12
#define EnumDocArg1   13
#define NameSpaceDocArg1   14
#define PackageDocArg1   15
#define GroupDocArg1   16
#define GroupDocArg2   17
#define SectionLabel   18
#define SectionTitle   19
#define SubpageLabel   20
#define SubpageTitle   21
#define FormatBlock   22
#define LineParam   23
#define GuardParam   24
#define SkipGuardedSection   25
#define SkipInternal   26
#define NameParam   27
#define InGroupParam   28
#define FnParam   29
#define OverloadParam   30
#define InheritParam   31
#define ReadFormulaShort   32
#define ReadFormulaLong   33
#define AnchorLabel   34
#define HtmlComment   35
#define SkipLang   36
#define YY_EXTRA_TYPE   void *
#define YY_READ_BUF_SIZE   8192
#define ECHO   (void) fwrite( commentScanYYtext, commentScanYYleng, 1, commentScanYYout )
#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 commentScanYYlex (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
typedef bool(*) DocCmdFunc (const QCString &name)

Enumerations

enum  XRefKind {
  XRef_Item, XRef_Todo, XRef_Test, XRef_Bug,
  XRef_Deprecated, XRef_None
}
enum  OutputContext { OutputDoc, OutputBrief, OutputXRef, OutputInbody }
enum  GuardType { Guard_If, Guard_IfNot, Guard_Skip }

Functions

void commentScanYYrestart (FILE *input_file)
void commentScanYY_switch_to_buffer (YY_BUFFER_STATE new_buffer)
YY_BUFFER_STATE commentScanYY_create_buffer (FILE *file, int size)
void commentScanYY_delete_buffer (YY_BUFFER_STATE b)
void commentScanYY_flush_buffer (YY_BUFFER_STATE b)
void commentScanYYpush_buffer_state (YY_BUFFER_STATE new_buffer)
void commentScanYYpop_buffer_state (void)
YY_BUFFER_STATE commentScanYY_scan_buffer (char *base, yy_size_t size)
YY_BUFFER_STATE commentScanYY_scan_string (yyconst char *yy_str)
YY_BUFFER_STATE commentScanYY_scan_bytes (yyconst char *bytes, int len)
void * commentScanYYalloc (yy_size_t)
void * commentScanYYrealloc (void *, yy_size_t)
void commentScanYYfree (void *)
void openGroup (Entry *e, const char *file, int line)
void closeGroup (Entry *e, const char *file, int line)
void initGroupInfo (Entry *e)
int commentScanYYlex (void)

Variables

int commentScanYYleng
FILE * commentScanYYin
FILE * commentScanYYout
int commentScanYYleng
FILE * commentScanYYin = (FILE *) 0
FILE * commentScanYYout = (FILE *) 0
int commentScanYYlineno
int commentScanYYlineno = 1
char * commentScanYYtext
int commentScanYY_flex_debug
int commentScanYY_flex_debug = 0
char * commentScanYYtext


Define Documentation

#define AnchorLabel   34

Definition at line 3174 of file commentscan.cpp.

#define BEGIN   (yy_start) = 1 + 2 *

Definition at line 123 of file commentscan.cpp.

#define CategoryDocArg1   8

Definition at line 3148 of file commentscan.cpp.

#define ClassDocArg1   5

Definition at line 3145 of file commentscan.cpp.

#define ClassDocArg2   6

Definition at line 3146 of file commentscan.cpp.

#define ClassDocArg3   7

Definition at line 3147 of file commentscan.cpp.

#define Comment   1

Definition at line 3141 of file commentscan.cpp.

#define commentScanYYwrap (  )     1

Definition at line 338 of file commentscan.cpp.

#define ECHO   (void) fwrite( commentScanYYtext, commentScanYYleng, 1, commentScanYYout )

Definition at line 3234 of file commentscan.cpp.

#define EnumDocArg1   13

Definition at line 3153 of file commentscan.cpp.

#define EOB_ACT_CONTINUE_SCAN   0

Definition at line 158 of file commentscan.cpp.

#define EOB_ACT_END_OF_FILE   1

Definition at line 159 of file commentscan.cpp.

#define EOB_ACT_LAST_MATCH   2

Definition at line 160 of file commentscan.cpp.

#define FileDocArg1   12

Definition at line 3152 of file commentscan.cpp.

#define FLEX_BETA

Definition at line 13 of file commentscan.cpp.

#define FLEX_SCANNER

Definition at line 8 of file commentscan.cpp.

#define FnParam   29

Definition at line 3169 of file commentscan.cpp.

#define FormatBlock   22

Definition at line 3162 of file commentscan.cpp.

#define GroupDocArg1   16

Definition at line 3156 of file commentscan.cpp.

#define GroupDocArg2   17

Definition at line 3157 of file commentscan.cpp.

#define GuardParam   24

Definition at line 3164 of file commentscan.cpp.

#define HtmlComment   35

Definition at line 3175 of file commentscan.cpp.

#define InGroupParam   28

Definition at line 3168 of file commentscan.cpp.

#define InheritParam   31

Definition at line 3171 of file commentscan.cpp.

#define INITIAL   0

Definition at line 3140 of file commentscan.cpp.

#define INT16_MAX   (32767)

Definition at line 72 of file commentscan.cpp.

#define INT16_MIN   (-32767-1)

Definition at line 63 of file commentscan.cpp.

#define INT32_MAX   (2147483647)

Definition at line 75 of file commentscan.cpp.

#define INT32_MIN   (-2147483647-1)

Definition at line 66 of file commentscan.cpp.

#define INT8_MAX   (127)

Definition at line 69 of file commentscan.cpp.

#define INT8_MIN   (-128)

Definition at line 60 of file commentscan.cpp.

#define LineParam   23

Definition at line 3163 of file commentscan.cpp.

#define NameParam   27

Definition at line 3167 of file commentscan.cpp.

#define NameSpaceDocArg1   14

Definition at line 3154 of file commentscan.cpp.

#define OverloadParam   30

Definition at line 3170 of file commentscan.cpp.

#define PackageDocArg1   15

Definition at line 3155 of file commentscan.cpp.

#define PageDocArg1   2

Definition at line 3142 of file commentscan.cpp.

#define PageDocArg2   3

Definition at line 3143 of file commentscan.cpp.

#define ReadFormulaLong   33

Definition at line 3173 of file commentscan.cpp.

#define ReadFormulaShort   32

Definition at line 3172 of file commentscan.cpp.

#define REJECT

Value:

{ \
*yy_cp = (yy_hold_char); /* undo effects of setting up commentScanYYtext */ \
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 2324 of file commentscan.cpp.

#define RelatesParam1   4

Definition at line 3144 of file commentscan.cpp.

#define SectionLabel   18

Definition at line 3158 of file commentscan.cpp.

#define SectionTitle   19

Definition at line 3159 of file commentscan.cpp.

#define SkipGuardedSection   25

Definition at line 3165 of file commentscan.cpp.

#define SkipInternal   26

Definition at line 3166 of file commentscan.cpp.

#define SkipLang   36

Definition at line 3176 of file commentscan.cpp.

#define SubpageLabel   20

Definition at line 3160 of file commentscan.cpp.

#define SubpageTitle   21

Definition at line 3161 of file commentscan.cpp.

#define UINT16_MAX   (65535U)

Definition at line 81 of file commentscan.cpp.

#define UINT32_MAX   (4294967295U)

Definition at line 84 of file commentscan.cpp.

#define UINT8_MAX   (255U)

Definition at line 78 of file commentscan.cpp.

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

Definition at line 178 of file commentscan.cpp.

#define XRefItemParam1   9

Definition at line 3149 of file commentscan.cpp.

#define XRefItemParam2   10

Definition at line 3150 of file commentscan.cpp.

#define XRefItemParam3   11

Definition at line 3151 of file commentscan.cpp.

 
#define YY_AT_BOL (  )     (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)

Definition at line 334 of file commentscan.cpp.

#define YY_BREAK   break;

Definition at line 3313 of file commentscan.cpp.

#define YY_BUF_SIZE   16384

Definition at line 142 of file commentscan.cpp.

#define YY_BUFFER_EOF_PENDING   2

Definition at line 250 of file commentscan.cpp.

#define YY_BUFFER_NEW   0

Definition at line 238 of file commentscan.cpp.

#define YY_BUFFER_NORMAL   1

Definition at line 239 of file commentscan.cpp.

#define YY_CURRENT_BUFFER

Value:

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

Definition at line 266 of file commentscan.cpp.

#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]

Definition at line 273 of file commentscan.cpp.

#define YY_DECL   int commentScanYYlex (void)

Definition at line 3301 of file commentscan.cpp.

#define YY_DECL_IS_OURS   1

Definition at line 3297 of file commentscan.cpp.

#define YY_DO_BEFORE_ACTION

Value:

(yytext_ptr) = yy_bp; \
        commentScanYYleng = (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 commentscan.cpp.

#define YY_END_OF_BUFFER   162

Definition at line 370 of file commentscan.cpp.

#define YY_END_OF_BUFFER_CHAR   0

Definition at line 138 of file commentscan.cpp.

#define YY_EXIT_FAILURE   2

#define YY_EXTRA_TYPE   void *

Definition at line 3187 of file commentscan.cpp.

#define YY_FATAL_ERROR ( msg   )     yy_fatal_error( msg )

Definition at line 3288 of file commentscan.cpp.

#define YY_FLEX_MAJOR_VERSION   2

Definition at line 9 of file commentscan.cpp.

#define YY_FLEX_MINOR_VERSION   5

Definition at line 10 of file commentscan.cpp.

#define YY_FLEX_SUBMINOR_VERSION   33

Definition at line 11 of file commentscan.cpp.

#define YY_FLUSH_BUFFER   commentScanYY_flush_buffer(YY_CURRENT_BUFFER )

Definition at line 302 of file commentscan.cpp.

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

Definition at line 3083 of file commentscan.cpp.

#define YY_INT_ALIGNED   short int

Definition at line 4 of file commentscan.cpp.

#define YY_LESS_LINENO (  ) 

Definition at line 162 of file commentscan.cpp.

#define YY_MORE_ADJ   0

Definition at line 2336 of file commentscan.cpp.

#define YY_NEVER_INTERACTIVE   1

Definition at line 2638 of file commentscan.cpp.

#define yy_new_buffer   commentScanYY_create_buffer

Definition at line 312 of file commentscan.cpp.

#define YY_NEW_FILE   commentScanYYrestart(commentScanYYin )

Definition at line 136 of file commentscan.cpp.

#define YY_NULL   0

Definition at line 110 of file commentscan.cpp.

#define YY_NUM_RULES   161

Definition at line 369 of file commentscan.cpp.

#define YY_READ_BUF_SIZE   8192

Definition at line 3226 of file commentscan.cpp.

#define YY_RESTORE_YY_MORE_OFFSET

Definition at line 2337 of file commentscan.cpp.

#define YY_RULE_SETUP

Value:

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

Definition at line 3316 of file commentscan.cpp.

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

Definition at line 117 of file commentscan.cpp.

#define yy_set_bol ( at_bol   ) 

Value:

{ \
        if ( ! YY_CURRENT_BUFFER ){\
        commentScanYYensure_buffer_stack (); \
                YY_CURRENT_BUFFER_LVALUE =    \
            commentScanYY_create_buffer(commentScanYYin,YY_BUF_SIZE ); \
        } \
        YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
        }

Definition at line 324 of file commentscan.cpp.

#define yy_set_interactive ( is_interactive   ) 

Value:

{ \
        if ( ! YY_CURRENT_BUFFER ){ \
        commentScanYYensure_buffer_stack (); \
                YY_CURRENT_BUFFER_LVALUE =    \
            commentScanYY_create_buffer(commentScanYYin,YY_BUF_SIZE ); \
        } \
        YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
        }

Definition at line 314 of file commentscan.cpp.

#define YY_SKIP_YYWRAP

Definition at line 339 of file commentscan.cpp.

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

Definition at line 129 of file commentscan.cpp.

#define YY_START_STACK_INCR   25

Definition at line 3283 of file commentscan.cpp.

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

Definition at line 147 of file commentscan.cpp.

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

Definition at line 133 of file commentscan.cpp.

#define YY_TRAILING_HEAD_MASK   0x4000

Definition at line 2323 of file commentscan.cpp.

#define YY_TRAILING_MASK   0x2000

Definition at line 2322 of file commentscan.cpp.

#define yyconst

Definition at line 106 of file commentscan.cpp.

#define yyless (  ) 

Value:

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

Definition at line 165 of file commentscan.cpp.

#define yyless (  ) 

Value:

do \
                { \
                /* Undo effects of setting up commentScanYYtext. */ \
        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 commentScanYYtext again */ \
                } \
        while ( 0 )

Definition at line 165 of file commentscan.cpp.

 
#define yymore (  )     yymore_used_but_not_detected

Definition at line 2335 of file commentscan.cpp.

#define YYSTATE   YY_START

Definition at line 130 of file commentscan.cpp.

#define YYTABLES_NAME   "yytables"

 
#define yyterminate (  )     return YY_NULL

Definition at line 3278 of file commentscan.cpp.

#define yytext_ptr   commentScanYYtext

Definition at line 352 of file commentscan.cpp.


Typedef Documentation

typedef bool(*) DocCmdFunc(const QCString &name)

Definition at line 2448 of file commentscan.cpp.

typedef short int flex_int16_t

Definition at line 51 of file commentscan.cpp.

typedef int flex_int32_t

Definition at line 52 of file commentscan.cpp.

typedef signed char flex_int8_t

Definition at line 50 of file commentscan.cpp.

typedef unsigned short int flex_uint16_t

Definition at line 54 of file commentscan.cpp.

typedef unsigned int flex_uint32_t

Definition at line 55 of file commentscan.cpp.

typedef unsigned char flex_uint8_t

Definition at line 53 of file commentscan.cpp.

typedef struct yy_buffer_state* YY_BUFFER_STATE

Definition at line 151 of file commentscan.cpp.

typedef unsigned char YY_CHAR

Definition at line 341 of file commentscan.cpp.

typedef unsigned int yy_size_t

Definition at line 187 of file commentscan.cpp.

typedef int yy_state_type

Definition at line 345 of file commentscan.cpp.


Enumeration Type Documentation

enum GuardType

Enumerator:
Guard_If 
Guard_IfNot 
Guard_Skip 

Definition at line 2658 of file commentscan.cpp.

enum OutputContext

Enumerator:
OutputDoc 
OutputBrief 
OutputXRef 
OutputInbody 

Definition at line 2650 of file commentscan.cpp.

enum XRefKind

Enumerator:
XRef_Item 
XRef_Todo 
XRef_Test 
XRef_Bug 
XRef_Deprecated 
XRef_None 

Definition at line 2640 of file commentscan.cpp.


Function Documentation

void closeGroup ( Entry e,
const char *  file,
int  line 
)

YY_BUFFER_STATE commentScanYY_create_buffer ( FILE *  file,
int  size 
)

void commentScanYY_delete_buffer ( YY_BUFFER_STATE  b  ) 

void commentScanYY_flush_buffer ( YY_BUFFER_STATE  b  ) 

YY_BUFFER_STATE commentScanYY_scan_buffer ( char *  base,
yy_size_t  size 
)

YY_BUFFER_STATE commentScanYY_scan_bytes ( yyconst char *  bytes,
int  len 
)

YY_BUFFER_STATE commentScanYY_scan_string ( yyconst char *  yy_str  ) 

void commentScanYY_switch_to_buffer ( YY_BUFFER_STATE  new_buffer  ) 

void* commentScanYYalloc ( yy_size_t   ) 

void commentScanYYfree ( void *   ) 

int commentScanYYlex ( void   ) 

void commentScanYYpop_buffer_state ( void   ) 

void commentScanYYpush_buffer_state ( YY_BUFFER_STATE  new_buffer  ) 

void* commentScanYYrealloc ( void *  ,
yy_size_t   
)

void commentScanYYrestart ( FILE *  input_file  ) 

void initGroupInfo ( Entry e  ) 

void openGroup ( Entry e,
const char *  file,
int  line 
)


Variable Documentation

int commentScanYY_flex_debug = 0

Definition at line 2314 of file commentscan.cpp.

int commentScanYY_flex_debug

Definition at line 2314 of file commentscan.cpp.

FILE* commentScanYYin = (FILE *) 0

Definition at line 343 of file commentscan.cpp.

FILE* commentScanYYin

Definition at line 343 of file commentscan.cpp.

int commentScanYYleng

Definition at line 278 of file commentscan.cpp.

int commentScanYYleng

Definition at line 278 of file commentscan.cpp.

int commentScanYYlineno = 1

Definition at line 349 of file commentscan.cpp.

int commentScanYYlineno

Definition at line 349 of file commentscan.cpp.

FILE * commentScanYYout = (FILE *) 0

Definition at line 343 of file commentscan.cpp.

FILE * commentScanYYout

Definition at line 343 of file commentscan.cpp.

char* commentScanYYtext

Definition at line 2338 of file commentscan.cpp.

char* commentScanYYtext

Definition at line 2338 of file commentscan.cpp.



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