Fixed travis build by replacing Token::Match by simpleMatch()

Added missing files to cppcheck.vcxproj.filters
This commit is contained in:
PKEuS 2017-03-16 21:15:10 +01:00
parent 8a3fb4dd6c
commit 7c0aa4464c
2 changed files with 7 additions and 1 deletions

View File

@ -152,6 +152,9 @@
<ClCompile Include="pathmatch.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="analyzerinfo.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="checkbufferoverrun.h">
@ -304,6 +307,9 @@
<ClInclude Include="pathmatch.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="analyzerinfo.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="version.rc" />

View File

@ -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;