openbsd-ports/devel/cppcheck/patches/patch-lib_tokenize_cpp
gsoares 0a0de6ff8d - update to 1.48,
- remove NO_REGRESS, and set REGRESS_TARGET (enable regression tests)
- use INSTALL_MAN instead of INSTALL_DATA
- add a patch to fix an issue which was found by Igor Zinovik(MAINTAINER)
http://sourceforge.net/apps/trac/cppcheck/ticket/2755
(The patch has already been committed upstream and will be part of the next release)

ok jasper@, sthen@, Igor Zinovik(MAINTAINER)
2011-05-01 21:08:49 +00:00

17 lines
674 B
Plaintext

$OpenBSD: patch-lib_tokenize_cpp,v 1.1 2011/05/01 21:08:49 gsoares Exp $
Fix Ticket http://sourceforge.net/apps/trac/cppcheck/ticket/2755
#2755 (cppcheck goes into infinite loop while scanning OpenSSL sources)
--- lib/tokenize.cpp.orig Fri Apr 29 15:25:06 2011
+++ lib/tokenize.cpp Fri Apr 29 15:25:33 2011
@@ -8629,7 +8629,7 @@ void Tokenizer::removeExceptionSpecifications(Token *t
else if (Token::Match(tok, "class|namespace|struct %type%"))
{
- while (tok && !Token::Match(tok, "[;{]"))
+ while (tok && !Token::Match(tok, "[;{=]"))
tok = tok->next();
if (tok && tok->str() == "{")
{