diff options
Diffstat (limited to 'src/definition.cpp')
-rw-r--r-- | src/definition.cpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/definition.cpp b/src/definition.cpp index 62a4e69..ae229ad 100644 --- a/src/definition.cpp +++ b/src/definition.cpp @@ -57,6 +57,7 @@ class DefinitionImpl DefinitionImpl(); ~DefinitionImpl(); void init(const char *df, const char *n); + void setDefFileName(const QCString &df); SectionDict *sectionDict; // dictionary of all sections, not accessible @@ -82,7 +83,7 @@ class DefinitionImpl Definition *outerScope; // not owner - // where the item was found + // where the item was defined QCString defFileName; QCString defFileExt; @@ -112,7 +113,7 @@ DefinitionImpl::~DefinitionImpl() delete inbodyDocs; } -void DefinitionImpl::init(const char *df, const char *n) +void DefinitionImpl::setDefFileName(const QCString &df) { defFileName = df; int lastDot = defFileName.findRev('.'); @@ -120,6 +121,11 @@ void DefinitionImpl::init(const char *df, const char *n) { defFileExt = defFileName.mid(lastDot); } +} + +void DefinitionImpl::init(const char *df, const char *n) +{ + setDefFileName(df); QCString name = n; if (name!="<globalScope>") { @@ -147,6 +153,13 @@ void DefinitionImpl::init(const char *df, const char *n) lang = SrcLangExt_Unknown; } +void Definition::setDefFile(const QCString &df,int defLine,int defCol) +{ + m_impl->setDefFileName(df); + m_defLine = defLine; + m_defColumn = defCol; +} + //----------------------------------------------------------------------------------------- static bool matchExcludedSymbols(const char *name) |