Fix #13550 Remove boostForeachError/checkboost.cpp#7198
Fix #13550 Remove boostForeachError/checkboost.cpp#7198chrchr-github merged 13 commits intocppcheck-opensource:mainfrom
Conversation
|
We should probably just simplify BOOST_FOREACH to a range-based loop and do away with checkboost.cpp (already exists in boost.cfg). |
|
If we really want to support MSVC's |
| if (Token::simpleMatch(tok, "for each")) { | ||
| // 'for each ( )' -> 'asm ( )' | ||
| tok->str("asm"); | ||
| // 'for each (x in y )' -> 'for (x : y)' |
There was a problem hiding this comment.
That's C++11 code. Does that work if we are using C++03 as standard?
There was a problem hiding this comment.
I don't think we have any loop-handling code that is conditional on the standard. Also, the new simplification can only be an improvement on the asm hack.
There was a problem hiding this comment.
Definitely - especially since we are handling asm so well. It also now matches what the library configurations are doing.
|
The test cases involving |
|
There are no instances of |
No description provided.