Fix some clang warnings - most related to semantic doxygen errors
This commit is contained in:
parent
b74e997435
commit
b5c580a59e
|
@ -375,7 +375,6 @@ bool MathLib::isValidSuffix(std::string::const_iterator it, std::string::const_i
|
||||||
break;
|
break;
|
||||||
case SUFFIX_LU:
|
case SUFFIX_LU:
|
||||||
return false;
|
return false;
|
||||||
break;
|
|
||||||
case SUFFIX_LL:
|
case SUFFIX_LL:
|
||||||
if (*it == 'u' || *it == 'U')
|
if (*it == 'u' || *it == 'U')
|
||||||
state = SUFFIX_LLU; // LLU
|
state = SUFFIX_LLU; // LLU
|
||||||
|
|
|
@ -258,14 +258,13 @@ private:
|
||||||
/**
|
/**
|
||||||
* Search includes from code and append code from the included
|
* Search includes from code and append code from the included
|
||||||
* file
|
* file
|
||||||
* @param code The source code to modify
|
* @param[in,out] code The source code to modify
|
||||||
* @param filePath Relative path to file to check e.g. "src/main.cpp"
|
* @param filePath Relative path to file to check e.g. "src/main.cpp"
|
||||||
* @param includePaths List of paths where include files should be searched from,
|
* @param includePaths List of paths where include files should be searched from,
|
||||||
* single path can be e.g. in format "include/".
|
* single path can be e.g. in format "include/".
|
||||||
* There must be a path separator at the end. Default parameter is empty list.
|
* There must be a path separator at the end. Default parameter is empty list.
|
||||||
* Note that if path from given filename is also extracted and that is used as
|
* Note that if path from given filename is also extracted and that is used as
|
||||||
* a last include path if include file was not found from earlier paths.
|
* a last include path if include file was not found from earlier paths.
|
||||||
* @return modified source code
|
|
||||||
*/
|
*/
|
||||||
void handleIncludes(std::string &code, const std::string &filePath, const std::list<std::string> &includePaths);
|
void handleIncludes(std::string &code, const std::string &filePath, const std::list<std::string> &includePaths);
|
||||||
|
|
||||||
|
|
|
@ -447,7 +447,7 @@ public:
|
||||||
* @param varid Print varids. (Style: "varname@id")
|
* @param varid Print varids. (Style: "varname@id")
|
||||||
* @param attributes Print attributes of tokens like "unsigned" in front of it.
|
* @param attributes Print attributes of tokens like "unsigned" in front of it.
|
||||||
* @param linenumbers Print line number in front of each line
|
* @param linenumbers Print line number in front of each line
|
||||||
* @param linebreaks Insert \n into string when line number changes
|
* @param linebreaks Insert "\n" into string when line number changes
|
||||||
* @param files print Files as numbers or as names (if fileNames is given)
|
* @param files print Files as numbers or as names (if fileNames is given)
|
||||||
* @param fileNames Vector of filenames. Used (if given) to print filenames as strings instead of numbers.
|
* @param fileNames Vector of filenames. Used (if given) to print filenames as strings instead of numbers.
|
||||||
* @param end Stringification ends before this token is reached. 0 to stringify until end of list.
|
* @param end Stringification ends before this token is reached. 0 to stringify until end of list.
|
||||||
|
|
|
@ -187,8 +187,6 @@ public:
|
||||||
void arraySize();
|
void arraySize();
|
||||||
|
|
||||||
/** Simplify labels and 'case|default' syntaxes.
|
/** Simplify labels and 'case|default' syntaxes.
|
||||||
* @return true if found nothing or the syntax is correct.
|
|
||||||
* false if syntax is found to be wrong.
|
|
||||||
*/
|
*/
|
||||||
void simplifyLabelsCaseDefault();
|
void simplifyLabelsCaseDefault();
|
||||||
|
|
||||||
|
@ -450,7 +448,6 @@ public:
|
||||||
/**
|
/**
|
||||||
* Simplify functions like "void f(x) int x; {"
|
* Simplify functions like "void f(x) int x; {"
|
||||||
* into "void f(int x) {"
|
* into "void f(int x) {"
|
||||||
* @return false only if there's a syntax error
|
|
||||||
*/
|
*/
|
||||||
void simplifyFunctionParameters();
|
void simplifyFunctionParameters();
|
||||||
|
|
||||||
|
@ -564,9 +561,6 @@ public:
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Setup links for tokens so that one can call Token::link().
|
* Setup links for tokens so that one can call Token::link().
|
||||||
*
|
|
||||||
* @return false if there was a mismatch with tokens, this
|
|
||||||
* should mean that source code was not valid.
|
|
||||||
*/
|
*/
|
||||||
void createLinks();
|
void createLinks();
|
||||||
|
|
||||||
|
@ -587,7 +581,6 @@ public:
|
||||||
/**
|
/**
|
||||||
* assert that tokens are ok - used during debugging for example
|
* assert that tokens are ok - used during debugging for example
|
||||||
* to catch problems in simplifyTokenList.
|
* to catch problems in simplifyTokenList.
|
||||||
* @return always true.
|
|
||||||
*/
|
*/
|
||||||
void validate() const;
|
void validate() const;
|
||||||
|
|
||||||
|
|
|
@ -6637,7 +6637,7 @@ private:
|
||||||
|
|
||||||
void checkPipeParameterSize() { // #3521
|
void checkPipeParameterSize() { // #3521
|
||||||
check("void f(){\n"
|
check("void f(){\n"
|
||||||
"int pipefd[1];\n" //<-- array of two integers is needed
|
"int pipefd[1];\n" // <-- array of two integers is needed
|
||||||
"if (pipe(pipefd) == -1) {\n"
|
"if (pipe(pipefd) == -1) {\n"
|
||||||
" return;\n"
|
" return;\n"
|
||||||
" }\n"
|
" }\n"
|
||||||
|
@ -6661,7 +6661,7 @@ private:
|
||||||
ASSERT_EQUALS("", errout.str());
|
ASSERT_EQUALS("", errout.str());
|
||||||
|
|
||||||
check("void f(){\n"
|
check("void f(){\n"
|
||||||
"int pipefd[1];\n" //<-- array of two integers is needed
|
"int pipefd[1];\n" // <-- array of two integers is needed
|
||||||
"if (pipe2(pipefd,0) == -1) {\n"
|
"if (pipe2(pipefd,0) == -1) {\n"
|
||||||
" return;\n"
|
" return;\n"
|
||||||
" }\n"
|
" }\n"
|
||||||
|
|
Loading…
Reference in New Issue