Please find the attached patch implementing folding on the GetText (PO) lexer. It's my first folding patch, so I'm really unfamiliar with this. Please tell me if anything has to be updated.
Hum, actually it's rather a feature request, sorry for the wrong tracker :(
I won't be looking at this until after 3.2.4 is released.
Committed as [602a6c].
Clang 3.1 which is the version present in recent Linux distributions such as Fedora 18 warns (in --analyze mode) about unused values in the folder. The code could be simplified so that these variables have more limited scope and assigned values are used.
clang --analyze -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/libdrm -I/usr/include/harfbuzz -DNDEBUG -Os -Wall -Wno-missing-braces -Wno-char-subscripts -Wno-long-long -pedantic -DGTK -DSCI_LEXER -I ../include -I ../src -I ../lexlib -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DDISABLE_GDK_FONT --std=c++11 -c ../lexers/LexPO.cxx
../lexers/LexPO.cxx:170:6: warning: Value stored to 'nextLineState' during its initialization is never read
int nextLineState = lineState;
../lexers/LexPO.cxx:172:6: warning: Value stored to 'nextLevel' during its initialization is never read
int nextLevel = level;
2 warnings generated.
Changeset [7f106a] stops the warnings from clang --analyze.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.