diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2013-03-24 11:51:51 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2013-03-24 11:51:51 (GMT) |
commit | deaa34e0c1d990f37fe00e465ac7a22f705904f0 (patch) | |
tree | 8d5749ba8d587d7b753162c524b18f7e7cdf6a0b /src/definition.cpp | |
parent | aacd1557af129e2bff3514169e04168376a2431b (diff) | |
download | Doxygen-deaa34e0c1d990f37fe00e465ac7a22f705904f0.zip Doxygen-deaa34e0c1d990f37fe00e465ac7a22f705904f0.tar.gz Doxygen-deaa34e0c1d990f37fe00e465ac7a22f705904f0.tar.bz2 |
Release-1.8.3.1-20130324
Diffstat (limited to 'src/definition.cpp')
-rw-r--r-- | src/definition.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/definition.cpp b/src/definition.cpp index e882225..83d4566 100644 --- a/src/definition.cpp +++ b/src/definition.cpp @@ -394,6 +394,16 @@ void Definition::setName(const char *name) m_name = name; } +void Definition::setId(const char *id) +{ + if (id==0) return; + if (Doxygen::clangUsrMap) + { + //printf("Definition::setId '%s'->'%s'\n",id,m_name.data()); + Doxygen::clangUsrMap->insert(id,this); + } +} + void Definition::addSectionsToDefinition(QList<SectionInfo> *anchorList) { if (!anchorList) return; @@ -798,12 +808,12 @@ bool readCodeFragment(const char *fileName, } // copy until end of line result+=c; + startLine=lineNr; if (c==':') { result+=cn; if (cn=='\n') lineNr++; } - startLine=lineNr; const int maxLineLength=4096; char lineStr[maxLineLength]; do @@ -852,6 +862,7 @@ bool readCodeFragment(const char *fileName, } } result = transcodeCharacterStringToUTF8(result); + //fprintf(stderr,"readCodeFragement(%d-%d)=%s\n",startLine,endLine,result.data()); return found; } |