diff options
Diffstat (limited to 'src/docparser_p.h')
-rw-r--r-- | src/docparser_p.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/docparser_p.h b/src/docparser_p.h index 9e985f5..0e16cc4 100644 --- a/src/docparser_p.h +++ b/src/docparser_p.h @@ -25,6 +25,7 @@ #include <iterator> #include <vector> #include <deque> +#include <cstdint> #include "containers.h" #include "docparser.h" @@ -55,11 +56,11 @@ using DocStyleChangeStack = IterableStack<const DocNodeVariant *>; */ struct DocParserContext { - const Definition *scope; + const Definition *scope = 0; QCString context; - bool inSeeBlock; - bool xmlComment; - bool insideHtmlLink; + bool inSeeBlock = false; + bool xmlComment = false; + bool insideHtmlLink = false; DocNodeStack nodeStack; DocStyleChangeStack styleStack; DocStyleChangeStack initialStyleStack; @@ -67,25 +68,25 @@ struct DocParserContext QCString fileName; QCString relPath; - bool hasParamCommand; - bool hasReturnCommand; + bool hasParamCommand = false; + bool hasReturnCommand = false; StringMultiSet retvalsFound; StringMultiSet paramsFound; - const MemberDef * memberDef; - bool isExample; + const MemberDef * memberDef = 0; + bool isExample = false; QCString exampleName; QCString searchUrl; - QCString includeFileName; - QCString includeFileText; - uint includeFileOffset; - uint includeFileLength; - int includeFileLine; - bool includeFileShowLineNo; + QCString includeFileName; + QCString includeFileText; + uint32_t includeFileOffset = 0; + uint32_t includeFileLength = 0; + int includeFileLine; + bool includeFileShowLineNo = false; - TokenInfo *token; - int lineNo; - bool markdownSupport; + TokenInfo *token = 0; + int lineNo = 0; + bool markdownSupport = false; }; class DocParser : public IDocParser @@ -97,7 +98,7 @@ class DocParser : public IDocParser void handleImg(DocNodeVariant *parent,DocNodeList &children,const HtmlAttribList &tagHtmlAttribs); int internalValidatingParseDoc(DocNodeVariant *parent,DocNodeList &children, const QCString &doc); - QCString processCopyDoc(const char *data,uint &len); + QCString processCopyDoc(const char *data,size_t &len); QCString findAndCopyImage(const QCString &fileName,DocImage::Type type, bool doWarn = true); void checkArgumentName(); void checkRetvalName(); @@ -133,7 +134,6 @@ class DocParser : public IDocParser std::stack< DocParserContext > contextStack; DocParserContext context; DocTokenizer tokenizer; - SIDataCollection searchData; }; //--------------------------------------------------------------------------- |