Skip to main content

The vhdljjparser.cpp File Reference

Included Headers

#include <string> #include "qcstring.h" #include "containers.h" #include "vhdljjparser.h" #include "vhdldocgen.h" #include "message.h" #include "config.h" #include "doxygen.h" #include "util.h" #include "language.h" #include "commentscan.h" #include "definition.h" #include "searchindex.h" #include "outputlist.h" #include "arguments.h" #include "types.h" #include "growbuf.h" #include "markdown.h" #include "VhdlParserTokenManager.h" #include "VhdlParserErrorHandler.hpp" #include "regex.h"

Classes Index

structVHDLDocInfo
structPrivate

Functions Index

static boolisConstraintFile (const QCString &fileName, const QCString &ext)
const EntryList &getVhdlInstList ()
QCStringfilter2008VhdlComment (const QCString &s)

Variables Index

static EntryListg_instFiles
static intidCounter

Functions

filter2008VhdlComment()

QCString filter2008VhdlComment (const QCString & s)

Definition at line 868 of file vhdljjparser.cpp.

869{
870 if (s.length()<4) return s;
871 GrowBuf growBuf;
872 const char *p=s.data()+3; // skip /*!
873 char c='\0';
874 while (*p == ' ' || *p == '\t') p++;
875 while ((c=*p++))
876 {
877 growBuf.addChar(c);
878 if (c == '\n')
879 {
880 // special handling of space followed by * at beginning of line
881 while (*p == ' ' || *p == '\t') p++;
882 while (*p == '*') p++;
883 // special attention in case character at end is /
884 if (*p == '/') p++;
885 }
886 }
887 // special attention in case */ at end of last line
888 size_t len = growBuf.getPos();
889 if (len>=2 && growBuf.at(len-1) == '/' && growBuf.at(len-2) == '*')
890 {
891 len -= 2;
892 while (len>0 && growBuf.at(len-1) == '*') len--;
893 while (len>0 && ((c = growBuf.at(len-1)) == ' ' || c == '\t')) len--;
894 growBuf.setPos(len);
895 }
896 growBuf.addChar(0);
897 return growBuf.get();
898}

References GrowBuf::addChar, GrowBuf::at, QCString::data, GrowBuf::get, GrowBuf::getPos, QCString::length and GrowBuf::setPos.

getVhdlInstList()

const EntryList & getVhdlInstList ()

Definition at line 845 of file vhdljjparser.cpp.

846{
847 return g_instFiles;
848}

Reference g_instFiles.

Referenced by VhdlDocGen::computeVhdlComponentRelations.

isConstraintFile()

bool isConstraintFile (const QCString & fileName, const QCString & ext)
static

Definition at line 47 of file vhdljjparser.cpp.

47static bool isConstraintFile(const QCString &fileName,const QCString &ext)
48{
49 return fileName.right(ext.length())==ext;
50}

References QCString::length and QCString::right.

Referenced by VHDLOutlineParser::parseInput.

Variables

g_instFiles

EntryList g_instFiles
static

Definition at line 55 of file vhdljjparser.cpp.

Referenced by VHDLOutlineParser::addCompInst and getVhdlInstList.

idCounter

int idCounter
static

Definition at line 246 of file vhdljjparser.cpp.

246static int idCounter;

Referenced by VHDLOutlineParser::getNameID.


Generated via doxygen2docusaurus by Doxygen 1.14.0.