| 52 | private: |
| 53 | template<size_t size> |
| 54 | std::string expandMacros(const char (&code)[size], ErrorLogger &errorLogger) const { |
| 55 | simplecpp::OutputList outputList; |
| 56 | std::vector<std::string> files; |
| 57 | simplecpp::TokenList tokens1 = simplecpp::TokenList(code, files, "file.cpp", &outputList); |
| 58 | Preprocessor p(tokens1, settingsDefault, errorLogger, Path::identify(tokens1.getFiles()[0], false)); |
| 59 | ASSERT(p.loadFiles(files)); |
| 60 | simplecpp::TokenList tokens2 = p.preprocess("", files, outputList); |
| 61 | (void)p.reportOutput(outputList, true); |
| 62 | return tokens2.stringify(); |
| 63 | } |
| 64 | |
| 65 | template<size_t size> |
| 66 | void preprocess(const char (&code)[size], std::vector<std::string> &files, const std::string& file0, TokenList& tokenlist, const simplecpp::DUI& dui) |
nothing calls this directly
no test coverage detected