summaryrefslogtreecommitdiff
path: root/plugins
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove overide declarations.Christian Kandeler2015-02-132-2/+2
| | | | | | | Not ready yet. Change-Id: I800e75c526ff8609849526c3317a6d0a1658176b Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* Merge remote-tracking branch 'origin/3.3'Eike Ziller2015-02-1329-116/+116
|\ | | | | | | | | | | | | Conflicts: plugins/clangstaticanalyzer/ClangStaticAnalyzer.json.in Change-Id: Iffa578b015c51375cdb2d9930830cb2d76433bc7
| * Update Licensecsa-v3.3.2csa-v3.3.1csa-3.3Eike Ziller2015-01-1529-116/+116
| | | | | | | | | | Change-Id: I0a127e78046369f7b55b3ace7b08a13a3f5319e5 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* | Adapt to API change in mainline Creator.Christian Kandeler2015-02-122-58/+27
| | | | | | | | | | Change-Id: If1028fcf28373d99394d081c98e5cbc46aca81c5 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* | Add unit tests.Christian Kandeler2015-02-0913-0/+227
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These test the complete workflow as the user experiences it when clicking "Start". Intended usage: (1) Run sdktool to set up a kit with the toolchain you want to test against (using a temporary directory). The tests assume exactly one Kit to be present. (2) Start Creator with a matching settings path and "-load ClangStaticAnalyzer -test ClangStaticAnalyzer". (3) Repeat until all toolchains have been tested. The initial implementation tests one trivial source file with both qbs and qmake. Change-Id: I810f23e2990a789a4dd9f1dd16335fbcf5c5f39f Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* | Enable run control for mingw toolchains.Christian Kandeler2015-02-031-0/+1
| | | | | | | | | | | | | | This is supported now. Change-Id: If56be39138f8cb6c10e486e4a48e35964bdc0a94 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* | Add support for MSVC.Christian Kandeler2015-01-308-24/+56
| | | | | | | | | | | | | | Via clang-cl, which supports the --analyze option now. Change-Id: Idbefe048eaa80e8c5bdb2244cb30c26ba7c71ef5 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* | Add qbs project files for autotests.Christian Kandeler2015-01-304-0/+58
| | | | | | | | | | Change-Id: I7fefef8059e11fc7d08168c147e0dc8c6be7d466 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* | RunControl: Reset future interface before in startEngine()Nikolai Kosjar2015-01-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes an infinite loop for the following use case: 1. Menu: Analyze > Clang Static Analzyer 2. When finished, click "Re-run this run-configuration" in the application output pane m_progress was left in the isFinished() state and the next run to startEngine() called analyzeNextFile() which returned immediately. Change-Id: I8acf4f03dfc1d7f81034610828f6fb707655bd52 Sanity-Review: Sanity Bot <srv.sanitybot@digia.com> Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
* | Turn QTC_ASSERT into normal check.Christian Kandeler2015-01-201-2/+2
|/ | | | | | | | It is not an error if no toolchain is present in the kit. It just means the same as the toolchain not being gcc or clang. Change-Id: I193fd196ab830321dade1c3d32080b81a93cf645 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* DiagnosticDelegate: Fix leaking QVBoxLayoutcsa-v3.3.0-rc1csa-v3.3.0Nikolai Kosjar2014-11-251-1/+2
| | | | | Change-Id: I523c2c13b2b7f2b2eebc00781b6a2e18a74f8c17 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* Use QString::toHtmlEscaped() for GUI textNikolai Kosjar2014-11-252-7/+12
| | | | | | | | | Otherwise diagnostics mentioning the '<<' operator might be interpreted strangely. Task-number: QCE-21 Change-Id: Ifc55335a6639020c143edd5f8b02158f8c8ab651 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* DiagnosticView: Add copy action to context menuNikolai Kosjar2014-11-253-17/+98
| | | | | | | Task-number: QCE-22 Change-Id: I22a71bd99689e4eaece3b2595b28e0d434a52453 Reviewed-by: Riitta-Leena Miettinen <riitta-leena.miettinen@digia.com> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* Tool: Use "No" button in mode check dialogNikolai Kosjar2014-11-241-3/+1
| | | | | | | | ...instead of "Cancel". Task-number: QCE-20 Change-Id: Ibef52dc17cb3aee73e1f42eb1c64e4f9d5a9f990 Reviewed-by: Robert Loehning <robert.loehning@theqtcompany.com>
* Add missing variable initializations.Christian Kandeler2014-11-201-2/+2
| | | | | Change-Id: Ib3573ee41915fe750c8615755ee1d4355cb0137d Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* Add qbs project file.Christian Kandeler2014-11-181-0/+47
| | | | | Change-Id: I675c1f95d7a22dca4a6cfdc8bec3f815d2576884 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* Check for valid DiagnosticNikolai Kosjar2014-11-143-0/+10
| | | | | Change-Id: Icfce44a373d56f008027330f9b1a2d446f4d2adb Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* RunControl: Skip sub projects not selected for buildingNikolai Kosjar2014-11-071-0/+3
| | | | | Change-Id: I38e5a4f829484a7970fa4b6b06f00ec4cc92e8d0 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* Sort files to processNikolai Kosjar2014-11-071-3/+9
| | | | | Change-Id: Iac23e40c3154bf143b91d0262418f90907758276 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* Use updated ProjectInfoNikolai Kosjar2014-11-073-17/+29
| | | | | | | | ...that actually make us use the ProjectInfo with updated CompilerCallData. Change-Id: Ieee298b3db64159f3faa02231921275e4466bcb5 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* Ensure that project configuration did not changeNikolai Kosjar2014-11-077-23/+81
| | | | | | | Otherwise we might try to analyze invalid or vanished files. Change-Id: I387dfb127618f2db21a538b07e1c152dbd026ca6 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* RunControl: Handle also ProjectInfo::CompilerCallDataNikolai Kosjar2014-11-072-55/+107
| | | | | | | ...if it's available. Change-Id: I41b8ab30e0c87ddd223f115e759bbd2a2c86cc68 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* Adapt to qtcreator 3.3 changes / Compile fixNikolai Kosjar2014-11-071-1/+1
| | | | | Change-Id: I6074f163184b5287b4ba6b791cadbeeb47ae1e4e Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* Load the plugin only on Linux / OS XNikolai Kosjar2014-11-031-0/+1
| | | | | | | | | | | | | | | | | | | On these platforms clang and/or gcc are available and the QMakeProject and QbsProject can provide "enough" information. Windows/MinGW: Currently mingw 4.8.2 can't be used with clang 3.5. See https://www.mail-archive.com/mingw-w64-public@lists.sourceforge.net/msg09490.html Tests with mingw 4.9 are needed. Windows/MSVC: This needs more investigation. Observations so far: * Does not work at the moment calling clang.exe. * clang-cl.exe does not understand '--analyze'. Passing '-Xclang --analyze' in does not help either. Change-Id: I83afe4a186cba67faf7bd0ad6c1de42790e281b2 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* Tool: Warn on run in Release modeNikolai Kosjar2014-10-311-4/+45
| | | | | Change-Id: I3443ccc8daf37a1b10b43df3736fcf24c7ae2fea Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* Runner: Use Utils::SynchronousProcess::stopProcessNikolai Kosjar2014-10-311-8/+3
| | | | | Change-Id: I77b0b039dae230c80a02f1692985c517bdd52023 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* Tool: Clear model already before building the projectNikolai Kosjar2014-10-311-4/+7
| | | | | Change-Id: I507056c9a5ee950bd95541a9e3042e9af23c0731 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* RunControl: Show more status in Application Output paneNikolai Kosjar2014-10-314-9/+48
| | | | | Change-Id: I07e80e5a987612c19247a2d9a0628382b1136a06 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* RunControl: Announce starting and finishing in Application output panecsa-v3.3.0-beta1Nikolai Kosjar2014-10-291-4/+11
| | | | | Change-Id: I040f848dbdd6ef92ce03525e91c4b536390df9b4 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* RunControl: Fix 'Stop'Nikolai Kosjar2014-10-283-10/+21
| | | | | | | | Terminate/kill current runners, so that the GUI will reflect that quite soon and not if all runners finished. Change-Id: I83eed6ecf1678444a8b38bab6cc05d8694a4eb49 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* Runner: Print command line with quoted argumentsNikolai Kosjar2014-10-281-1/+1
| | | | | | | ...for easier debugging. Change-Id: I53d4128defd9ac03350ce38d4d3f687191921a15 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* RunControlFactory: Limit to Clang/GCC toolchainNikolai Kosjar2014-10-271-2/+16
| | | | | Change-Id: Ib50572a062f0bbe9950fee108b53ba8e7370f459 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* RunControlFactory: Do not limit to LocalApplicationRunConfigurationNikolai Kosjar2014-10-271-7/+2
| | | | | Change-Id: I088ef62b8baf98392cbda962f272ea4742bb8fc1 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* Runner: Clarify requirements for run()Nikolai Kosjar2014-10-241-1/+3
| | | | | Change-Id: I51bfe1382e7692582dc361a65f104c17e578eb53 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* Tests: Fix running testsNikolai Kosjar2014-10-241-3/+3
| | | | | Change-Id: I5e32a900ce5a55ae4d49dd8fdae7e375e861a227 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* Tests: Fix reference to qtcreator directoryNikolai Kosjar2014-10-241-2/+2
| | | | | Change-Id: I1ba118394a3b97d9a2f6ddf94b1d12e0133c3d9d Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* RunControl: qCDebug(LOG()) --> qCDebug(LOG)Nikolai Kosjar2014-10-241-2/+2
| | | | | Change-Id: I31ae029e2bd66badebfb40dc026d7de2158c4c13 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* Remove some debug codeNikolai Kosjar2014-10-241-4/+0
| | | | | Change-Id: I0c23a5956ae921cdbe1e87cd12c3bc247fdedfbc Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* RunControl: Use the project from the RunConfigurationNikolai Kosjar2014-10-241-4/+8
| | | | | Change-Id: I9f9214bc82e9d3ebecb3974ff5197f4af885fa07 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* RunControl: Pass on toolchain defines and language optionsNikolai Kosjar2014-10-234-33/+50
| | | | | Change-Id: I3a44707f7f27e1b4bb781886b63b23a3c20e0414 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* Set experimental attributeNikolai Kosjar2014-10-231-0/+1
| | | | | Change-Id: I0eb38defb189c58b52de7cb424a7e2b72e0d205d Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* Fix logging category namesNikolai Kosjar2014-10-222-2/+2
| | | | | Change-Id: Ie4568879656a9c6c7f1713b354c4a8cf59934dd7 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* Remove ClangCodeModel depenencyNikolai Kosjar2014-10-221-1/+0
| | | | | Change-Id: I9357c380b2e432e7af61c7c14164ae5c196fccbd Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* Align to qt-creator 3.3 changesNikolai Kosjar2014-10-221-2/+3
| | | | | Change-Id: I3873c869f678c82b1e88c3860f62385de19ff20d Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* There is no PROVIDER anymoreEike Ziller2014-10-161-1/+0
| | | | | Change-Id: Id78aa8deda3907bd586726e0def1aba47ad6da1a Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* Import Clang Static Analyzer pluginNikolai Kosjar2014-10-1638-0/+3267
This plugin adds "Clang Static Analyzer" to the Analyze mode, which processes all implementation/source project files of the current project. For this, it will call the clang executable for each file. The found diagnostics will be displayed in a view similar to the one used in "Valgrind Memory Analyzer". The user can specify the clang executable to use and the number of concurrent processes to launch in Menu: Tools > Options > Analyzer > Clang Static Analyzer. Main TODOs: * Fiddle around the appropriate command line options, currently only defines and include paths are passed on. * Tests on Windows / OS X. * Remove dependency to clangcodemodel by moving the functions that create command line arguments to CppTools. Mostly they are not even specific to clang (but would also work with gcc). * Maybe limit to a range of tested clang versions. * How to deal with directory containing all the log files after the user starts a new run or Creator is shut down? (delete it? leave it there? make it configurable?). * Find out how to properly integrate the tests. Imaginable future additions: * Adding a button to load result/log files from a directory, e.g. if the user used the 'scan-build' approach. * Adding a button with a filter menu in order to display only diagnostics from certain categories, similar to "Valgrind Memory Analyzer". Change-Id: I6aeb5dfdbdfa239a06c03dd8759a983df71b77ea Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>