| 11280 | } |
| 11281 | |
| 11282 | bool Tokenizer::isPacked(const Token * bodyStart) const |
| 11283 | { |
| 11284 | const auto& directives = mDirectives; |
| 11285 | // TODO: should this return true if the #pragma exists in any line before the start token? |
| 11286 | return std::any_of(directives.cbegin(), directives.cend(), [&](const Directive& d) { |
| 11287 | return d.linenr < bodyStart->linenr() && d.str == "#pragma pack(1)" && d.file == list.getFiles().front(); |
| 11288 | }); |
| 11289 | } |
| 11290 | |
| 11291 | void Tokenizer::getErrorMessages(ErrorLogger& errorLogger, const Settings& settings) |
| 11292 | { |
no test coverage detected