Summary: | kdevelop-3.5.4 freezes when loading a C++ project | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Albert Zeyer <albzey> |
Component: | general | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 3.5.4 | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Albert Zeyer
2009-02-15 16:54:54 UTC
I fixed the problem: az@acompneu ~/Programmierung/kdevelop-3.5 $ svn diff Index: lib/cppparser/lexer.cpp =================================================================== --- lib/cppparser/lexer.cpp (revision 926528) +++ lib/cppparser/lexer.cpp (working copy) @@ -241,7 +241,7 @@ m_startLine = false; int ppe = preprocessorEnabled(); setPreprocessorEnabled( false ); - while( currentChar() && currentChar() != '\n' ){ + while( !currentChar().isNull() && currentChar() != '\n' ){ Token tok(m_source); nextToken( tok, true ); } It always occurs while parsing any C++ file with some unicode characters. (bool)currentChar() is false in that case, so it never proceed further at this character. SVN commit 926595 by apaku: Fix endless loop by checking for null-character explicitly instead of relying on a QChar->bool auto-conversion. Patch by Albert Zeyer - thanks. BUG:184420 M +1 -1 lexer.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=926595 |