summaryrefslogtreecommitdiff
path: root/src/tools/3rdparty/cplusplus-keywordgen/cplusplus-keywordgen.cpp
Commit message (Collapse)AuthorAgeFilesLines
* C++: Fix cplusplus-keywordgen to generate Keywords.cppVolodymyr Zibarov2020-05-281-99/+300
| | | | | | | | | | | | | | | | | | | | | | | Fix kewordgen to generate current Keywords.cpp with minimal diff, but also to be compatible with old usage and kwgen files. Add new parameters: %no-namespace-for-tokens - not use namespace for tokens %pre-check-argument - set type and name of additional variable to use %function-name - name of a function ("classify" by default) %pre-check - name of a variable to check for a keyword (i.e. cxxEnabled) Now "%%" is also used to end and restart keywords parsing to be able to generate additional keywords for classifyOperator() Automatically add checks for LanguageFeatures to generated code Pass input and output files with command line arguments, print usage Update Keywords.kwgen to include all keywords currently used Add missing aliases to Token.h Change-Id: I6cc84e150e0d797277204032fc05ce9cfbd01f58 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* C++ Tools: apply clang-format on cplusplus-keywordgen.cppVolodymyr Zibarov2020-05-271-234/+255
| | | | | | | | There is no history for this file after it was moved, so there's no harm of beautifying it to be able to read and change. Change-Id: Iec2ad5bc9d8553589b2d2512f69991f772808d89 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* C++: Fix compile warningNikolai Kosjar2016-04-151-1/+1
| | | | | | | | | | | ...with clang: cplusplus-keywordgen.cpp:74:1: warning: 'State' defined as a struct here but previously declared as a class [-Wmismatched-tags] Change-Id: Ibf95439e060a5bb32f0aae7d3f3a34c8821165bd Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* C++: Move cplusplus-keywordgen into src/tools/3rdpartyNikolai Kosjar2016-04-071-0/+332
Change-Id: I9a669497d4ec5db6ade270c272bf52a365cfc7fe Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>