From a4a7f0a5494c5232c61859dc4e17d0043a31693c Mon Sep 17 00:00:00 2001 From: albert-github Date: Thu, 1 Oct 2020 13:01:26 +0200 Subject: Warning in internal documentation The internal documentation gives warning: ``` .../src/clangparser.h:33: warning: argument 'fileName' of command @param is not found in the argument list of ClangTUParser::switchToFile(FileDef *fd) .../src/clangparser.h:35: warning: The following parameter of ClangTUParser::switchToFile(FileDef *fd) is not documented: parameter 'fd' ``` this is corrected. (Note: warning regarding TokenManager is an javaCC upstream problem and corrected in their master). --- src/clangparser.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clangparser.h b/src/clangparser.h index 8ee1bdb..f948c33 100644 --- a/src/clangparser.h +++ b/src/clangparser.h @@ -30,7 +30,7 @@ class ClangTUParser void parse(); /** Switches to another file within the translation unit started with start(). - * @param[in] fileName The name of the file to switch to. + * @param[in] fd The file definition with the name of the file to switch to. */ void switchToFile(FileDef *fd); -- cgit v0.12 From aad2c7ae4db355c68d1b87ad29e9bf47f8b7652e Mon Sep 17 00:00:00 2001 From: albert-github Date: Thu, 1 Oct 2020 13:07:05 +0200 Subject: Warning about possible loss of data Om 64-bit windows platform we get the warning: ``` src\template.cpp(341): warning C4267: 'return': conversion from 'size_t' to 'uint', possible loss of data ``` Explicit setting conversion.. --- src/template.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/template.cpp b/src/template.cpp index 66347c4..58188fe 100644 --- a/src/template.cpp +++ b/src/template.cpp @@ -338,7 +338,7 @@ int TemplateList::release() uint TemplateList::count() const { - return p->elems.size(); + return static_cast(p->elems.size()); } void TemplateList::append(const TemplateVariant &v) -- cgit v0.12