Skip to content

Commit f7345ef

Browse files
committed
CheckUnusedFunctions: made check() private
1 parent 8381830 commit f7345ef

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

lib/checkunusedfunctions.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ class CPPCHECKLIB CheckUnusedFunctions : public Check {
4848
friend class TestSingleExecutorBase;
4949
friend class TestProcessExecutorBase;
5050
friend class TestThreadExecutorBase;
51+
friend class TestUnusedFunctions;
5152

5253
public:
5354
/** @brief This constructor is used when registering the CheckUnusedFunctions */
@@ -64,9 +65,6 @@ class CPPCHECKLIB CheckUnusedFunctions : public Check {
6465

6566
static void parseTokens(const Tokenizer *tokenizer, const Settings *settings);
6667

67-
// Return true if an error is reported.
68-
bool check(ErrorLogger * const errorLogger, const Settings& settings) const;
69-
7068
/** @brief Parse current TU and extract file info */
7169
Check::FileInfo *getFileInfo(const Tokenizer *tokenizer, const Settings *settings) const override;
7270

@@ -85,6 +83,9 @@ class CPPCHECKLIB CheckUnusedFunctions : public Check {
8583
private:
8684
static void clear();
8785

86+
// Return true if an error is reported.
87+
bool check(ErrorLogger * const errorLogger, const Settings& settings) const;
88+
8889
void getErrorMessages(ErrorLogger */*errorLogger*/, const Settings * /*settings*/) const override {}
8990

9091
void runChecks(const Tokenizer & /*tokenizer*/, ErrorLogger * /*errorLogger*/) override {}

0 commit comments

Comments
 (0)