@@ -55,6 +55,8 @@ namespace simplecpp { class TokenList; }
5555 * Usage: See check() for more info.
5656 */
5757class CPPCHECKLIB CppCheck {
58+ friend class TestCppcheck ;
59+
5860public:
5961 using ExecuteCmdFn = std::function<int (std::string,std::vector<std::string>,std::string,std::string&)>;
6062
@@ -123,7 +125,6 @@ class CPPCHECKLIB CppCheck {
123125 static void getErrorMessages (ErrorLogger &errorlogger);
124126
125127 void tooManyConfigsError (const std::string &file, int numberOfConfigurations);
126- void purgedConfigurationMessage (const std::string &file, const std::string& configuration);
127128
128129 /* * Analyse whole program, run this after all TUs has been scanned.
129130 * This is deprecated and the plan is to remove this when
@@ -132,15 +133,15 @@ class CPPCHECKLIB CppCheck {
132133 */
133134 bool analyseWholeProgram ();
134135
135- /* * Analyze all files using clang-tidy */
136- void analyseClangTidy (const FileSettings &fileSettings);
137-
138136 /* * analyse whole program use .analyzeinfo files or ctuinfo string */
139137 unsigned int analyseWholeProgram (const std::string &buildDir, const std::list<FileWithDetails> &files, const std::list<FileSettings>& fileSettings, const std::string& ctuInfo);
140138
141139 static void resetTimerResults ();
142140 static void printTimerResults (SHOWTIME_MODES mode);
143141
142+ private:
143+ void purgedConfigurationMessage (const std::string &file, const std::string& configuration);
144+
144145 bool isPremiumCodingStandardId (const std::string& id) const ;
145146
146147 /* *
@@ -150,7 +151,9 @@ class CPPCHECKLIB CppCheck {
150151
151152 std::string getLibraryDumpData () const ;
152153
153- private:
154+ /* * Analyze all files using clang-tidy */
155+ void analyseClangTidy (const FileSettings &fileSettings);
156+
154157#ifdef HAVE_RULES
155158 /* * Are there "simple" rules */
156159 bool hasRule (const std::string &tokenlist) const ;
0 commit comments