| 11268 | } |
| 11269 | |
| 11270 | bool Tokenizer::hasIfdef(const Token *start, const Token *end) const |
| 11271 | { |
| 11272 | const auto& directives = mDirectives; |
| 11273 | return std::any_of(directives.cbegin(), directives.cend(), [&](const Directive& d) { |
| 11274 | return startsWith(d.str, "#if") && |
| 11275 | d.linenr >= start->linenr() && |
| 11276 | d.linenr <= end->linenr() && |
| 11277 | start->fileIndex() < list.getFiles().size() && |
| 11278 | d.file == list.getFiles()[start->fileIndex()]; |
| 11279 | }); |
| 11280 | } |
| 11281 | |
| 11282 | bool Tokenizer::isPacked(const Token * bodyStart) const |
| 11283 | { |
no test coverage detected