From 7c0aa4464c3d23fd499985fdc5fb4b24f54ff7bf Mon Sep 17 00:00:00 2001 From: PKEuS Date: Thu, 16 Mar 2017 21:15:10 +0100 Subject: [PATCH] Fixed travis build by replacing Token::Match by simpleMatch() Added missing files to cppcheck.vcxproj.filters --- lib/cppcheck.vcxproj.filters | 6 ++++++ lib/symboldatabase.cpp | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/cppcheck.vcxproj.filters b/lib/cppcheck.vcxproj.filters index 14b53ec26..a7e37721c 100644 --- a/lib/cppcheck.vcxproj.filters +++ b/lib/cppcheck.vcxproj.filters @@ -152,6 +152,9 @@ Source Files + + Source Files + @@ -304,6 +307,9 @@ Header Files + + Header Files + diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index 099f855c2..bf78eaa33 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -454,7 +454,7 @@ void SymbolDatabase::createSymbolDatabaseFindAllScopes() } // Function template - else if (tok2->str() == ">" && tok2->link() && Token::Match(tok2->link()->previous(), "template <")) + else if (tok2->link() && tok2->str() == ">" && Token::simpleMatch(tok2->link()->previous(), "template <")) break; tok1 = tok2;