| 1287 | } |
| 1288 | |
| 1289 | void PreprocessFile::saveCache() { |
| 1290 | CommandLineParser* clp = getCompileSourceFile()->getCommandLineParser(); |
| 1291 | if (clp->parseOnly() || clp->lowMem() || clp->link()) return; |
| 1292 | if (m_macroBody.empty()) { |
| 1293 | if (!m_usingCachedVersion) { |
| 1294 | PPCache cache(this); |
| 1295 | cache.save(); |
| 1296 | } |
| 1297 | } |
| 1298 | // Disable cache saving for include files |
| 1299 | // If an include file is multiply included in a compilation unit with |
| 1300 | // different outcomes for the content of the file (GUARDING) The cache saved |
| 1301 | // is incorrect. |
| 1302 | |
| 1303 | // for (PreprocessFile* include : m_includes) { |
| 1304 | // include->saveCache(); |
| 1305 | // } |
| 1306 | } |
| 1307 | } // namespace SURELOG |
no test coverage detected