Skip to content

Commit 4f2f811

Browse files
committed
Tokenizer: cleaned up member access
1 parent 0d7e8a0 commit 4f2f811

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

lib/tokenize.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@ class CPPCHECKLIB Tokenizer {
382382
/** Syntax error. Unmatched character. */
383383
NORETURN void unmatchedToken(const Token *tok) const;
384384

385+
private:
385386
/** Syntax error. C++ code in C file. */
386387
NORETURN void syntaxErrorC(const Token *tok, const std::string &what) const;
387388

@@ -390,8 +391,6 @@ class CPPCHECKLIB Tokenizer {
390391

391392
void unhandledCharLiteral(const Token *tok, const std::string& msg) const;
392393

393-
private:
394-
395394
/** Report that there is an unhandled "class x y {" code */
396395
void unhandled_macro_class_x_y(const Token *tok, const std::string& type, const std::string& x, const std::string& y, const std::string& bracket) const;
397396

@@ -574,8 +573,10 @@ class CPPCHECKLIB Tokenizer {
574573

575574
void dump(std::ostream &out) const;
576575

576+
private:
577577
Token *deleteInvalidTypedef(Token *typeDef);
578578

579+
public:
579580
/**
580581
* Get variable count.
581582
* @return number of variables

0 commit comments

Comments
 (0)