Commit Graph

32962 Commits

Author SHA1 Message Date
Tim Jenssen
48cb9f124d improve process finished message
Change-Id: Id045df62c953954ae18d62c5f128d4ed46dc9aeb
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2015-02-23 09:13:17 +00:00
Christian Kandeler
2244adcca8 SSH: Add support for SHA-256 HMAC.
As recommended in RFC 6668.

Task-number: QTCREATORBUG-14008
Change-Id: Icd4613dda9cce2b482499c626b863c17e8fa0c20
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2015-02-20 14:59:09 +00:00
Friedemann Kleint
143af2845d Fix excessive warnings by MSVC 2013 64bit about size_t->int truncation
C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data

Change-Id: I91979c685bbbd84359f7f4e19911a21a408f5d23
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-02-20 14:27:51 +00:00
Nikolai Kosjar
21e9893b4b CppTools: Fix completing qt5 style signals/slots in connect()
* Fix qualifying the member function, take namespace into account
* Fallback to usual completion if we cannot provide anything
* Ensure that the completion is not triggered outside connect() calls
* Change to a two step process:

    1. connect(obj, &         // offer class name completion
    2. connect(obj, &N::Foo:: // offer signal completions

  ...same for the 4th. argument.

Change-Id: Ifa4c74cde1b96ec7c544daaeefc47c4efdd8294a
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
2015-02-20 13:11:17 +00:00
Orgad Shaneh
f3a2795c3b C++: Use correct features for document parsing
Task-number: QTCREATORBUG-8007
Change-Id: Ic96aaa433442812a99bac9d16bb9124d66762e8c
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-02-20 12:54:49 +00:00
hjk
63247edd90 Analyzer: Reduce explicit use of RunMode enum
Change-Id: Idcdeb2b42879f419154902e685d0d13e8cae8b33
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-02-20 09:35:27 +00:00
hjk
813e995ebf Analyzer: Reduce explicit use of StartMode enum
Change-Id: I27b1d06395dea940c8dd39cd2bd41fc09cee3a9c
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-02-20 09:35:24 +00:00
Tobias Hunger
1eb36bb1d3 SVN: Save description as utf-8 string
We tell SVN that the file is utf-8, so we need to make sure we save it as
such.

Task-number: QTCREATORBUG-13979
Change-Id: I49edf477bf80c6b21cd99bc86fbd2555d7181a0b
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-02-20 09:00:16 +00:00
Tobias Hunger
16f9e10e72 VcsBase: Make the description directly available in Submit Editor
Make the description directly available to subclasses of the submit
editor.

Change-Id: Ieb6f99091fdcb6f794491169e637bec53a04dacb
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-02-20 08:59:27 +00:00
Tobias Hunger
541dde7ecc SVN: Remove commented out code
Change-Id: Ie1a3a73b553840a700e4c8dc229c6902afdafdc4
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-02-20 08:22:35 +00:00
hjk
6c9ea34f9f Core: Modernize connections in ExternalToolManager
Change-Id: I1be66d132886da0b1bde4fe5578fc64bcd2f8e98
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-02-19 14:09:53 +00:00
hjk
289e660fb7 Debugger: Simplify code to open disassembler view from context menu
Also, correct an off-by-one in column "computation" that always
resulted in "no function" here from the C++ model which assumes
column count starting at 1.

Change-Id: I9a34d4ffaaa25131d5a130c57ec10f1ce8e8a184
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-02-19 12:53:06 +00:00
hjk
50b3f7c69a Core: MainWindow code cosmetics
Modernize connections, namespace Utils, include order.

Change-Id: Ic2e414dd4fb55821c6314bfc5256ce166fd70c2e
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-02-19 12:37:32 +00:00
hjk
aab3b6f816 Analyzer: Move isRunnable() decision to AnalyzerAction
Closer to where the information is.

Change-Id: I3ff7e933a99baf8a18e6532213aef0539a364a76
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-02-19 12:37:04 +00:00
hjk
9d707ac63c Analyzers: Various cleanups
Fallout after the demise of IAnalizerTool.

Change-Id: I68f936ed5f2929dc4f09a408bdf6b0ea38e568ef
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-02-19 12:36:52 +00:00
Ulf Hermann
8b8f8ca2ba Allow QML profiling when using Qt Quick compiler
Change-Id: I40784b51e36c3c77fce6bf077613d19579336db6
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
2015-02-19 10:09:07 +00:00
hjk
23ad61fc9d Debugger: Dissolve ConditionalBreakPointCookie structure
After dropping the QVariant cookies the structure is not needed.

Change-Id: Ib6f702bedeb250518ac0b7019e32d2caa62eb616
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-02-19 09:13:08 +00:00
hjk
c3184ee790 Valgrind: Simplify callgrind context menu creation
Change-Id: I5ea4bdf2dc6f4d3867e6abbc8d4cd6a1149a17b2
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-02-19 08:55:03 +00:00
Thomas Hartmann
ee2a64d875 QmlDesigner: Fix clang warning
Change-Id: Ie783b8e32697a286cabbf25b06d06578d62a7340
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-02-19 08:18:31 +00:00
hjk
61cca902ad FakeVim: Modernize plugin connections.
Change-Id: Ia704aa975e64cc8942b4e5717f812b7c1a788096
Reviewed-by: Lukas Holecek <hluk@email.cz>
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-02-19 07:22:32 +00:00
hjk
db8b2e8512 Analyzer: Use toolId instead of AnalyzerAction when sufficient
Less code.

Change-Id: I62ef8f9a87e57d109673bd7ae0ca945440961e78
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-02-18 15:31:04 +00:00
Eike Ziller
ee26bbc537 Mime types: Fix detection of Objective-C++ source files
Freedesktop has .mm as "Troff MM input document"

Change-Id: I9e06089a6054c3b771a1519918e0818265794136
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-02-18 15:27:19 +00:00
Eike Ziller
d877f0983d MimeDatabase: Prevent funny mixing of different mime type definitions
If multiple definitions for the same mime type are found, the mime XML
parser/provider would on the one hand replace the first MimeType instance
by the later one, but on the other hand keep all previously parsed glob
and magic matchers from the first definition.

The patch
- makes the XML parser ignore definitions of mime types that are already
defined
- parses custom types first, so custom types can override types from
freedesktop.org.xml

This fixes opening Cmake projects (CMakeLists.txt) in Qt Creator,
because freedesktop.org.xml defines these files to be x-cmake, but
we need them to be x-cmake-project.

Change-Id: Ia5598c2d0201f608aed6ae8c3268f0512d822f51
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
2015-02-18 15:27:02 +00:00
Tobias Hunger
839d226d70 QMake: Stop "Run qmake" from going MIA
... whenever closing all editors.

Change-Id: Ic7d09ef1260ab1ac826bacd60fdd705585e764b6
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
2015-02-18 15:10:29 +00:00
Eike Ziller
09716d64b3 MimeData: Never detect anything as application/x-zerosize
- That mime type is pretty useless
- If there are two mime types that match a file by glob pattern, the mime
database implementation will find the best matching mime type by data of
*all* mime types and take that instead (this doesn't make sense btw).
That means that if .h is matched by c-hdr and c++-hdr, empty .h files are
detected as mime type application/x-zerosize, which is pretty useless

Change-Id: I4f9d532ef1efd29df00279c693486c92611485a8
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
2015-02-18 14:52:27 +00:00
hjk
73e2b0c579 Analyzer: Dissolve IAnalyzerTool
Change-Id: I1fd90cf00d6b9dff54b4555a14747282830a4b93
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-02-18 14:52:07 +00:00
hjk
ca04d009f2 Analyzer: Move non-static parts of IAnalyzerTool::start*Tool
... to user code.

Change-Id: Ibe278134e39cfb3f90acedc976fab5e9dc019046
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-02-18 14:52:01 +00:00
Christian Kandeler
05f8a2c813 qbs build: Introduce convenience project property sharedSourcesDir.
Change-Id: I69aacc7391e6e25e66eae1fb54b3c1cfb18679ee
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2015-02-18 14:49:06 +00:00
hjk
64be0004a6 Analyzer: Remove IAnalyzerTool::m_toolMode member
It's always known from the context when needed.

Change-Id: Ibf314dfb779190e89b775acab784ed71acff2c83
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-02-18 13:24:01 +00:00
hjk
e058dbe775 Debugger: Remove not-too-useful local typedef and typo
Change-Id: I260c06c32c1929953ae03a9c7cfec71e004a3c88
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-02-18 13:00:41 +00:00
hjk
35d3088252 Analyzer: Move runMode member from IAnalyzerTool to AnalyzerAction
Slim down tool before dissolving.

Change-Id: I502aaa8860293acf8bfd93f541b751d5b96a9563
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-02-18 12:51:52 +00:00
Oliver Wolff
a780ddc873 MSVC: Prioritize x86_arm cross compiler over x64_arm
Windows Phone and WinRT builds only support the x86_arm cross compiler.
With this change this behavior is auto detected by Qt Creator for these
builds (due to being higher prioritized). As soon as Windows Phone/WinRT
builds support cross compilation from x64, this change can be reverted.

Task-number: QTBUG-44530
Change-Id: I16ffe47c4582f51abdb6ef57b5922eb13863fd4e
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-02-18 12:45:52 +00:00
Sergio Ahumada
e84770b794 Adapt documentation URL
Change-Id: I74963a9d4a729450341f4f7a4ae5b3583654ffb8
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
2015-02-18 12:38:23 +00:00
Nikolai Kosjar
93c8509a50 CppTools: Tests: time out in waitForFileInGlobalSnapshot()
Change-Id: I0bf7d826d53749c5fd1be1e4f3c2faa403d13342
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-02-18 12:16:29 +00:00
Nikolai Kosjar
1e0b7e527f Debugger: Fix crash when hitting a break point
Change-Id: Ie1665f546ef683fc92a5a0cda20150886257844e
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-02-18 12:05:05 +00:00
hjk
da92b09969 Valgrind: Dissolve ValgrindTool hierarchy level
Medium term all *Tool should be replaced by RunControl(Factory)
to make the analyzer architecture more similar to Qt Creator core

Change-Id: I892cfc7fe45c73cc6ac4442a288810b83cb24c17
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-02-18 11:24:15 +00:00
Kai Koehne
5ab7500b64 Do not expand display name when updating auto-detected Qt versions
Task-number: QTCREATORBUG-13989
Change-Id: Id1e3d756f732b41e544f08ef74432002b7b8dc9f
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-02-18 11:09:24 +00:00
Orgad Shaneh
538af8ba17 QmakePM: Fix case-only rename on Windows
ProjectExplorer::compareSortedLists detects added and removed files
by comparing the "old" and "new" lists using the provided sorter.

If the sorter ignores case, then the file is neither added nor removed.

Task-number: QTCREATORBUG-13981
Change-Id: If91c18cfa58bd8f00acfc453779750248bb77c01
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
2015-02-18 10:56:13 +00:00
Thomas Hartmann
1ccb0d5b78 Debugger: Cleanup
Change-Id: I4ccb14bdd92f70fe8c7c09ad10992238041ce59a
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-02-18 10:23:00 +00:00
Thomas Hartmann
6bb011059b Debugger: Compile fix for VS 2012
Change-Id: I4ccb14bdd92f70fe8c7c08ad10992238041ce58a
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-02-18 10:14:57 +00:00
Orgad Shaneh
b6de2d1bd8 QmlDesigner: Remove unneeded qualifications
Mostly done using the following ruby script:
Dir.glob('**/*.cpp').each { |file|
  next if file =~ %r{src/shared/qbs|/qmljs/}
  s = File.read(file)
  s.scan(/^using namespace (.*);$/) {
    ns = $1
    t = s.gsub(/^(.*)\b#{ns}::((?!Const)[A-Z])/) { |m|
      before = $1
      char = $2
      if before =~ /"|\/\/|\\|using|SIGNAL|SLOT|Q_/
        m
      else
        before + char
      end
    }
    if t != s
      puts file
      File.open(file, 'w').write(t)
    end
  }
}

Change-Id: I492792bb9e5655c55795e938031efc557c9a462f
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2015-02-18 09:53:25 +00:00
hjk
42af154c77 Debugger: Avoid QVariant cookies in CDB callback handling
Thanks to lambdas we can now pass them directly.

Change-Id: I3d5189596c41f84adc168ec093051f4400da04c7
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-02-18 09:32:23 +00:00
hjk
23647954f8 QmlProfiler: Remove QmlProfilerAction
It's an empty shell.

Change-Id: Ifc382e66fb2c2885b82342ebf53dfc219926658e
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
2015-02-18 09:24:38 +00:00
hjk
dcb5d14bc7 Debugger: Squash CdbCommandBase based hierarchy
This was introducing more code duplication then it saved. Put
everything into a CdbCommand class for now.

Change-Id: I32180da2ab70da28a890a7d8ac72170ee0dc0ff2
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-02-18 08:54:21 +00:00
hjk
0eba47065f Analyzer: Merge ValgrindAction into AnalyzerAction
It was an empty shell.

Change-Id: I8bd915270c2b4b03b1ba638521ec35609a05b512
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-02-18 08:53:38 +00:00
Thomas Hartmann
27290abc13 QmlDesigner: Removing using namespace QmlJS::AST from TextToModelMerger
The namespace AST contains some very generic definitions like
TypeName, Node and cast.
Therefore we qualify all types with AST:: and remove the using directive.

Change-Id: I3f8651956b811bb352a5f04105e60423f07440c6
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-02-18 08:41:43 +00:00
Thomas Hartmann
02ef7c6363 QmlDesigner: Do not use using namespace in AddPropertyVisitor
Both QmlDesigner and QmlJS:AST do define TypeName.
To resolve the ambiguity we remove using for  QmlJS::AST.

Change-Id: If5ca61215701a9b55743225284a5bdde657cba83
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-02-18 08:41:37 +00:00
hjk
b27b7bc251 Debugger: Rename some CdbCommand* members
... in preparation of squashing the hierarchy and later replacing
it with the base DebuggerCommand.

Change-Id: If01119bfcc5c3f5e96a60652183b1b7a89c1f96e
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-02-18 08:35:14 +00:00
hjk
e4fb098842 Debugger: Decrease dependency of protocol structures on Qt
For potential re-use in qtcreatorcdbextension.

Change-Id: Ia5742b61c71fcd04eeaa894ed62218151d528a53
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-02-18 08:07:13 +00:00
hjk
6d9aa0f46e Debugger: Remove unneeded code in the protocol implementation
Change-Id: I53ee9300c0355b01c2fb57d527725ae5c6a5ef8f
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-02-18 07:11:38 +00:00