parent
d62055277d
commit
12df5300ba
|
@ -426,7 +426,7 @@ private:
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Load library file
|
* @brief Load library file
|
||||||
* @param Library library to use
|
* @param library library to use
|
||||||
* @param filename filename (no path)
|
* @param filename filename (no path)
|
||||||
* @return True if successful
|
* @return True if successful
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -115,13 +115,13 @@ public:
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Set libraries to dialog control.
|
* @brief Set libraries to dialog control.
|
||||||
* @param paths List of libraries to set to dialog control.
|
* @param libraries List of libraries to set to dialog control.
|
||||||
*/
|
*/
|
||||||
void SetLibraries(const QStringList &libraries);
|
void SetLibraries(const QStringList &libraries);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Set suppressions to dialog control.
|
* @brief Set suppressions to dialog control.
|
||||||
* @param paths List of suppressions to set to dialog control.
|
* @param suppressions List of suppressions to set to dialog control.
|
||||||
*/
|
*/
|
||||||
void SetSuppressions(const QStringList &suppressions);
|
void SetSuppressions(const QStringList &suppressions);
|
||||||
|
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
#include "token.h"
|
#include "token.h"
|
||||||
|
|
||||||
/// @addtogroup Checks
|
/// @addtogroup Checks
|
||||||
|
/** @brief Various small checks for automatic variables */
|
||||||
/// @{
|
/// @{
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
#include "errorlogger.h"
|
#include "errorlogger.h"
|
||||||
|
|
||||||
/// @addtogroup Checks
|
/// @addtogroup Checks
|
||||||
|
/** @brief Check for functions never called */
|
||||||
/// @{
|
/// @{
|
||||||
|
|
||||||
class CPPCHECKLIB CheckUnusedFunctions: public Check {
|
class CPPCHECKLIB CheckUnusedFunctions: public Check {
|
||||||
|
|
16
lib/token.h
16
lib/token.h
|
@ -147,15 +147,15 @@ public:
|
||||||
* - "!!else" No tokens or any token that is not "else".
|
* - "!!else" No tokens or any token that is not "else".
|
||||||
* - "someRandomText" If token contains "someRandomText".
|
* - "someRandomText" If token contains "someRandomText".
|
||||||
*
|
*
|
||||||
* multi-compare patterns such as "int|void|char" can contain %or%, %oror% and %op%
|
* multi-compare patterns such as "int|void|char" can contain %%or%, %%oror% and %%op%
|
||||||
* but it is not recommended to put such an %cmd% as the first pattern.
|
* but it is not recommended to put such an %%cmd% as the first pattern.
|
||||||
*
|
*
|
||||||
* It's possible to use multi-compare patterns with all the other %cmds%,
|
* It's possible to use multi-compare patterns with all the other %%cmds%,
|
||||||
* except for %varid%, and normal names, but the %cmds% should be put as
|
* except for %%varid%, and normal names, but the %%cmds% should be put as
|
||||||
* the first patterns in the list, then the normal names.
|
* the first patterns in the list, then the normal names.
|
||||||
* For example: "%var%|%num%|)" means yes to a variable, a number or ')'.
|
* For example: "%var%|%num%|)" means yes to a variable, a number or ')'.
|
||||||
*
|
*
|
||||||
* @todo Make it possible to use the %cmds% and the normal names in the
|
* @todo Make it possible to use the %%cmds% and the normal names in the
|
||||||
* multicompare list without an order.
|
* multicompare list without an order.
|
||||||
*
|
*
|
||||||
* The patterns can be also combined to compare to multiple tokens at once
|
* The patterns can be also combined to compare to multiple tokens at once
|
||||||
|
@ -167,7 +167,7 @@ public:
|
||||||
* @param tok List of tokens to be compared to the pattern
|
* @param tok List of tokens to be compared to the pattern
|
||||||
* @param pattern The pattern against which the tokens are compared,
|
* @param pattern The pattern against which the tokens are compared,
|
||||||
* e.g. "const" or ") const|volatile| {".
|
* e.g. "const" or ") const|volatile| {".
|
||||||
* @param varid if %varid% is given in the pattern the Token::varId
|
* @param varid if %%varid% is given in the pattern the Token::varId
|
||||||
* will be matched against this argument
|
* will be matched against this argument
|
||||||
* @return true if given token matches with given pattern
|
* @return true if given token matches with given pattern
|
||||||
* false if given token does not match with given pattern
|
* false if given token does not match with given pattern
|
||||||
|
@ -177,7 +177,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* Return length of C-string.
|
* Return length of C-string.
|
||||||
*
|
*
|
||||||
* Should be called for %str% tokens only.
|
* Should be called for %%str%% tokens only.
|
||||||
*
|
*
|
||||||
* @param tok token with C-string
|
* @param tok token with C-string
|
||||||
**/
|
**/
|
||||||
|
@ -186,7 +186,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* Return char of C-string at index (possible escaped "\\n")
|
* Return char of C-string at index (possible escaped "\\n")
|
||||||
*
|
*
|
||||||
* Should be called for %str% tokens only.
|
* Should be called for %%str%% tokens only.
|
||||||
*
|
*
|
||||||
* @param tok token with C-string
|
* @param tok token with C-string
|
||||||
* @param index position of character
|
* @param index position of character
|
||||||
|
|
Loading…
Reference in New Issue