File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
5253public:
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 {
8583private:
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 {}
You can’t perform that action at this time.
0 commit comments