Commit Graph

53 Commits

Author SHA1 Message Date
Sebastian 3b98f08ac2 runastyle: Fix wildcard expansion happening too soon (#1650)
At least under Windows with Cygwin i see a problem.
For lines like `formatCplusplus lib/*.cpp` the wildcard is replaced by ONE filename before the function is called.
This results in only one file being formatted in the corresponding directory.
The fix seems quite simple. Just use quotes for all function parameters like this: `formatCplusplus "lib/*.cpp"`
The wildcard is preserved and only extended in the function body, so all matching files get formatted.
2019-02-07 08:52:20 +01:00
amai2012 b92b06d900 Refactor runastyle script: introduce functions 2019-02-03 20:51:14 +01:00
Carlo Marcelo Arenas Belón 8e465d5963 runastyle
several improvements to help with users that have a development workstation without a native version of astyle with the expected version

patch 2 is the most important and less intrusive change towards that objective but the whole series completes the feature, including parts of patch 4 that will allow for example users with spaces on their username to point to a binary no their home directories.

I decided against splitting the changes on 2 patches for simplicity and because I was expecting the whole series might be squashed for merging anyway
2018-11-17 09:29:24 +01:00
amai2012 c07cb64f2f
Move astyle options to a separate file. That way keeping it in sync b… (#1468)
* Move astyle options to a separate file. That way keeping it in sync between different os is more simple.
2018-11-09 09:55:34 +01:00
amai 1244213d2e runastyle also formats cppcheck-errors.rng using xmllint 2018-11-05 21:15:35 +01:00
amai2012 9306027987 Update runastyle (#1421)
Try to format cppcheck.1.xml via xmllint as suggested in https://github.com/danmar/cppcheck/pull/1420
2018-10-13 18:39:37 +02:00
Daniel Marjamäki cfddc8f537 Updated runastyle scripts
[ci skip]
2018-06-20 09:56:25 +02:00
orbitcowboy e3977f7e51 Formatted test/cfg files and updated 'runastyle' script. The generated test files are exclued, since they are not style-compliant. 2018-03-31 13:49:47 +02:00
Daniel Marjamäki bccfc967e7 runastyle: dont run astyle on generated cfg tests 2018-03-19 20:38:36 +01:00
amai2012 e4fd389075 Format platform files using xmllint 2018-02-16 09:08:38 +01:00
PKEuS b684e1f202 Updated AStyle to version 3.0.1 2018-01-08 20:20:33 +01:00
Daniel Marjamäki 4c490b599b Tools: Add simple tool to triage daca results 2018-01-01 09:22:11 +01:00
PKEuS 8f22e4924c Updated AStyle to version 2.05.1
Tweaked runastyle.bat a little bit.
2015-12-17 15:53:13 +01:00
Martin Ettl 77869b7812 test/cfg: Improved testing of functions from standard namespace. Added test/cfg/*.c* files to astyle script and formatted code. 2015-08-14 01:36:44 +02:00
Thomas Jarosch 6bab620d0a runastyle: Output detected version on mismatch 2014-12-18 16:02:26 +01:00
Thomas Jarosch b96b468d7a runastyle: Move astyle binary name into a variable
So it's easy to adjust the path to the exact
used astyle version of cppcheck.
2014-12-18 15:59:04 +01:00
Daniel Marjamäki 9cbab3d8f1 Revert "Updated Artistic Style from version 2.03 to 2.05"
This reverts commit b1329bfb40.
2014-11-20 14:19:53 +01:00
orbitcowboy b1329bfb40 Updated Artistic Style from version 2.03 to 2.05 2014-11-20 10:03:48 +01:00
Daniel Marjamäki 2bba3b4c9d runastyle: updated script 2014-10-16 06:38:18 +02:00
Daniel Marjamäki b90ae22734 runastyle: use xmllint to format cfg files. TODO: use other tool? use tabs instead of spaces for indentation in cfg files? 2014-10-14 06:46:22 +02:00
Daniel Marjamäki d6ee5ca865 runastyle: remove trailing spaces in cfg files 2014-08-15 16:01:39 +02:00
Daniel Marjamäki 0023dec567 runastyle: don't strip trailing spaces in cfg files. After a 'runastyle;git commit;git push', I get changes if I run runastyle again.
[ci skip]
2014-06-25 06:20:04 +02:00
Matthias Krüger e8dd3e83cf runastyle: add line which strips trailing whitspaces from cfg files (and run it on the files) 2014-03-21 01:28:40 +01:00
Mika Attila 10415df93e runastyle: Ignore user's default options file
If we pass --options=none to astyle, it ignores the user's
default options file, and only uses the command line parameters.
This way, if the user has a default options file, it won't conflict
with the style set by the script.
2014-01-16 01:29:33 +01:00
Daniel Marjamäki 14c8140536 democlient: simple working democlient 2014-01-01 15:55:18 +01:00
Daniel Marjamäki 79972d52fc runastyle: archive has been removed 2013-10-13 17:44:48 +02:00
PKEuS a9a5dc0354 Updated to AStyle 2.03, require this version 2013-08-07 16:27:37 +02:00
Daniel Marjamäki b51ed802f0 updated runastyle scripts 2013-07-07 11:05:32 +02:00
Daniel Marjamäki b0951c5928 updated runastyle scripts 2013-07-07 11:04:05 +02:00
Daniel Marjamäki bdd92b6898 runastyle: removed sed command that mess with the make 2013-01-24 19:44:42 +01:00
Daniel Marjamäki d7c7f8c9af astyle: Added --convert-tabs option 2012-10-13 08:18:11 +02:00
Daniel Marjamäki cebe4d98b4 runastyle: extra conversion of tabs to spaces in test folder 2012-10-03 20:14:23 +02:00
XhmikosR 9b5c245899 tabs to spaces, remove trailing spaces and extra empty lines at the end of files 2012-09-29 13:49:16 +02:00
Reijo Tomperi 5bb956b0ff Fixing #3515 (Add samples/id/good|bad.cpp)
http://sourceforge.net/apps/trac/cppcheck/ticket/3515
2012-01-22 15:52:31 +02:00
Reijo Tomperi 3066bb3430 Start fixing #3515 (Add samples/id/good|bad.cpp)
http://sourceforge.net/apps/trac/cppcheck/ticket/3515
2012-01-17 23:03:21 +02:00
Daniel Marjamäki 6f8e42a5af changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
Reijo Tomperi b13bd7ad06 Fix #2843, Astyle script does not recognize Astyle 2.02
http://sourceforge.net/apps/trac/cppcheck/ticket/2843
2011-06-22 21:41:14 +03:00
Reijo Tomperi 8b8ea6fcbf Add some comments to runastyle script 2011-06-22 14:20:36 +03:00
Kimmo Varis 2e755fac84 Run Astyle recursively for gui/test.
GUI's tests are now in separate subdirectories. To avoid adding
each subdirectory to the Astyle scripts run Astyle recursively.
2011-06-10 14:22:18 +03:00
Reijo Tomperi 2525b9db40 Add check to runastyle to enforce correct astyle version usage. 2011-02-11 23:37:38 +02:00
Kimmo Varis aa6341dbed Astyle: add option to convert to linux EOLs. 2011-02-09 14:13:37 +02:00
Kimmo Varis 2684b230f1 GUITEST: Add first GUI test testing TranslationHandler. 2011-02-08 23:42:50 +02:00
Pete Johns 4ca795056f Fixed syntax error
"./runastyle: line 4: --suffix=none: command not found"
2010-09-20 21:16:09 +10:00
Daniel Marjamäki 6e676fdd98 astyle: prevent creating backup files 2010-08-29 09:35:21 +02:00
Kimmo Varis 7b58455ff5 Improve Astyle scripts to use variables.
Using variables for style and options makes it easier to edit the
scripts. Also avoids copy/paste errors when editing scripts.
2010-07-31 17:28:24 +03:00
Kimmo Varis 056c21367e Ticket #1914 Improve Astyle for parenthesis style
Tell Astyle to remove extra spaces around parenthesis.
2010-07-31 15:43:23 +03:00
Kimmo Varis 66098b1c33 Ticket #1899 Update Astyle flags to match older Astyle behavior. 2010-07-30 22:06:24 +03:00
Daniel Marjamäki c718a7c595 astyle: Update to astyle 1.24 2010-04-15 20:08:51 +02:00
Daniel Marjamäki 09859c1019 refactoring the folder structure 2009-10-25 12:49:06 +01:00
Vesa Pikki b39c15410b Began implementing a simple Qt based GUI.
Also modified astyle scripts to format gui code aswell.
2009-03-01 07:38:21 +00:00