| 2855 | } |
| 2856 | |
| 2857 | static bool |
| 2858 | isStaticAssert(const Settings &settings, const Token *tok) |
| 2859 | { |
| 2860 | if (tok->isCpp() && settings.standards.cpp >= Standards::CPP11 && |
| 2861 | Token::simpleMatch(tok, "static_assert")) { |
| 2862 | return true; |
| 2863 | } |
| 2864 | |
| 2865 | if (tok->isC() && settings.standards.c >= Standards::C11 && |
| 2866 | Token::simpleMatch(tok, "_Static_assert")) { |
| 2867 | return true; |
| 2868 | } |
| 2869 | |
| 2870 | return false; |
| 2871 | } |
| 2872 | |
| 2873 | void CheckOtherImpl::checkDuplicateExpression() |
| 2874 | { |
no test coverage detected