| 6750 | //--------------------------------------------------------------------------- |
| 6751 | |
| 6752 | void Tokenizer::removePragma() |
| 6753 | { |
| 6754 | if (isC() && mSettings.standards.c == Standards::C89) |
| 6755 | return; |
| 6756 | if (isCPP() && mSettings.standards.cpp == Standards::CPP03) |
| 6757 | return; |
| 6758 | for (Token *tok = list.front(); tok; tok = tok->next()) { |
| 6759 | while (Token::simpleMatch(tok, "_Pragma (")) { |
| 6760 | Token::eraseTokens(tok, tok->linkAt(1)->next()); |
| 6761 | tok->deleteThis(); |
| 6762 | } |
| 6763 | } |
| 6764 | } |
| 6765 | |
| 6766 | //--------------------------------------------------------------------------- |
| 6767 |
nothing calls this directly
no test coverage detected