| 361 | } |
| 362 | |
| 363 | bool BfParserData::IsWarningEnabledAtSrcIndex(int warningNumber, int srcIdx) |
| 364 | { |
| 365 | int enabled = 1; //CDH TODO if/when we add warning level support, this default will change based on the warning number and the general project warning level setting |
| 366 | |
| 367 | for (const auto& it : mWarningEnabledChanges) |
| 368 | { |
| 369 | if (it.mKey > srcIdx) |
| 370 | break; |
| 371 | if ((it.mValue.mWarningNumber == warningNumber) || (it.mValue.mWarningNumber == -1)) |
| 372 | { |
| 373 | if (it.mValue.mEnable) |
| 374 | enabled++; |
| 375 | else |
| 376 | enabled--; |
| 377 | } |
| 378 | } |
| 379 | return enabled > 0; |
| 380 | } |
| 381 | |
| 382 | void BfParserData::Deref() |
| 383 | { |
no outgoing calls
no test coverage detected