Travis: Suppress false positive

This commit is contained in:
Daniel Marjamäki 2017-10-11 17:14:02 +02:00
parent 2d1c47b474
commit cc82288ff6
2 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,7 @@ passedByValue:lib/library.h
knownConditionTrueFalse:lib/platform.cpp
knownConditionTrueFalse:build/*
nullPointer:lib/checkother.cpp
nullPointer:build/checkother.cpp
*:gui/test*
*:test/test.cxx

View File

@ -924,9 +924,10 @@ const Library::Container* Library::detectContainer(const Token* typeStart, bool
// returns true if ftok is not a library function
bool Library::isNotLibraryFunction(const Token *ftok) const
{
/*
if (ftok->function() && ftok->function()->nestedIn && ftok->function()->nestedIn->type != Scope::eGlobal)
return true;
*/
// variables are not library functions.
if (ftok->varId())
return true;