Added noreturn attributes for methods that throws

This commit is contained in:
Daniel Marjamäki 2015-10-12 08:33:53 +02:00
parent 2c7c6b3e38
commit 8b8870cb5e
1 changed files with 3 additions and 3 deletions

View File

@ -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: