Evaluation order: Only use this checker on non-C++11 code
This commit is contained in:
parent
24438c326e
commit
55779a5772
|
@ -2485,6 +2485,10 @@ void CheckOther::unusedLabelError(const Token* tok)
|
||||||
|
|
||||||
void CheckOther::checkEvaluationOrder()
|
void CheckOther::checkEvaluationOrder()
|
||||||
{
|
{
|
||||||
|
// This checker is not written according to C++11 sequencing rules
|
||||||
|
if (_settings->standards.cpp == Standards::CPP11)
|
||||||
|
return;
|
||||||
|
|
||||||
const SymbolDatabase *symbolDatabase = _tokenizer->getSymbolDatabase();
|
const SymbolDatabase *symbolDatabase = _tokenizer->getSymbolDatabase();
|
||||||
const std::size_t functions = symbolDatabase->functionScopes.size();
|
const std::size_t functions = symbolDatabase->functionScopes.size();
|
||||||
for (std::size_t i = 0; i < functions; ++i) {
|
for (std::size_t i = 0; i < functions; ++i) {
|
||||||
|
|
Loading…
Reference in New Issue