From d0f3d7cb89a234f88b06bc19a41e50c41b1eab0a Mon Sep 17 00:00:00 2001 From: Nikolai Kosjar Date: Mon, 29 Oct 2012 13:54:33 +0100 Subject: C++: Clean up dev tools. * Add -h and -help options describing the tools and their usage. * Make the tools compile and run on Windows (MinGW, MSVC). * Rename project dirs, executables and main source files to more meaningful names: - Use same base name for project dir, *.pro file, main source file and (if applicable) script file. - Use the prefix "cplusplus-". - The names are now: - gen-cpp-ast/generate-ast --> cplusplus-update-frontend - mkvisitor --> cplusplus-mkvisitor - cplusplus-dump/cplusplus0 --> cplusplus-ast2png * Get rid of 'c++' shell scripts. * Get rid of duplicates of 'conf.c++'. Rename to 'pp-configuration.inc'. * Introduce src/tools/cplusplus-tools-utils containing common stuff that is used at least in two tools. 'pp-configuration.inc' can also be found here. * cplusplus-update-frontend: - Print file paths of written files to stdout. - Convenience: Use default values referencing the appropriate dirs and files. * cplusplus-mkvisitor: - Take only one argument, namely the path to AST.h. - Convenience: Use default path to AST.h. * cplusplus-ast2png: - Make it run without LD_LIBRARY_PATH. - As the name suggests, generate image files in png format (needs 'dot' from graphviz). - Convenience: Read from stdin, which useful for small snippets. Change-Id: I79c4061fce4a1571c0588dfedd50d4a70715d9df Reviewed-by: Erik Verbruggen --- .gitignore | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to '.gitignore') diff --git a/.gitignore b/.gitignore index 35bc4f285e..caaca826c5 100644 --- a/.gitignore +++ b/.gitignore @@ -109,8 +109,10 @@ bin/qml2puppet.exe bin/qtpromaker bin/qtpromaker.exe share/doc/qtcreator/*.qch -src/tools/gen-cpp-ast/generate-ast -src/tools/mkvisitor/cplusplus0 +src/tools/cplusplus-mkvisitor/cplusplus-mkvisitor +src/tools/cplusplus-mkvisitor/cplusplus-mkvisitor.exe +src/tools/cplusplus-update-frontend/cplusplus-update-frontend +src/tools/cplusplus-update-frontend/cplusplus-update-frontend.exe src/tools/qml/qmldump/qmldump src/tools/examplesscanner/examplesscanner src/tools/valgrindfake/valgrind-fake @@ -118,13 +120,15 @@ bin/*.exe # Tests #------ -tests/manual/cplusplus-frontend/cplusplus0 -tests/manual/cplusplus-dump/cplusplus0 +tests/manual/cplusplus-frontend/cplusplus-frontend +tests/manual/cplusplus-frontend/cplusplus-frontend.exe tests/manual/qml-ast2dot/qml-ast2dot tests/manual/debugger/simple/libsimple_test_plugin.*dylib tests/manual/debugger/simple/simple_test_app tests/manual/plain-cplusplus/plain-c++ tests/manual/preprocessor/pp +tests/tools/cplusplus-ast2png/cplusplus-ast2png +tests/tools/cplusplus-ast2png/cplusplus-ast2png.exe tests/auto/cplusplus/codegen/tst_codegen tests/auto/cplusplus/ast/tst_ast tests/auto/cplusplus/codeformatter/tst_codeformatter -- cgit v1.2.3