Summary: | formater messes up space around parenthesis | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Andreas Pakulat <apaku> |
Component: | Astyle | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | git master | ||
Target Milestone: | --- | ||
Platform: | Debian testing | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Andreas Pakulat
2006-12-12 02:30:32 UTC
And just in case it might matter astyle is version 1.18. Only the Options=... line is used. The other options are not read any more (and can be deleted) Kdevelop has the astyle version 1.19 in it. If your using astyle at the commandline there are bug fixes for the 1.19 version that you might want. (or not) Testing on astyle 1.19 on the commandline: testtt.cpp with the sample above confirms the problem. The default for commandline astyle is no formatting (check that there isn't an .astylerc file first). int main(int argc, char *argv[]) { if((*it) ) a = 1; for( something); return EXIT_SUCCESS; } astyle testtt.cpp Artistic Style 1.19 formatting testtt.cpp diff testtt.cpp testtt.cpp.orig 33c33 < if ((*it) ) --- > if((*it) ) 35c35 < for ( something); --- > for( something); Bug in astyle. SVN commit 682308 by webb: Update to Astyle 1.21 Fixes: BUG: 138699 BUG: 69106 M +233 -89 ASBeautifier.cpp M +44 -45 ASEnhancer.cpp M +855 -423 ASFormatter.cpp M +55 -40 ASResource.cpp M +94 -45 astyle.h |