|
Doxygen
|
#include <unordered_map>#include <string>#include <vector>#include <algorithm>#include <cassert>#include "symbolresolver.h"#include "util.h"#include "doxygen.h"#include "namespacedef.h"#include "config.h"#include "defargs.h"#include "trace.h"Go to the source code of this file.
Classes | |
| struct | CacheStatistics |
| struct | CacheStatsWrapper |
| class | AccessStack |
| Helper class representing the stack of items considered while resolving the scope. More... | |
| struct | AccessStack::AccessElem |
| Element in the stack. More... | |
| struct | SymbolResolver::Private |
Macros | |
| #define | AUTO_TRACE(...) |
| #define | AUTO_TRACE_ADD(...) |
| #define | AUTO_TRACE_EXIT(...) |
Typedefs | |
| using | LookupCache = Cache<std::string,LookupInfo> |
| using | VisitedKeys = StringVector |
| using | VisitedNamespaceKeys = StringVector |
| using | VisitedNamespaces = std::unordered_map<std::string,const Definition *> |
Functions | |
| static void | mergeStatistics (CacheStatistics &stats, LookupCache &cache) |
| static size_t | getCacheSize () |
| static LookupCache & | getTypeLookupCache () |
| static LookupCache & | getSymbolLookupCache () |
| static bool | isCodeSymbol (Definition::DefType defType) |
| static int | computeIdealCacheParam (size_t v) |
Variables | |
| static std::recursive_mutex | g_cacheTypedefMutex |
| static CacheStatistics | g_typeCacheStatistics |
| static CacheStatistics | g_symbolCacheStatistics |
| THREAD_LOCAL std::unordered_map< std::string, std::pair< QCString, const MemberDef * > > | g_substMap |
| #define AUTO_TRACE | ( | ... | ) |
Definition at line 34 of file symbolresolver.cpp.
| #define AUTO_TRACE_ADD | ( | ... | ) |
Definition at line 35 of file symbolresolver.cpp.
| #define AUTO_TRACE_EXIT | ( | ... | ) |
Definition at line 36 of file symbolresolver.cpp.
| using LookupCache = Cache<std::string,LookupInfo> |
Definition at line 53 of file symbolresolver.cpp.
| using VisitedKeys = StringVector |
Definition at line 163 of file symbolresolver.cpp.
| using VisitedNamespaceKeys = StringVector |
Definition at line 164 of file symbolresolver.cpp.
| using VisitedNamespaces = std::unordered_map<std::string,const Definition *> |
Definition at line 165 of file symbolresolver.cpp.
|
static |
Definition at line 1833 of file symbolresolver.cpp.
Referenced by SymbolResolver::showCacheUsage().
|
static |
Definition at line 79 of file symbolresolver.cpp.
References Config_getInt.
Referenced by getSymbolLookupCache(), and getTypeLookupCache().
|
static |
Definition at line 93 of file symbolresolver.cpp.
References g_symbolCacheStatistics, getCacheSize(), and THREAD_LOCAL.
Referenced by SymbolResolver::resolveSymbol(), and SymbolResolver::showCacheUsage().
|
static |
Definition at line 87 of file symbolresolver.cpp.
References g_typeCacheStatistics, getCacheSize(), and THREAD_LOCAL.
Referenced by SymbolResolver::clearTypeLookupCache(), SymbolResolver::Private::followPath(), SymbolResolver::resolveClass(), and SymbolResolver::showCacheUsage().
|
static |
Definition at line 103 of file symbolresolver.cpp.
References Definition::TypeClass, Definition::TypeConcept, Definition::TypeMember, Definition::TypeModule, Definition::TypeNamespace, and Definition::TypePackage.
Referenced by SymbolResolver::Private::getResolvedSymbolRec(), and SymbolResolver::Private::getResolvedTypeRec().
|
static |
Definition at line 55 of file symbolresolver.cpp.
References Cache< K, V >::capacity(), CacheStatistics::capacity, Cache< K, V >::hits(), CacheStatistics::hits, Cache< K, V >::misses(), CacheStatistics::misses, CacheStatistics::mutex, Cache< K, V >::size(), and CacheStatistics::size.
Referenced by SymbolResolver::showCacheUsage(), and CacheStatsWrapper::~CacheStatsWrapper().
|
static |
Definition at line 39 of file symbolresolver.cpp.
Referenced by SymbolResolver::Private::newResolveTypedef().
| THREAD_LOCAL std::unordered_map<std::string, std::pair<QCString,const MemberDef *> > g_substMap |
Definition at line 99 of file symbolresolver.cpp.
Referenced by SymbolResolver::Private::substTypedef().
|
static |
Definition at line 51 of file symbolresolver.cpp.
Referenced by getSymbolLookupCache(), and SymbolResolver::showCacheUsage().
|
static |
Definition at line 50 of file symbolresolver.cpp.
Referenced by getTypeLookupCache(), and SymbolResolver::showCacheUsage().