aboutsummaryrefslogtreecommitdiffstats
path: root/dev-scripts/generate.py
Commit message (Collapse)AuthorAgeFilesLines
* cmake: Add a test per check, instead of having only 1 big testSergio Martins2021-07-181-0/+14
| | | | | | | | | | Now you can pass -j12 or so to ctest. This gives nicer output. run_tests.py already had support for running stuff in parallel, but defaulted to multiprocessing.cpu_count(). Now users can use a more standard way of doing things and they only need to know ctest.
* Use boost:regex if std::regex is missingSergio Martins2019-10-281-9/+0
| | | | | | So older distros have full functionality, old-style-connect is no longer optional. Suppressions with //clazy:exclude= also use regex and will be available unconditionally
* generate.py: Also remove level3 from the readmesSergio Martins2019-09-031-1/+1
| | | | Level2 is the max now
* generate.py: remove level3, it's no longer a thingSergio Martins2019-09-031-1/+1
| | | | max level is 2
* generate.py: Fix editing of ChangelogSergio Martins2019-05-111-1/+2
| | | | | It was adding an entry for every existing check, not only for the new ones
* Remove level3 and movel those 5 checks to manual levelSergio Martins2019-03-041-1/+1
| | | | | Doesn't make sense to enable them all at the same time. Each one must be carefully considered, as they are unstable.
* Make it easier to link to READMEs by removing the level name.Sergio Martins2018-05-151-4/+42
| | | | | | | After make install they will still be installed to a level0, 1, 2 sub-folder, as the cmake instructions are generated by generate.py BUG: 394237
* generate.py: Make it work on WindowsSergio Martins2018-03-081-7/+7
|
* generate.py: Detect check moves between levelsSergio Martins2018-03-041-19/+58
| | | | | Meaning changing the level in checks.json will automatically move the files to the correct place.
* generate.py: Allow to specify which checks to generateSergio Martins2018-03-031-3/+13
| | | | | | | | This is useful to decrease build times while developing a new check , as touching Utils*h classes will trigger long rebuilds. By doing ./generate.py --generate <my-check> only my check will be built.
* checks starting with qt- should have classname starting with QtSergio Martins2018-03-031-3/+6
| | | | Not QT.
* generate.py: Fix bug where files wouldn't be createdSergio Martins2018-03-031-6/+6
|
* checks.json: 'categories' is not a mandatory keySergio Martins2018-03-031-1/+2
|
* generate.py: Also generate Changelog entry when creating a new checkSergio Martins2018-03-031-2/+13
|
* generate.py: Print a message when nothing was needed to be generatedSergio Martins2018-03-031-11/+43
|
* cleanupSergio Martins2018-03-031-15/+5
|
* cleanupSergio Martins2018-03-031-20/+24
|
* generate.py: Also generate the check's cpp and header from templateSergio Martins2018-03-031-3/+49
| | | | | deduces copyright year and author from GIT_AUTHOR_NAME env Now all the boiler plate is taken care of when creating a new check.
* generate.py: Generate unit-test folder and filesSergio Martins2018-03-021-0/+20
|
* generate.py: Generate README's for checks that don't have oneSergio Martins2018-03-021-0/+19
| | | | Detected two checks with readme in wrong folder.
* generate.py: Print help if no arguments givenSergio Martins2018-03-021-0/+2
|
* Allow to run generate.py from any folder, not just top-levelSergio Martins2018-03-021-5/+8
|
* README: Fix anchors of urls for manual levelSergio Martins2018-03-021-11/+18
| | | | They were pointing to an inexistant path
* generate.py now also generates the README.md's list of checksSergio Martins2018-03-021-11/+34
| | | | No more manual editing.
* generate.py now also generates CheckSources.cmakeSergio Martins2018-03-021-6/+48
| | | | | This makes it easier to compile only 1 check, useful during development to reduce build times, you just trim down checks.json and generate
* Update README, also include checks from manual levelSergio Martins2018-02-231-2/+10
|
* Rename HiddenLevel to ManualLevelSergio Martins2018-02-231-2/+2
| | | | | It's not really hidden, it's just manual. Checks here should be explicitly enabled.
* Move code for generating README.md list of checks to python scriptSergio Martins2018-01-141-2/+34
| | | | No need for it to be in the main binary
* Fix build with C++ library without std::regexSergio Martins2018-01-081-0/+10
|
* Only call VisitStmt/VisitDecl() on checks that need itSergio Martins2017-12-121-4/+20
| | | | | | | | | | | | | | This optimizes a hot-path, the for loops that distribute all statements and all declarations through all checks. Previously we iterated the whole m_createChecks vector, which isn't required since some checks only need to visit declarations and others only need to visit statements. Each check now needs to express it's interest in checks.json. Saves 200ms when building qwidget.cpp, so should be significant when building the whole Qt
* Move CheckManager::isReservedCheckName() out of the main binarySergio Martins2017-12-121-0/+12
| | | | | Now done by generate.py which reads checks.json. No reason to have these checks at runtime.
* Checks.h: Make the generated code prettier / less verboseSergio Martins2017-12-121-3/+14
|
* Replace the REGISTER_* macros with auto-generated codeSergio Martins2017-12-121-0/+169
All checks are now registered in Checks.h, this file is auto generated from the contents in checks.json. This means checks.json is now the authority and this measure ensures it's contents is correct, otherwise the unit-tests fail. List of checks from Readme and anchor header will also be generated from checks.json in the future.