Functions
vhdlcode.h File Reference

Go to the source code of this file.

Functions

void parseVhdlCode (CodeOutputInterface &, const char *, const QCString &, bool, const char *, FileDef *fd, int startLine, int endLine, bool inlineFragment, MemberDef *memberDef, bool showLineNumbers, Definition *searchCtx, bool collectXRefs)
 
void resetVhdlCodeParserState ()
 
void codeFreeVhdlScanner ()
 

Function Documentation

void codeFreeVhdlScanner ( )

Definition at line 22070 of file vhdlcode.cpp.

22071 {
22072 #if defined(YY_FLEX_SUBMINOR_VERSION)
22073  if (g_lexInit)
22074  {
22076  }
22077 #endif
22078 }
static bool g_lexInit
Definition: vhdlcode.cpp:19193
int vhdlcodeYYlex_destroy(void)
Definition: vhdlcode.cpp:21892
void parseVhdlCode ( CodeOutputInterface ,
const char *  ,
const QCString ,
bool  ,
const char *  ,
FileDef fd,
int  startLine,
int  endLine,
bool  inlineFragment,
MemberDef memberDef,
bool  showLineNumbers,
Definition searchCtx,
bool  collectXRefs 
)

Definition at line 21974 of file vhdlcode.cpp.

21979 {
21980  //printf("***parseCode() exBlock=%d exName=%s fd=%p\n",exBlock,exName,fd);
21981  if (s.isEmpty()) return;
21982  printlex(vhdlcodeYY_flex_debug, TRUE, __FILE__, fd ? fd->fileName().data(): NULL);
21984  if (memberDef)
21985  {
21986  ClassDef *dd=memberDef->getClassDef();
21987  if (dd) g_CurrClass=dd->name();
21988  startLine--;
21989  }
21991  g_code = &od;
21992  g_inputString = s;
21993  g_inputPosition = 0;
21994  g_currentFontClass = 0;
21996  g_searchCtx = searchCtx;
21997 
21998  if (endLine!=-1)
21999  g_inputLines = endLine+1;
22000  else
22002 
22003  if (startLine!=-1)
22004  g_yyLineNr = startLine;
22005  else
22006  g_yyLineNr = 1;
22007 
22008 
22009  // g_theCallContext.clear();
22011  g_exampleName = exName;
22012  g_sourceFileDef = fd;
22013  bool cleanupSourceDef = FALSE;
22014  if (fd==0)
22015  {
22016  // create a dummy filedef for the example
22017  g_sourceFileDef = new FileDef("",exName);
22018  cleanupSourceDef = TRUE;
22019  }
22020  if (g_sourceFileDef)
22021  {
22022  setCurrentDoc("l00001");
22023  }
22024  g_currentDefinition = 0;
22025  g_currentMemberDef = 0;
22026  g_vhdlMember=0;
22027  if (!g_exampleName.isEmpty())
22028  {
22030  }
22031  g_includeCodeFragment = inlineFragment;
22032  if (!memberDef)
22033  {
22034  startCodeLine();
22035  }
22036  // g_type.resize(0);
22037  // g_name.resize(0);
22038  // g_args.resize(0);
22039  g_parmName.resize(0);
22040  g_parmType.resize(0);
22041  if(!g_lexInit)
22042  VhdlDocGen::init();
22043  if (memberDef)
22044  {
22045  setParameterList(memberDef);
22046  }
22047  /*int iLine=*/countLines();
22049  BEGIN( Bases );
22050  vhdlcodeYYlex();
22051  g_lexInit=TRUE;
22052  if (g_needsTermination)
22053  {
22054  endCodeLine();
22055  }
22056  if (fd)
22057  {
22059  }
22060  if (cleanupSourceDef)
22061  {
22062  // delete the temporary file definition used for this example
22063  delete g_sourceFileDef;
22064  g_sourceFileDef=0;
22065  }
22067  printlex(vhdlcodeYY_flex_debug, FALSE, __FILE__, fd ? fd->fileName().data(): NULL);
22068 }
static bool g_startCode
Definition: vhdlcode.cpp:19159
void vhdlcodeYYrestart(FILE *input_file)
Definition: vhdlcode.cpp:21412
static void init()
Definition: vhdldocgen.cpp:570
bool resize(uint newlen)
Definition: qcstring.h:225
static bool g_includeCodeFragment
Definition: vhdlcode.cpp:19190
bool isEmpty() const
Definition: qcstring.h:189
void printlex(int dbg, bool enter, const char *lexName, const char *fileName)
Definition: message.cpp:242
static void endCodeLine()
Definition: vhdlcode.cpp:19331
static QCString g_parmName
Definition: vhdlcode.cpp:19172
int vhdlcodeYY_flex_debug
Definition: vhdlcode.cpp:19083
static int g_yyLineNr
current line number
Definition: vhdlcode.cpp:19176
const bool FALSE
Definition: qglobal.h:370
static Definition * g_currentDefinition
Definition: vhdlcode.cpp:19188
static CodeOutputInterface * g_code
Definition: vhdlcode.cpp:19170
static MemberDef * g_currentMemberDef
Definition: vhdlcode.cpp:19189
static QCString className
Definition: declinfo.cpp:669
void clearTooltips()
Definition: tooltip.cpp:54
static QCString g_exampleFile
Definition: vhdlcode.cpp:19181
static QCString g_exampleName
Definition: vhdlcode.cpp:19180
static Definition * g_searchCtx
Definition: vhdlcode.cpp:19178
const QCString & name() const
Definition: definition.h:114
static void setParameterList(MemberDef *md)
Definition: vhdlcode.cpp:19522
static QCString g_CurrClass
Definition: vhdlcode.cpp:19161
static int g_inputLines
number of line in the code fragment
Definition: vhdlcode.cpp:19175
const char * data() const
Definition: qcstring.h:207
int vhdlcodeYYlex(void)
FILE * vhdlcodeYYin
Definition: vhdlcode.cpp:359
ClassDef * getClassDef() const
Definition: memberdef.cpp:4070
static int g_inputPosition
read offset during parsing
Definition: vhdlcode.cpp:19174
static MemberDef * g_vhdlMember
Definition: vhdlcode.cpp:19165
static const char * g_currentFontClass
Definition: vhdlcode.cpp:19191
static QCString g_classScope
Definition: vhdlcode.cpp:19183
#define BEGIN
Definition: vhdlcode.cpp:144
static FileDef * g_sourceFileDef
Definition: vhdlcode.cpp:19187
void writeTooltips(CodeOutputInterface &ol)
Definition: tooltip.cpp:93
#define Bases
Definition: vhdlcode.cpp:19852
static void startCodeLine()
Definition: vhdlcode.cpp:19271
static TooltipManager * instance()
Definition: tooltip.cpp:45
QCString fileName() const
Definition: filedef.h:81
QCString convertNameToFile(const char *name, bool allowDots, bool allowUnderscore)
Definition: util.cpp:5354
void resetVhdlCodeParserState()
Definition: vhdlcode.cpp:21968
static bool g_lexInit
Definition: vhdlcode.cpp:19193
static QCString g_parmType
Definition: vhdlcode.cpp:19171
static bool g_needsTermination
Definition: vhdlcode.cpp:19177
static void setCurrentDoc(const QCString &anchor)
Definition: vhdlcode.cpp:19206
static int countLines()
Definition: vhdlcode.cpp:19646
static QCString * s
Definition: config.cpp:1042
const bool TRUE
Definition: qglobal.h:371
static const char * g_inputString
the code fragment as text
Definition: vhdlcode.cpp:19173
void resetVhdlCodeParserState ( )

Definition at line 21968 of file vhdlcode.cpp.

21969 {
21970  g_vhdlKeyDict.setAutoDelete(TRUE);
21971  g_vhdlKeyDict.clear();
21972 }
static QDict< QCString > g_vhdlKeyDict
Definition: vhdlcode.cpp:19162
const bool TRUE
Definition: qglobal.h:371