@@ -115,7 +115,7 @@ ScopedFile::~ScopedFile() {
115115}
116116
117117// TODO: we should be using the actual Preprocessor implementation
118- std::string PreprocessorHelper::getcode (const Settings& settings, ErrorLogger& errorlogger, const std::string &filedata, const std::string &cfg, const std::string &filename, SuppressionList *inlineSuppression)
118+ std::string PreprocessorHelper::getcodeforcfg (const Settings& settings, ErrorLogger& errorlogger, const std::string &filedata, const std::string &cfg, const std::string &filename, SuppressionList *inlineSuppression)
119119{
120120 std::map<std::string, std::string> cfgcode = getcode (settings, errorlogger, filedata.c_str (), std::set<std::string>{cfg}, filename, inlineSuppression);
121121 const auto it = cfgcode.find (cfg);
@@ -124,9 +124,9 @@ std::string PreprocessorHelper::getcode(const Settings& settings, ErrorLogger& e
124124 return it->second ;
125125}
126126
127- std::map<std::string, std::string> PreprocessorHelper::getcode (const Settings& settings, ErrorLogger& errorlogger, const char code[], const std::string &filename, SuppressionList *inlineSuppression )
127+ std::map<std::string, std::string> PreprocessorHelper::getcode (const Settings& settings, ErrorLogger& errorlogger, const char code[], const std::string &filename)
128128{
129- return getcode (settings, errorlogger, code, {}, filename, inlineSuppression );
129+ return getcode (settings, errorlogger, code, {}, filename, nullptr );
130130}
131131
132132std::map<std::string, std::string> PreprocessorHelper::getcode (const Settings& settings, ErrorLogger& errorlogger, const char code[], std::set<std::string> cfgs, const std::string &filename, SuppressionList *inlineSuppression)
0 commit comments