arrayIndexOutOfBounds: Make sure error message is clarified for daca2 --template format

This commit is contained in:
Daniel Marjamäki 2017-05-25 08:18:37 +02:00
parent 0262020707
commit 1dd42d9a9e
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ void CheckBufferOverrun::arrayIndexOutOfBoundsError(const Token *tok, const Arra
}
std::list<ErrorPathItem> errorPath;
if (_settings->xml || _settings->outputFormat == "clang" || _settings->outputFormat == "cppcheck2") {
if (_settings->xml || _settings->outputFormat == "daca2") {
for (std::size_t i = 0; i < index.size(); ++i) {
const ErrorPath &e = getErrorPath(tok, &index[i], "");
for (ErrorPath::const_iterator it = e.begin(); it != e.end(); ++it) {