@@ -49,21 +49,12 @@ class TestPreprocessor : public TestFixture {
4949 TestPreprocessor () : TestFixture(" TestPreprocessor" ) {}
5050
5151private:
52- class PreprocessorTest : public Preprocessor
53- {
54- friend class TestPreprocessor ;
55- public:
56- PreprocessorTest (simplecpp::TokenList& tokens, const Settings& settings, ErrorLogger &errorLogger, Standards::Language lang)
57- : Preprocessor(tokens, settings, errorLogger, lang)
58- {}
59- };
60-
6152 template <size_t size>
6253 std::string expandMacros (const char (&code)[size], ErrorLogger &errorLogger) const {
6354 simplecpp::OutputList outputList;
6455 std::vector<std::string> files;
6556 simplecpp::TokenList tokens1 = simplecpp::TokenList (code, files, " file.cpp" , &outputList);
66- PreprocessorTest p (tokens1, settingsDefault, errorLogger, Path::identify (tokens1.getFiles ()[0 ], false ));
57+ Preprocessor p (tokens1, settingsDefault, errorLogger, Path::identify (tokens1.getFiles ()[0 ], false ));
6758 simplecpp::TokenList tokens2 = p.preprocess (" " , files, true );
6859 (void )p.reportOutput (outputList, true );
6960 return tokens2.stringify ();
@@ -128,7 +119,7 @@ class TestPreprocessor : public TestFixture {
128119
129120 simplecpp::TokenList tokens (code, size, files, Path::simplifyPath (filename), &outputList);
130121 // TODO: we should be using the actual Preprocessor implementation
131- PreprocessorTest preprocessor (tokens, settings, errorlogger, Path::identify (tokens.getFiles ()[0 ], false ));
122+ Preprocessor preprocessor (tokens, settings, errorlogger, Path::identify (tokens.getFiles ()[0 ], false ));
132123 if (inlineSuppression)
133124 preprocessor.inlineSuppressions (*inlineSuppression);
134125 preprocessor.removeComments ();
0 commit comments