| 904 | } |
| 905 | |
| 906 | simplecpp::TokenList Preprocessor::preprocess(const std::string &cfgStr, std::vector<std::string> &files, simplecpp::OutputList& outputList) |
| 907 | { |
| 908 | const simplecpp::DUI dui = createDUI(mSettings, cfgStr, mLang); |
| 909 | |
| 910 | std::list<simplecpp::MacroUsage> macroUsage; |
| 911 | std::list<simplecpp::IfCond> ifCond; |
| 912 | simplecpp::TokenList tokens2(files); |
| 913 | simplecpp::preprocess(tokens2, mTokens, files, mFileCache, dui, &outputList, ¯oUsage, &ifCond); |
| 914 | mMacroUsage = std::move(macroUsage); |
| 915 | mIfCond = std::move(ifCond); |
| 916 | |
| 917 | tokens2.removeComments(); |
| 918 | |
| 919 | return tokens2; |
| 920 | } |
| 921 | |
| 922 | std::string Preprocessor::getcode(const std::string &cfgStr, std::vector<std::string> &files, const bool writeLocations) |
| 923 | { |
no test coverage detected