|
Doxygen
|
#include <stdint.h>#include "code.h"#include <algorithm>#include <cctype>#include <cstdint>#include <memory>#include <mutex>#include <stack>#include <string>#include <unordered_map>#include <unordered_set>#include <utility>#include <vector>#include "arguments.h"#include "classlist.h"#include "conceptdef.h"#include "config.h"#include "debug.h"#include "dir.h"#include "doxygen.h"#include "entry.h"#include "filedef.h"#include "filename.h"#include "groupdef.h"#include "membername.h"#include "message.h"#include "moduledef.h"#include "namespacedef.h"#include "outputlist.h"#include "scopedtypevariant.h"#include "searchindex.h"#include "symbolresolver.h"#include "tooltip.h"#include "util.h"#include "doxygen_lex.h"#include "code.l.h"Go to the source code of this file.
Classes | |
| struct | ObjCCallCtx |
| struct | codeYY_state |
| struct | CCodeParser::Private |
Macros | |
| #define | YY_TYPEDEF_YY_SCANNER_T |
| #define | yyguts_t codeYYguts_t |
| #define | DBG_CTX(x) |
| #define | YY_NO_UNISTD_H 1 |
| #define | CLASSBLOCK 1 |
| #define | SCOPEBLOCK 2 |
| #define | INNERBLOCK 3 |
| #define | YY_INPUT(buf, result, max_size) |
Typedefs | |
| typedef yyguts_t * | yyscan_t |
Functions | |
| static bool | isCastKeyword (const char *s) |
| static const char * | stateToString (int state) |
| static void | saveObjCContext (yyscan_t yyscanner) |
| static void | restoreObjCContext (yyscan_t yyscanner) |
| static void | pushScope (yyscan_t yyscanner, const DString &s) |
| static void | popScope (yyscan_t yyscanner) |
| static void | setCurrentDoc (yyscan_t yyscanner, const DString &anchor) |
| static void | addToSearchIndex (yyscan_t yyscanner, const DString &text) |
| static void | setClassScope (yyscan_t yyscanner, const DString &name) |
| static void | startCodeLine (yyscan_t yyscanner) |
| static void | endCodeLine (yyscan_t yyscanner) |
| static void | nextCodeLine (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 | codifyLines (yyscan_t yyscanner, const DString &text) |
| static void | incrementFlowKeyWordCount (yyscan_t yyscanner) |
| static void | writeMultiLineCodeLink (yyscan_t yyscanner, OutputCodeList &ol, const Definition *d, const DString &text) |
| static void | addType (yyscan_t yyscanner) |
| static void | addParmType (yyscan_t yyscanner) |
| static void | addUsingDirective (yyscan_t yyscanner, const DString &name) |
| static void | setParameterList (yyscan_t yyscanner, const MemberDef *md) |
| static const ClassDef * | stripClassName (yyscan_t yyscanner, const DString &s, const Definition *d) |
| static const MemberDef * | setCallContextForVar (yyscan_t yyscanner, const DString &name) |
| static void | updateCallContextForSmartPointer (yyscan_t yyscanner) |
| static bool | getLinkInScope (yyscan_t yyscanner, const DString &c, const DString &m, const DString &memberText, OutputCodeList &ol, const DString &text, bool varOnly=false) |
| static bool | getLink (yyscan_t yyscanner, const DString &className, const DString &memberName, OutputCodeList &ol, const DString &text=DString(), bool varOnly=false) |
| static void | generateClassOrGlobalLink (yyscan_t yyscanner, OutputCodeList &ol, const DString &clName, bool typeOnly=false, bool varOnly=false) |
| static bool | generateClassMemberLink (yyscan_t yyscanner, OutputCodeList &ol, const MemberDef *xmd, const DString &memName) |
| static bool | generateClassMemberLink (yyscan_t yyscanner, OutputCodeList &ol, const Definition *def, const DString &memName) |
| static void | generateMemberLink (yyscan_t yyscanner, OutputCodeList &ol, const DString &varName, const DString &memName) |
| static void | generatePHPVariableLink (yyscan_t yyscanner, OutputCodeList &ol, const char *varName) |
| static void | generateFunctionLink (yyscan_t yyscanner, OutputCodeList &ol, const DString &funcName) |
| static int | countLines (yyscan_t yyscanner) |
| static void | writeObjCMethodCall (yyscan_t yyscanner, ObjCCallCtx *ctx) |
| static DString | escapeName (yyscan_t yyscanner, const DString &s) |
| static DString | escapeObject (yyscan_t yyscanner, const DString &s) |
| static DString | escapeWord (yyscan_t yyscanner, const DString &s) |
| static DString | escapeComment (yyscan_t yyscanner, const DString &s) |
| static bool | skipLanguageSpecificKeyword (yyscan_t yyscanner, const char *kw) |
| static int | yyread (yyscan_t yyscanner, char *buf, int max_size) |
| static void | addVariable (yyscan_t yyscanner, DString type, DString name) |
| static bool | startsWithKeyword (const DString &str, const DString &kw) |
| static void | endCodeFold (yyscan_t yyscanner) |
| static const char * | getLexerFILE () |
| int | yylex (yyscan_t yyscanner) |
| static void | codeFolding (yyscan_t yyscanner, const Definition *d) |
| #define CLASSBLOCK 1 |
Definition at line 75 of file code.l.
Referenced by setCallContextForVar().
| #define DBG_CTX | ( | x | ) |
Definition at line 71 of file code.l.
Referenced by addVariable(), codifyLines(), endCodeLine(), endScope(), findMemberLink(), generateClassMemberLink(), generateClassMemberLink(), generateClassOrGlobalLink(), generateClassOrGlobalLink(), generateFunctionLink(), generateFunctionLink(), generateMemberLink(), generatePHPVariableLink(), getLink(), getLinkInScope(), incLineNr(), lineCount(), CCodeParser::parseCode(), popBuffer(), popScope(), pushBuffer(), pushScope(), CCodeParser::resetCodeParserState(), restoreObjCContext(), saveObjCContext(), setCallContextForVar(), setClassScope(), startCodeLine(), startScope(), stripClassName(), writeMultiLineCodeLink(), and writeObjCMethodCall().
| #define YY_INPUT | ( | buf, | |
| result, | |||
| max_size ) |
| #define yyguts_t codeYYguts_t |
Definition at line 23 of file code.l.
Referenced by addAnchor(), addAttribute(), addCharacters(), addCite(), addCurrentEntry(), addElement(), addEntry(), addFormula(), addFrom(), addInterface(), addKnRArgInfo(), addLocalVar(), addModule(), addOutput(), addOutput(), addOutput(), addParmType(), addRequirementId(), addSection(), addSubprogram(), addToString(), addType(), addType(), addType(), addTypeName(), addUse(), addUsingDirective(), addVariable(), addVariable(), addXRefItem(), adjustScopesAndSuites(), checkAndUpdatePath(), checkContLines(), checkForKnRstyleC(), checkFormula(), checkStructuralIndicator(), checkVhdlString(), DocTokenizer::cleanup(), clearCommentStack(), CommentScanner::close(), codeFolding(), codeFolding(), codeFolding(), codeFolding(), codify(), codify(), codifyLines(), codifyLines(), codifyLines(), codifyLines(), codifyLines(), codifyLines(), codifyLines(), codifyMapLines(), convertCppComments(), copyToOutput(), countLines(), countLines(), countLines(), countLines(), countLines(), countLines(), countLines(), countLines(), determineBlockName(), docVariable(), DocTokenizer::endAutoList(), endBrief(), endCodeFold(), endCodeLine(), endCodeLine(), endCodeLine(), endCodeLine(), endCodeLine(), endCodeLine(), endCodeLine(), endCondSection(), endFontClass(), endFontClass(), endFontClass(), endFontClass(), endFontClass(), endFontClass(), endFontClass(), endOfDef(), endScope(), endScope(), endVerbatimBlock(), CommentScanner::enterCompound(), CommentScanner::enterFile(), escapeComment(), escapeName(), escapeObject(), escapeWord(), expandExpression(), expandMacro(), expandStandardMacro(), extraSpacing(), XMLParser::fileName(), findMemberLink(), findMemberLink(), findPackageScopeFromPath(), DocTokenizer::findSections(), generateClassMemberLink(), generateClassMemberLink(), generateClassOrGlobalLink(), generateClassOrGlobalLink(), generateFunctionLink(), generateFunctionLink(), generateLink(), generateMemberLink(), generatePHPVariableLink(), DocTokenizer::getFileName(), getFortranDefs(), DocTokenizer::getLineNr(), getLink(), getLink(), getLink(), getLinkInScope(), getLinkInScope(), getParameter(), handleAddIndex(), handleAddToGroup(), handleAnchor(), handleBug(), handleCallergraph(), handleCallgraph(), handleCategory(), handleCCode(), handleCCode(), handleCite(), handleClass(), handleCollaborationgraph(), handleCommentBlock(), handleCommentBlock(), handleCommentBlock(), handleConcept(), handleCondSectionId(), handleCopyBrief(), handleCopyDetails(), handleCopyDoc(), handleDef(), handleDefGroup(), handleDeprecated(), handleDetails(), handleDir(), handleDirectoryGraph(), handleElse(), handleElseIf(), handleEndIf(), handleEndParBlock(), handleEnum(), handleExample(), handleExtends(), handleField(), handleFile(), handleFileInfoResult(), handleFn(), handleFormatBlock(), handleGroupgraph(), handleGuard(), handleHeaderFile(), handleHideCallergraph(), handleHideCallgraph(), handleHideCollaborationgraph(), handleHideDirectoryGraph(), handleHideEnumValues(), handleHideGroupgraph(), handleHideIncludedBygraph(), handleHideIncludegraph(), handleHideInheritanceGraph(), handleHideInitializer(), handleHideInlineSource(), handleHideReferencedByRelation(), handleHideReferencesRelation(), handleHtmlTag(), handleIdlException(), handleIf(), handleIFile(), handleIfNot(), handleILine(), handleImage(), handleIncludedBygraph(), handleIncludegraph(), handleIngroup(), handleInherit(), handleInheritanceGraph(), handleInterface(), handleInternal(), handleIPrefix(), handleIRaise(), handleLineInfo(), handleMainpage(), handleMemberOf(), handleMermaidFile(), handleModule(), handleName(), handleNamespace(), handleNoop(), handleNoSubGrouping(), handleOverload(), handlePackage(), handlePage(), handleParam(), handleParamComment(), handleParametersCommentBlocks(), handleParBlock(), handlePrivate(), handlePrivateSection(), handleProtected(), handleProtectedSection(), handleProtocol(), handlePublic(), handlePublicSection(), handlePure(), handleQualifier(), handleRaiseWarning(), handleRecord(), handleReferencedByRelation(), handleReferencesRelation(), handleRefItem(), handleRelated(), handleRelatedAlso(), handleRequirement(), handleRetval(), handleSatisfies(), handleSection(), handleShowEnumValues(), handleShowInitializer(), handleShowInlineSource(), handleStatic(), handleStruct(), handleSubpage(), handleTest(), handleToc(), handleTodo(), handleUnion(), handleVerifies(), handleWeakGroup(), handleXRefItem(), incLineNr(), incrementFlowKeyWordCount(), incrementFlowKeyWordCount(), DocTokenizer::init(), initElement(), initEntry(), initEntry(), initEntry(), CommentScanner::initGroupInfo(), initMethodProtection(), initParser(), initParser(), initParser(), initParser(), initSpecialBlock(), initTriDoubleQuoteBlock(), initTriSingleQuoteBlock(), insertCommentStart(), CCodeParser::insideCodeLine(), CommentScanner::leaveCompound(), CommentScanner::leaveFile(), lineCount(), lineCount(), lineCount(), lineCount(), XMLParser::lineNr(), locatePrepassComment(), makeStructuralIndicator(), newEntry(), newEntry(), newFunction(), newLine(), newVariable(), nextCodeLine(), nextCodeLine(), nextCodeLine(), nextCodeLine(), nextCodeLine(), nextCodeLine(), nextCodeLine(), CommentScanner::open(), ConstExpressionParser::parse(), XMLParser::parse(), CCodeParser::parseCode(), FortranCodeParser::parseCode(), LexCodeParser::parseCode(), PythonCodeParser::parseCode(), SQLCodeParser::parseCode(), VHDLCodeParser::parseCode(), XMLCodeParser::parseCode(), CommentScanner::parseCommentBlock(), parseCompounds(), parseCompounds(), parseConcepts(), parseFuncDecl(), parseIncludeOptions(), COutlineParser::parseInput(), FortranOutlineParser::parseInput(), LexOutlineParser::parseInput(), PythonOutlineParser::parseInput(), parseMain(), parseMain(), parseMain(), parseMain(), FortranOutlineParser::parsePrototype(), parsePrototype(), parsePrototype(), pop_state(), pop_state(), pop_state(), popBlockState(), popBuffer(), DocTokenizer::popContext(), popScope(), DocTokenizer::popState(), prependScope(), Preprocessor::processFile(), processSection(), DocTokenizer::pushBackHtmlTag(), pushBlockState(), pushBuffer(), DocTokenizer::pushContext(), pushScope(), DocTokenizer::pushState(), readIncludeFile(), readIncludeFile(), replaceAliases(), replaceComment(), replaceCommentMarker(), reportError(), CCodeParser::resetCodeParserState(), FortranCodeParser::resetCodeParserState(), LexCodeParser::resetCodeParserState(), PythonCodeParser::resetCodeParserState(), SQLCodeParser::resetCodeParserState(), XMLCodeParser::resetCodeParserState(), DocTokenizer::resetToken(), resolveModuleProcedures(), restoreObjCContext(), returnCharToStream(), saveObjCContext(), scanner_abort(), searchFoundClass(), searchFoundDef(), searchFoundTypeAlias(), setCallContextForVar(), setClassScope(), setContext(), setCurrentDoc(), setCurrentDoc(), setCurrentDoc(), setCurrentDoc(), setCurrentDoc(), setCurrentDoc(), setCurrentDoc(), DocTokenizer::setFileName(), CCodeParser::setInsideCodeLine(), DocTokenizer::setInsidePre(), setJavaProtection(), DocTokenizer::setLineNr(), setOutput(), setParameterList(), setProtection(), DocTokenizer::setStateAnchor(), DocTokenizer::setStateBlock(), DocTokenizer::setStateCite(), DocTokenizer::setStateCode(), DocTokenizer::setStateDbOnly(), DocTokenizer::setStateDot(), DocTokenizer::setStateDoxyConfig(), DocTokenizer::setStateEmoji(), DocTokenizer::setStateFile(), DocTokenizer::setStateHtmlOnly(), DocTokenizer::setStateICode(), DocTokenizer::setStateIFile(), DocTokenizer::setStateILine(), DocTokenizer::setStateILiteral(), DocTokenizer::setStateILiteralOpt(), DocTokenizer::setStateInternalRef(), DocTokenizer::setStateIVerbatim(), DocTokenizer::setStateLatexOnly(), DocTokenizer::setStateLink(), DocTokenizer::setStateManOnly(), DocTokenizer::setStateMermaid(), DocTokenizer::setStateMermaidOpt(), DocTokenizer::setStateMsc(), DocTokenizer::setStateOptions(), DocTokenizer::setStatePara(), DocTokenizer::setStateParam(), DocTokenizer::setStatePattern(), DocTokenizer::setStatePlantUML(), DocTokenizer::setStatePlantUMLOpt(), DocTokenizer::setStatePrefix(), DocTokenizer::setStateQuotedString(), DocTokenizer::setStateRef(), DocTokenizer::setStateRtfOnly(), DocTokenizer::setStateSetScope(), DocTokenizer::setStateShowDate(), DocTokenizer::setStateSkipTitle(), DocTokenizer::setStateSnippet(), DocTokenizer::setStateText(), DocTokenizer::setStateTitle(), DocTokenizer::setStateTitleAttrValue(), DocTokenizer::setStateVerbatim(), DocTokenizer::setStateXmlCode(), DocTokenizer::setStateXmlOnly(), DocTokenizer::setStateXRefItem(), skipLanguageSpecificKeyword(), splitKnRArg(), DocTokenizer::startAutoList(), startCodeLine(), startCodeLine(), startCodeLine(), startCodeLine(), startCodeLine(), startCodeLine(), startCodeLine(), startCommentBlock(), startCommentBlock(), startCommentBlock(), startCondSection(), startFontClass(), startFontClass(), startFontClass(), startFontClass(), startFontClass(), startFontClass(), startFontClass(), startScope(), startScope(), startVerbatimBlock(), storeClangId(), stringToArgumentList(), stripClassName(), stripClassName(), subrHandleCommentBlock(), subrHandleCommentBlockResult(), DocTokenizer::token(), truncatePrepass(), DocTokenizer::unputString(), updateCallContextForSmartPointer(), updateVariablePrepassComment(), writeFont(), writeFuncProto(), writeMultiLineCodeLink(), writeMultiLineCodeLink(), writeMultiLineCodeLink(), writeMultiLineCodeLink(), writeObjCMethodCall(), writeProcessProto(), writeWord(), yyread(), yyread(), yyread(), yyread(), yyread(), yyread(), yyread(), yyread(), yyread(), yyread(), yyread(), yyread(), yyread(), yyread(), yyread(), yyread(), yyread(), and yyread().
|
static |
Definition at line 2303 of file code.l.
References SearchIndexIntf::addWord(), and Doxygen::searchIndex.
Referenced by generateClassMemberLink(), generateClassMemberLink(), generateClassOrGlobalLink(), generateMemberLink(), and getLinkInScope().
|
static |
Definition at line 2598 of file code.l.
References yyguts_t.
Definition at line 2619 of file code.l.
References LinkedMap< T, Hash, KeyEqual, Map >::find(), Doxygen::namespaceLinkedMap, and yyguts_t.
Definition at line 2188 of file code.l.
References addVariable(), DBG_CTX, DString::empty(), DString::npos, qPrint(), DString::simplifyWhiteSpace(), DString::str(), DString::stripPrefix(), substitute(), and yyguts_t.
Referenced by addVariable(), and setParameterList().
|
static |
Definition at line 2361 of file code.l.
References Config_getBool, Definition::definitionType(), endCodeFold(), Definition::getEndBodyLine(), Definition::getStartDefLine(), MemberDef::isCallable(), MemberDef::isDefine(), toMemberDef(), Definition::TypeClass, Definition::TypeMember, and yyguts_t.
Referenced by startCodeLine().
write a code fragment 'text' that may span multiple lines, inserting line numbers for each line.
Definition at line 2515 of file code.l.
References DString::data(), DBG_CTX, DString::empty(), nextCodeLine(), qPrint(), and yyguts_t.
Referenced by generateClassOrGlobalLink(), generateMemberLink(), generatePHPVariableLink(), and writeObjCMethodCall().
|
static |
counts the number of lines in the input
Definition at line 3474 of file code.l.
References yyguts_t.
Referenced by CCodeParser::parseCode().
|
static |
Definition at line 2340 of file code.l.
References Definition::getEndBodyLine(), and yyguts_t.
Referenced by codeFolding().
|
static |
Definition at line 2488 of file code.l.
References DBG_CTX, endFontClass(), and yyguts_t.
Referenced by nextCodeLine(), and CCodeParser::parseCode().
|
static |
Definition at line 3492 of file code.l.
References yyguts_t.
Referenced by endCodeLine(), startFontClass(), and writeObjCMethodCall().
Definition at line 3923 of file code.l.
References DString::sprintf(), and yyguts_t.
Definition at line 3893 of file code.l.
References DString::sprintf(), and yyguts_t.
Definition at line 3903 of file code.l.
References DString::sprintf(), and yyguts_t.
Definition at line 3913 of file code.l.
References DString::sprintf(), and yyguts_t.
|
static |
Definition at line 3208 of file code.l.
References addToSearchIndex(), DBG_CTX, Definition::definitionType(), Definition::findInnerCompound(), generateClassMemberLink(), ClassDef::getMemberByName(), Definition::name(), qPrint(), toClassDef(), toNamespaceDef(), Definition::TypeClass, Definition::TypeNamespace, writeMultiLineCodeLink(), and yyguts_t.
|
static |
Definition at line 3146 of file code.l.
References addDocCrossReference(), MemberDefMutable::addExample(), Doxygen::addExampleMutex, addToSearchIndex(), MemberDef::argsString(), DBG_CTX, MemberDef::getClassDef(), MemberDef::getFileDef(), MemberDef::getGroupDef(), Definition::getOuterScope(), Doxygen::globalScope, Definition::isLinkable(), Definition::name(), qPrint(), removeAnonymousScopes(), DString::sprintf(), stripClassName(), toMemberDefMutable(), MemberDef::typeString(), OutputCodeList::writeCodeAnchor(), writeMultiLineCodeLink(), and yyguts_t.
Referenced by generateClassMemberLink(), generateFunctionLink(), and generateMemberLink().
|
static |
Definition at line 2917 of file code.l.
References addDocCrossReference(), ClassDefMutable::addExample(), MemberDefMutable::addExample(), Doxygen::addExampleMutex, addToSearchIndex(), codifyLines(), DBG_CTX, Definition::definitionType(), DString::empty(), DString::find(), ClassDef::getFileDef(), MemberDef::getFileDef(), MemberDef::getGroupDef(), getLink(), Definition::getOuterScope(), getResolvedConcept(), getResolvedNamespace(), FileDef::getUsedNamespaces(), Doxygen::globalScope, ScopedTypeVariant::isDummy(), Definition::isLinkable(), MemberDef::isVariable(), DString::left(), DString::mid(), Definition::name(), ScopedTypeVariant::name(), DString::npos, parent(), qPrint(), setCallContextForVar(), DString::sprintf(), substitute(), toClassDef(), toClassDefMutable(), toMemberDef(), toMemberDefMutable(), Definition::TypeClass, Definition::TypeMember, OutputCodeList::writeCodeAnchor(), writeMultiLineCodeLink(), and yyguts_t.
Referenced by generateFunctionLink().
|
static |
Definition at line 3356 of file code.l.
References LocalDef::baseClasses(), DBG_CTX, DString::empty(), DString::find(), generateClassMemberLink(), generateClassOrGlobalLink(), getLink(), DString::left(), ScopedTypeVariant::localDef(), DString::mid(), DString::npos, qPrint(), removeRedundantWhiteSpace(), DString::rfind(), DString::startsWith(), DString::str(), DString::stripWhiteSpace(), and yyguts_t.
|
static |
Definition at line 3251 of file code.l.
References addToSearchIndex(), LocalDef::baseClasses(), codifyLines(), DBG_CTX, DString::empty(), LinkedMap< T, Hash, KeyEqual, Map >::find(), generateClassMemberLink(), getClass(), getLink(), ScopedTypeVariant::isDummy(), Definition::isLinkable(), DString::left(), ScopedTypeVariant::localDef(), Doxygen::memberNameLinkedMap, DString::mid(), ScopedTypeVariant::name(), DString::npos, qPrint(), DString::rfind(), stripClassName(), and yyguts_t.
|
static |
|
inlinestatic |
|
static |
Definition at line 2892 of file code.l.
References DBG_CTX, DString::empty(), getLinkInScope(), DString::prepend(), qPrint(), removeRedundantWhiteSpace(), and yyguts_t.
Referenced by generateClassOrGlobalLink(), generateFunctionLink(), generateMemberLink(), and generatePHPVariableLink().
|
static |
Definition at line 2808 of file code.l.
References addDocCrossReference(), MemberDefMutable::addExample(), Doxygen::addExampleMutex, addToSearchIndex(), LocalDef::baseClasses(), GetDefInput::currentFile, DBG_CTX, DString::empty(), DString::find(), GetDefResult::found, getDefs(), MemberDef::getFileDef(), MemberDef::getGroupDef(), Definition::getOuterScope(), Definition::getOutputFileBase(), Definition::getReference(), Doxygen::globalScope, GetDefInput::insideCode, Definition::isLinkable(), MemberDef::isVariable(), ScopedTypeVariant::localDef(), GetDefResult::md, DString::mid(), Definition::name(), qPrint(), Definition::qualifiedName(), MemberDef::resolveAlias(), GetDefInput::scopeName, DString::sprintf(), DString::str(), stripClassName(), toMemberDefMutable(), MemberDef::typeString(), OutputCodeList::writeCodeAnchor(), writeMultiLineCodeLink(), and yyguts_t.
Referenced by getLink().
|
static |
Definition at line 2542 of file code.l.
References Doxygen::countFlowKeywordsMutex, MemberDefMutable::incrementFlowKeyWordCount(), toMemberDefMutable(), and yyguts_t.
|
static |
Definition at line 3974 of file code.l.
References DString::find(), DString::left(), DString::npos, and DString::stripWhiteSpace().
|
static |
Definition at line 2497 of file code.l.
References endCodeLine(), startCodeLine(), and yyguts_t.
Referenced by codifyLines(), and writeMultiLineCodeLink().
|
static |
remove the top class/namespace name from the scope
Definition at line 2271 of file code.l.
References DBG_CTX, qPrint(), and yyguts_t.
Referenced by setClassScope().
add class/namespace name s to the scope
Definition at line 2253 of file code.l.
References DBG_CTX, leftScopeMatch(), qPrint(), and yyguts_t.
Referenced by setClassScope().
|
static |
Definition at line 4030 of file code.l.
|
static |
Definition at line 3999 of file code.l.
References DBG_CTX, qPrint(), DString::sprintf(), and yyguts_t.
Definition at line 2681 of file code.l.
References CLASSBLOCK, DBG_CTX, DString::empty(), LinkedMap< T, Hash, KeyEqual, Map >::find(), MemberName::front(), Doxygen::functionNameLinkedMap, getClass(), ClassDef::getMemberByName(), NamespaceDef::getMemberByName(), Definition::getOuterScope(), getResolvedNamespace(), ScopedTypeVariant::isDummy(), Definition::name(), ScopedTypeVariant::name(), DString::npos, qPrint(), MemberName::size(), stripClassName(), MemberDef::typeString(), and yyguts_t.
Referenced by generateClassOrGlobalLink().
Definition at line 2311 of file code.l.
References DBG_CTX, DString::find(), DString::left(), DString::mid(), DString::npos, popScope(), pushScope(), qPrint(), DString::rfind(), DString::simplifyWhiteSpace(), and yyguts_t.
Definition at line 2287 of file code.l.
References Doxygen::searchIndex, SearchIndexIntf::setCurrentDoc(), and yyguts_t.
Referenced by CCodeParser::parseCode(), and startCodeLine().
Definition at line 2633 of file code.l.
References addVariable(), MemberDef::argumentList(), DString::npos, and yyguts_t.
Referenced by CCodeParser::parseCode().
|
static |
Definition at line 3933 of file code.l.
References yyguts_t.
|
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 2419 of file code.l.
References DString::clear(), codeFolding(), DBG_CTX, Definition::getOutputFileBase(), Definition::getReference(), Doxygen::globalScope, Definition::isLinkableInProject(), Definition::name(), qPrint(), setCurrentDoc(), DString::sprintf(), and yyguts_t.
Referenced by nextCodeLine(), and CCodeParser::parseCode().
|
static |
Definition at line 3507 of file code.l.
References endFontClass(), and yyguts_t.
Referenced by writeObjCMethodCall().
Definition at line 2181 of file code.l.
References DString::at(), isId(), DString::length(), and DString::startsWith().
|
static |
|
static |
Definition at line 2650 of file code.l.
References DBG_CTX, extractClassNameFromType(), Definition::name(), qPrint(), and yyguts_t.
Referenced by generateClassMemberLink(), generateMemberLink(), getLinkInScope(), setCallContextForVar(), updateCallContextForSmartPointer(), and writeObjCMethodCall().
|
static |
Definition at line 2791 of file code.l.
References Definition::definitionType(), Definition::getOuterScope(), stripClassName(), toClassDef(), Definition::TypeClass, MemberDef::typeString(), and yyguts_t.
|
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 2560 of file code.l.
References Definition::anchor(), Definition::briefDescriptionAsTooltip(), Definition::codeSymbolType(), Config_getBool, DString::data(), DBG_CTX, Definition::getOutputFileBase(), Definition::getReference(), nextCodeLine(), qPrint(), OutputCodeList::writeCodeLink(), and yyguts_t.
Referenced by generateClassMemberLink(), generateClassMemberLink(), generateClassOrGlobalLink(), getLinkInScope(), and writeObjCMethodCall().
|
static |
Definition at line 3523 of file code.l.
References addDocCrossReference(), ASSERT, DString::at(), ClassDef::baseClasses(), ClassDef::categoryOf(), codifyLines(), DString::data(), DBG_CTX, Definition::definitionType(), DString::empty(), endFontClass(), LinkedMap< T, Hash, KeyEqual, Map >::find(), ObjCCallCtx::format, MemberName::front(), ClassDef::getMemberByName(), ScopedTypeVariant::globalDef(), Doxygen::globalScope, Definition::isLinkable(), Doxygen::memberNameLinkedMap, ObjCCallCtx::method, ObjCCallCtx::methodName, DString::mid(), Definition::name(), DString::npos, ObjCCallCtx::objectType, ObjCCallCtx::objectTypeOrName, ObjCCallCtx::objectVar, ClassDef::Protocol, qPrint(), MemberName::size(), startFontClass(), stripClassName(), DString::stripWhiteSpace(), toClassDef(), DString::toInt(), toMemberDef(), Definition::TypeClass, Definition::TypeMember, MemberDef::typeString(), writeMultiLineCodeLink(), writeObjCMethodCall(), and yyguts_t.
Referenced by writeObjCMethodCall().
| int yylex | ( | yyscan_t | yyscanner | ) |
Definition at line 376 of file code.l.
|
static |
Definition at line 3983 of file code.l.
References yyguts_t.