Added noreturn attributes for methods that throws
This commit is contained in:
parent
2c7c6b3e38
commit
8b8870cb5e
|
@ -568,7 +568,7 @@ private:
|
||||||
* Send error message to error logger about internal bug.
|
* Send error message to error logger about internal bug.
|
||||||
* @param tok the token that this bug concerns.
|
* @param tok the token that this bug concerns.
|
||||||
*/
|
*/
|
||||||
void cppcheckError(const Token *tok) const;
|
void cppcheckError(const Token *tok) const __attribute__((noreturn));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Setup links for tokens so that one can call Token::link().
|
* Setup links for tokens so that one can call Token::link().
|
||||||
|
@ -583,10 +583,10 @@ private:
|
||||||
public:
|
public:
|
||||||
|
|
||||||
/** Syntax error */
|
/** Syntax error */
|
||||||
void syntaxError(const Token *tok) const;
|
void syntaxError(const Token *tok) const __attribute__((noreturn));
|
||||||
|
|
||||||
/** Syntax error. Example: invalid number of ')' */
|
/** Syntax error. Example: invalid number of ')' */
|
||||||
void syntaxError(const Token *tok, char c) const;
|
void syntaxError(const Token *tok, char c) const __attribute__((noreturn));
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue