From 1dd42d9a9ec71181104102148d6594232aba986c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 25 May 2017 08:18:37 +0200 Subject: [PATCH] arrayIndexOutOfBounds: Make sure error message is clarified for daca2 --template format --- lib/checkbufferoverrun.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkbufferoverrun.cpp b/lib/checkbufferoverrun.cpp index d43ab7c08..cf1fd85fe 100644 --- a/lib/checkbufferoverrun.cpp +++ b/lib/checkbufferoverrun.cpp @@ -87,7 +87,7 @@ void CheckBufferOverrun::arrayIndexOutOfBoundsError(const Token *tok, const Arra } std::list 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) {