Skip to content

Commit

Permalink
Tokenizer: made more functions private
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Apr 6, 2024
1 parent c15004e commit 43e9b3b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/tokenize.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ class CPPCHECKLIB Tokenizer {
const char FileName[],
const std::string &configuration = emptyString);

private:
/** Set variable id */
void setVarId();
void setVarIdPass1();
Expand Down Expand Up @@ -139,7 +140,7 @@ class CPPCHECKLIB Tokenizer {
*/
void splitTemplateRightAngleBrackets(bool check);


public:
/**
* Calculates sizeof value for given type.
* @param type Token which will contain e.g. "int", "*", or string.
Expand All @@ -148,6 +149,7 @@ class CPPCHECKLIB Tokenizer {
nonneg int sizeOfType(const Token* type) const;
nonneg int sizeOfType(const std::string& type) const;

private:
void simplifyDebug();

/** Simplify assignment where rhs is a block : "x=({123;});" => "{x=123;}" */
Expand Down Expand Up @@ -351,6 +353,7 @@ class CPPCHECKLIB Tokenizer {
*/
static std::string simplifyString(const std::string &source);

public:
/**
* is token pointing at function head?
* @param tok A '(' or ')' token in a possible function head
Expand Down

0 comments on commit 43e9b3b

Please sign in to comment.