Doxygen
|
#include <algorithm>
#include <iterator>
#include <unordered_map>
#include <string>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include "anchor.h"
#include "md5.h"
#include "regex.h"
#include "config.h"
#include "definitionimpl.h"
#include "doxygen.h"
#include "language.h"
#include "message.h"
#include "portable.h"
#include "outputlist.h"
#include "code.h"
#include "util.h"
#include "groupdef.h"
#include "pagedef.h"
#include "section.h"
#include "htags.h"
#include "parserintf.h"
#include "debug.h"
#include "vhdldocgen.h"
#include "memberlist.h"
#include "namespacedef.h"
#include "filedef.h"
#include "dirdef.h"
#include "reflist.h"
#include "utf8.h"
#include "indexlist.h"
#include "fileinfo.h"
Go to the source code of this file.
Classes | |
class | DeepCopyUniquePtr< T > |
Helper class add copy/assignment support to std::unique_ptr by making a deep copy Note that T may not be a polymorphic type. More... | |
class | DefinitionImpl::IMPL |
Private data associated with a Symbol DefinitionImpl object. More... | |
class | FilterCache |
struct | FilterCache::FilterCacheItem |
Functions | |
template<typename T , typename... Args> | |
DeepCopyUniquePtr< T > | make_DeepCopyUnique (Args &&... args) |
Helper to create an object wrapped in a DeepCopyUniquePtr. | |
static bool | matchExcludedSymbols (const QCString &name) |
static void | addToMap (const QCString &name, Definition *d) |
static void | removeFromMap (const QCString &name, Definition *d) |
bool | readCodeFragment (const QCString &fileName, bool isMacro, int &startLine, int &endLine, QCString &result) |
Reads a fragment from file fileName starting with line startLine and ending with line endLine. | |
static MemberVector | refMapToVector (const std::unordered_map< std::string, MemberDef * > &map) |
static bool | stripWord (QCString &s, QCString w) |
static QCString | abbreviate (const QCString &s, const QCString &name) |
Definition * | toDefinition (DefinitionMutable *dm) |
DefinitionMutable * | toDefinitionMutable (Definition *d) |
Variables | |
static std::recursive_mutex | g_qualifiedNameMutex |
static std::mutex | g_memberReferenceMutex |
Definition at line 1517 of file definition.cpp.
References QCString::at(), Config_getList, QCString::findRev(), QCString::isEmpty(), QCString::left(), QCString::length(), QCString::mid(), QCString::stripWhiteSpace(), stripWord(), and substitute().
Referenced by DefinitionAliasMixin< Base >::briefDescription(), DefinitionImpl::briefDescription(), and DefinitionMixin< Base >::briefDescription().
|
static |
Definition at line 244 of file definition.cpp.
References Definition::_setSymbolName(), SymbolMap< T >::add(), computeQualifiedIndex(), Config_getBool, DefinitionImpl::name(), Doxygen::symbolMap, and DefinitionImpl::symbolName().
Referenced by DefinitionImpl::DefinitionImpl(), DefinitionImpl::DefinitionImpl(), and DefinitionAliasImpl::init().
DeepCopyUniquePtr< T > make_DeepCopyUnique | ( | Args &&... | args | ) |
Helper to create an object wrapped in a DeepCopyUniquePtr.
Definition at line 83 of file definition.cpp.
Referenced by DefinitionImpl::_setBriefDescription(), DefinitionImpl::_setDocumentation(), DefinitionImpl::_setInbodyDocumentation(), DefinitionImpl::setBodyDef(), and DefinitionImpl::setBodySegment().
|
static |
Definition at line 189 of file definition.cpp.
References QCString::at(), Config_getList, FALSE, QCString::find(), QCString::isEmpty(), isId(), QCString::left(), QCString::length(), QCString::mid(), DefinitionImpl::name(), reg::search(), QCString::str(), substitute(), and TRUE.
Referenced by DefinitionImpl::DefinitionImpl().
bool readCodeFragment | ( | const QCString & | fileName, |
bool | isMacro, | ||
int & | startLine, | ||
int & | endLine, | ||
QCString & | result ) |
Reads a fragment from file fileName starting with line startLine and ending with line endLine.
Reads a fragment of code from file fileName starting at line startLine and ending at line endLine (inclusive). The fragment is stored in result. If FALSE is returned the code fragment could not be found.
The file is scanned for a opening bracket ('{') from startLine onward The line actually containing the bracket is returned via startLine. The file is scanned for a closing bracket ('}') from endLine backward. The line actually containing the bracket is returned via endLine. Note that for VHDL code the bracket search is not done.
Definition at line 776 of file definition.cpp.
References QCString::at(), Config_getBool, Config_getInt, QCString::data(), err, QCString::fill(), Debug::FilterOutput, QCString::findRev(), Fortran, found, getEncoding(), FilterCache::getFileContents(), getFileFilter(), getLanguageFromFileName(), FilterCache::instance(), QCString::isEmpty(), QCString::length(), Debug::print(), Python, qPrint(), QCString::resize(), QCString::str(), transcodeCharacterStringToUTF8(), TRUE, and VHDL.
Referenced by VhdlDocGen::createFlowChart(), and DefinitionImpl::writeInlineCode().
|
inlinestatic |
Definition at line 1081 of file definition.cpp.
References MemberVector::begin(), and MemberVector::end().
Referenced by DefinitionImpl::_writeSourceRefList(), DefinitionImpl::getReferencedByMembers(), and DefinitionImpl::getReferencesMembers().
|
static |
Definition at line 259 of file definition.cpp.
References DefinitionImpl::name(), SymbolMap< T >::remove(), and Doxygen::symbolMap.
Referenced by DefinitionAliasImpl::deinit(), and DefinitionImpl::~DefinitionImpl().
Definition at line 1504 of file definition.cpp.
References FALSE, QCString::left(), QCString::length(), QCString::right(), and TRUE.
Referenced by abbreviate().
Definition * toDefinition | ( | DefinitionMutable * | dm | ) |
Definition at line 1889 of file definition.cpp.
Referenced by buildScopeFromQualifiedName(), findScopeFromQualifiedName(), toConceptDef(), toMemberDef(), toNamespaceDef(), and MemberList::writeDocumentationPage().
DefinitionMutable * toDefinitionMutable | ( | Definition * | d | ) |
Definition at line 1895 of file definition.cpp.
Referenced by addConceptToContext(), buildNamespaceList(), buildScopeFromQualifiedName(), computeTooltipTexts(), createTagLessInstance(), and resolveClassNestingRelations().
|
static |
Definition at line 1688 of file definition.cpp.
Referenced by DefinitionImpl::getReferencedByMembers(), and DefinitionImpl::getReferencesMembers().
|
static |
Definition at line 1237 of file definition.cpp.
Referenced by DefinitionImpl::qualifiedName(), and DefinitionImpl::setOuterScope().