Commit Graph

10 Commits

Author SHA1 Message Date
Christian Kandeler
378b057a9f By default, look for the clang executable in Creator's libexec dir.
It will be part of the installation from 3.5 on.
Also look explicitly for "clang-cl" on Windows now, as we do not
ship clang.exe.

Change-Id: I67e22ed4251791dd59015dd6f9648c7a14d941d7
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-07-14 12:12:32 +03:00
Christian Kandeler
c26e6e398b Settings widget: Make sure initial path is also validated.
Without this patch, validation kicks in only on user input.

Change-Id: I791c45b214e7e171f59c66c7d96f3e85a668427e
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-06-26 17:23:29 +03:00
Nikolai Kosjar
3529df2e6e Fix license header
Change-Id: I017092613cdec7c00736442c10ca80b3c74f0189
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2015-06-26 10:24:06 +03:00
Eike Ziller
1a122c2e25 Get rid of FancyLineEdit::validate
Use aggregation instead of inheritance for customization of validation

Change-Id: I5a9703bad5bace78e8c3cc1e2c353a734001bd0a
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-05-06 18:50:07 +03:00
Eike Ziller
462f4054fe Merge remote-tracking branch 'origin/3.4' 2015-04-15 17:27:02 +02:00
Christian Kandeler
3c9346a219 De-QObjectify Settings class.
Change-Id: I67d6caff28f1196bec16cfef4dda6354700130f0
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-04-13 12:58:48 +03:00
Christian Kandeler
3ba48ca11e Remove now-unneeded PathChooser subclass.
Change-Id: Ic7cbe4566159675ae9e776d723ed213c1e7c71ec
Reviewed-by: Andre Poenitz <andre.poenitz@theqtcompany.com>
2015-03-03 14:25:15 +02:00
Christian Kandeler
bba6f927e9 Don't attempt to analyze using icecc masquerading as clang.
Also warn the user in the settings page against this.

Change-Id: I4dbae953aa85f8dbdc9baa8dd0fda8ff0da45b76
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-02-26 17:44:37 +02:00
Eike Ziller
c98db856f9 Update License
Change-Id: I0a127e78046369f7b55b3ace7b08a13a3f5319e5
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-01-15 18:46:29 +02:00
Nikolai Kosjar
b9f9eb7ae5 Import Clang Static Analyzer plugin
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>
2014-10-16 13:36:09 +03:00