|
Doxygen
|
#include <stdint.h>#include <unordered_set>#include <string>#include <stdio.h>#include <assert.h>#include <ctype.h>#include "vhdlcode.h"#include "entry.h"#include "doxygen.h"#include "message.h"#include "outputlist.h"#include "util.h"#include "stringutil.h"#include "membername.h"#include "searchindex.h"#include "vhdldocgen.h"#include "arguments.h"#include "config.h"#include "classdef.h"#include "filedef.h"#include "tooltip.h"#include "regex.h"#include "debug.h"#include "doxygen_lex.h"#include "vhdlcode.l.h"Go to the source code of this file.
Classes | |
| struct | vhdlcodeYY_state |
| struct | VHDLCodeParser::Private |
Macros | |
| #define | YY_TYPEDEF_YY_SCANNER_T |
| #define | YY_NO_INPUT 1 |
| #define | YY_NO_UNISTD_H 1 |
| #define | DBG_CTX(x) |
| #define | YY_INPUT(buf, result, max_size) |
Typedefs | |
| typedef yyguts_t * | yyscan_t |
Functions | |
| static void | writeFont (yyscan_t yyscanner, const char *s, const DString &text, bool specialComment=false) |
| static void | generateMemLink (yyscan_t yyscanner, OutputCodeList &ol, DString &clName, DString &memberName) |
| static bool | writeColoredWord (yyscan_t yyscanner, DString &word) |
| static void | generateClassOrGlobalLink (yyscan_t yyscanner, OutputCodeList &ol, const DString &clName, bool typeOnly=false, const DString &curr_class=DString()) |
| static void | setCurrentDoc (yyscan_t yyscanner, const DString &anchor) |
| static bool | checkVhdlString (yyscan_t yyscanner, DString &name) |
| static void | addToSearchIndex (yyscan_t yyscanner, const DString &text) |
| static void | startCodeLine (yyscan_t yyscanner) |
| static void | endCodeLine (yyscan_t yyscanner) |
| static void | nextCodeLine (yyscan_t yyscanner) |
| static void | writeWord (yyscan_t yyscanner, const DString &word, const DString &curr_class=DString(), bool classLink=false) |
| static void | codifyLines (yyscan_t yyscanner, const DString &text, const DString &cl=DString(), bool classlink=false, bool comment=false) |
| static void | writeMultiLineCodeLink (yyscan_t yyscanner, OutputCodeList &ol, const Definition *d, const DString &text) |
| static void | generateFuncLink (yyscan_t yyscanner, OutputCodeList &ol, const MemberDef *mdef) |
| static int | countLines (yyscan_t yyscanner) |
| static void | startFontClass (yyscan_t yyscanner, const char *s, bool specialComment=false) |
| static void | endFontClass (yyscan_t yyscanner, bool specialComment=false) |
| static void | appStringLower (DString &qcs, const char *text) |
| static void | codifyMapLines (yyscan_t yyscanner, const DString &text) |
| static void | writeFuncProto (yyscan_t yyscanner) |
| static void | writeProcessProto (yyscan_t yyscanner) |
| static int | yyread (yyscan_t yyscanner, char *buf, int max_size) |
| static const char * | stateToString (int state) |
| static const char * | getLexerFILE () |
| int | yylex (yyscan_t yyscanner) |
| static void | codeFolding (yyscan_t yyscanner, const Definition *d) |
| #define DBG_CTX | ( | x | ) |
Definition at line 68 of file vhdlcode.l.
| #define YY_INPUT | ( | buf, | |
| result, | |||
| max_size ) |
Definition at line 152 of file vhdlcode.l.
| #define YY_NO_INPUT 1 |
Definition at line 63 of file vhdlcode.l.
| #define YY_NO_UNISTD_H 1 |
Definition at line 64 of file vhdlcode.l.
| #define YY_TYPEDEF_YY_SCANNER_T |
Definition at line 28 of file vhdlcode.l.
| typedef yyguts_t* yyscan_t |
Definition at line 30 of file vhdlcode.l.
Definition at line 1009 of file vhdlcode.l.
References SearchIndexIntf::addWord(), and Doxygen::searchIndex.
Referenced by generateClassOrGlobalLink(), generateFuncLink(), and generateMemLink().
|
static |
Definition at line 1505 of file vhdlcode.l.
References DString::append(), DString::clear(), and DString::stripWhiteSpace().
Definition at line 971 of file vhdlcode.l.
References DString::at(), DString::empty(), endFontClass(), VhdlDocGen::isNumber(), DString::length(), DString::mid(), split(), startFontClass(), and DString::str().
Referenced by writeWord().
|
static |
Definition at line 1017 of file vhdlcode.l.
References Config_getBool, Definition::getEndBodyLine(), and Definition::getStartDefLine().
Referenced by startCodeLine().
|
static |
write a code fragment 'text' that may span multiple lines, inserting line numbers for each line.
Definition at line 1243 of file vhdlcode.l.
References DString::data(), DString::empty(), DString::left(), nextCodeLine(), writeFont(), and writeWord().
Referenced by codifyMapLines(), generateClassOrGlobalLink(), generateFuncLink(), generateMemLink(), writeFuncProto(), and writeProcessProto().
Definition at line 1513 of file vhdlcode.l.
References DString::clear(), codifyLines(), DString::data(), DString::empty(), DString::fill(), generateClassOrGlobalLink(), generateMemLink(), and DString::lower().
|
static |
counts the number of lines in the input
Definition at line 1438 of file vhdlcode.l.
Referenced by VHDLCodeParser::parseCode().
|
static |
Definition at line 1123 of file vhdlcode.l.
References endFontClass().
Referenced by nextCodeLine(), and VHDLCodeParser::parseCode().
|
static |
Definition at line 1457 of file vhdlcode.l.
Referenced by checkVhdlString(), endCodeLine(), startFontClass(), writeFont(), and writeWord().
|
static |
Definition at line 1382 of file vhdlcode.l.
References addToSearchIndex(), codifyLines(), Definition::definitionType(), DString::empty(), getClass(), Definition::getOuterScope(), Definition::isLinkable(), DString::length(), DString::right(), DString::stripPrefix(), toClassDef(), Definition::TypeClass, and writeMultiLineCodeLink().
Referenced by codifyMapLines(), and writeWord().
|
static |
writes a link to a function or procedure
Definition at line 1329 of file vhdlcode.l.
References addToSearchIndex(), codifyLines(), Definition::isLinkable(), Definition::name(), and writeMultiLineCodeLink().
Referenced by writeFuncProto().
|
static |
Definition at line 1345 of file vhdlcode.l.
References addToSearchIndex(), codifyLines(), DString::empty(), VhdlDocGen::findMember(), VhdlDocGen::getClass(), Definition::isLinkable(), VhdlDocGen::PACKBODYCLASS, ClassDef::protection(), DString::stripPrefix(), and writeMultiLineCodeLink().
Referenced by codifyMapLines(), and writeWord().
|
inlinestatic |
Definition at line 155 of file vhdlcode.l.
|
static |
Definition at line 1131 of file vhdlcode.l.
References endCodeLine(), and startCodeLine().
Referenced by codifyLines(), and writeMultiLineCodeLink().
Definition at line 955 of file vhdlcode.l.
References Doxygen::searchIndex, and SearchIndexIntf::setCurrentDoc().
Referenced by VHDLCodeParser::parseCode(), and startCodeLine().
|
static |
start a new line of code, inserting a line number if yyextra->sourceFileDef is true. If a definition starts at the current line, then the line number is linked to the documentation of that definition.
Definition at line 1055 of file vhdlcode.l.
References codeFolding(), VhdlDocGen::findMember(), Definition::getOutputFileBase(), Definition::getReference(), Definition::isLinkableInProject(), setCurrentDoc(), and DString::sprintf().
Referenced by nextCodeLine(), and VHDLCodeParser::parseCode().
|
static |
Definition at line 1474 of file vhdlcode.l.
References dstrcmp(), and endFontClass().
Referenced by checkVhdlString(), writeFont(), and writeWord().
|
static |
Definition at line 1617 of file vhdlcode.l.
References VhdlDocGen::findKeyWord(), DString::lower(), and writeFont().
Referenced by writeWord().
|
static |
Definition at line 1493 of file vhdlcode.l.
References DString::empty(), endFontClass(), and startFontClass().
Referenced by codifyLines(), and writeColoredWord().
|
static |
Definition at line 1571 of file vhdlcode.l.
References DString::clear(), codifyLines(), DString::empty(), VhdlDocGen::findFunction(), generateFuncLink(), VhdlDocGen::parseFuncProto(), split(), DString::str(), and DString::stripPrefix().
|
static |
writes a link to a fragment text that may span multiple lines, inserting line numbers for each line. If text contains newlines, the link will be split into multiple links with the same destination, one for each line.
Definition at line 1289 of file vhdlcode.l.
References Definition::anchor(), Definition::briefDescriptionAsTooltip(), Definition::codeSymbolType(), Config_getBool, DString::data(), DString::empty(), Definition::getOutputFileBase(), Definition::getReference(), nextCodeLine(), and OutputCodeList::writeCodeLink().
Referenced by generateClassOrGlobalLink(), generateFuncLink(), and generateMemLink().
|
static |
Definition at line 1608 of file vhdlcode.l.
References codifyLines().
|
static |
writes a word to the output. If curr_class is defined, the word belongs to a class and will be linked.
Definition at line 1151 of file vhdlcode.l.
References DString::at(), checkVhdlString(), DString::clear(), DString::empty(), endFontClass(), generateClassOrGlobalLink(), generateMemLink(), VhdlDocGen::isNumber(), DString::length(), startFontClass(), DString::str(), and writeColoredWord().
Referenced by codifyLines().
| int yylex | ( | yyscan_t | yyscanner | ) |
Definition at line 220 of file vhdlcode.l.
|
static |
Definition at line 940 of file vhdlcode.l.