Skip to content

Commit e4036c4

Browse files
Update tokenize.h
1 parent 4278ee6 commit e4036c4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lib/tokenize.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ class CPPCHECKLIB Tokenizer {
601601
/**
602602
* Helper function to check whether number is one (1 or 0.1E+1 or 1E+0) or not?
603603
* @param s the string to check
604-
* @return true in case is is one and false otherwise.
604+
* @return true in case it is one and false otherwise.
605605
*/
606606
static bool isOneNumber(const std::string &s);
607607

@@ -613,6 +613,13 @@ class CPPCHECKLIB Tokenizer {
613613
*/
614614
static const Token * startOfExecutableScope(const Token * tok);
615615

616+
/**
617+
* Helper function to check whether tok is the declaration of a function pointer
618+
* @param the Token to check
619+
* @return true in case tok is a function pointer and false otherwise.
620+
*/
621+
static bool isFunctionPointer(const Token* tok);
622+
616623
const Settings &getSettings() const {
617624
return mSettings;
618625
}

0 commit comments

Comments
 (0)