Skip to content
Snippets Groups Projects
  1. Nov 12, 2013
    • Erik Verbruggen's avatar
      C++: Release more documents. · 566be099
      Erik Verbruggen authored
      
      - fix memory leak in find-usages
      - do not retain snapshot in search history
      - when an editor is invisible for more than 2 minutes, release the
        backing snapshot
      
      Retaining snapshots will retain their documents, and if done for too
      long, the memory consumption might grow. This is especially the case
      when switching to a different kit (Qt version): in that case, the new
      versions of headers will be indexed, while the old ones stay around.
      
      Task-number: QTCREATORBUG-5583
      Task-number: QTCREATORBUG-7645
      Task-number: QTCREATORBUG-9842
      
      Change-Id: I045eda1565e0a3fa702baeffaab9c12662f90289
      Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
      Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
      566be099
  2. Oct 07, 2013
  3. Sep 13, 2013
  4. Jul 17, 2013
  5. May 03, 2013
  6. Apr 15, 2013
    • Lorenz Haas's avatar
      CppEditor: Rearrange quick fix files · 61ddf166
      Lorenz Haas authored
      
      Moved content of cppinsertdecldef.(cpp|h) cppcompleteswitch.(cpp|h)
      cppinsertqtpropertymembers.(cpp|h) and ApplyDeclDefLinkChanges to
      cppquickfixes.(cpp|h).
      
      Made msgQtStringLiteralDescription private member function of
      WrapStringLiteral, added anonymous namespace, "extracted" useful
      functions to the top of cppquickfixes.cpp.
      
      Change-Id: I4f82a005a62be3c29d4b96902667bd3a2b9397cc
      Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
      61ddf166
  7. Apr 10, 2013
  8. Apr 03, 2013
  9. Mar 15, 2013
  10. Feb 19, 2013
  11. Jan 29, 2013
  12. Jan 24, 2013
    • Nikolai Kosjar's avatar
      C++: Add settings dialog for pointer declaration formatting · 8fe25d0a
      Nikolai Kosjar authored
      
      The dialog is at Tools > Options > C++ > Code Style > Edit... > Pointers
      and References.
      
      Currently the settings are referenced when applying the following
      QuickFixes:
       - Adapting function signature in declaration/definition
         (FunctionDeclDefLink)
       - Inserting declaration from definition (InsertDeclOperation)
       - Inserting definition from declaration (InsertDefOperation)
       - Extracting a function (ExtractFunctionOperation)
       - Add Local Declaration (AddLocalDeclarationOp::Operation)
      
      In these cases the code style of the current project is used. If there
      is no current project open, the current global code style is used.
      
      Task-number: QTCREATORBUG-6169
      
      Change-Id: I3e4e502b3103f7f754ac9b39594ad461d89d9304
      Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
      8fe25d0a
  13. Jan 11, 2013
  14. Jan 08, 2013
    • Orgad Shaneh's avatar
      Remove braces for single lines of conditions · 29a93998
      Orgad Shaneh authored
      
      #!/usr/bin/env ruby
      
      Dir.glob('**/*.cpp') { |file|
        # skip ast (excluding paste, astpath, and canv'ast'imer)
        next if file =~ /ast[^eip]|keywords\.|qualifiers|preprocessor|names.cpp/i
        s = File.read(file)
        next if s.include?('qlalr')
        orig = s.dup
        s.gsub!(/\n *if [^\n]*{\n[^\n]*\n\s+}(\s+else if [^\n]* {\n[^\n]*\n\s+})*(\s+else {\n[^\n]*\n\s+})?\n/m) { |m|
          res = $&
          if res =~ /^\s*(\/\/|[A-Z_]{3,})/ # C++ comment or macro (Q_UNUSED, SDEBUG), do not touch braces
            res
          else
            res.gsub!('} else', 'else')
            res.gsub!(/\n +} *\n/m, "\n")
            res.gsub(/ *{$/, '')
          end
        }
        s.gsub!(/ *$/, '')
        File.open(file, 'wb').write(s) if s != orig
      }
      
      Change-Id: I3b30ee60df0986f66c02132c65fc38a3fbb6bbdc
      Reviewed-by: default avatarhjk <qthjk@ovi.com>
      29a93998
  15. Nov 08, 2012
  16. Nov 07, 2012
  17. Oct 17, 2012
  18. Oct 11, 2012
  19. Oct 05, 2012
  20. Sep 21, 2012
  21. Jul 19, 2012
  22. Jun 06, 2012
    • Leandro Melo's avatar
      C++: Introduce unicode char/strings support · 23c637c4
      Leandro Melo authored
      
      Those are the types char16_t and char32_t along with the new
      char/string literals u'', U'', u"", u8"", and U"".
      
      This is particularly important for the use of QStringLiteral
      since in some platforms it relies on expansion such as above.
      
      Note: The string literals quickfixes still need some tunning.
      
      Task-number: QTCREATORBUG-7449
      Change-Id: Iebcfea15677dc8e0ebb6143def89a5477e1be7d4
      Reviewed-by: default avatarhjk <qthjk@ovi.com>
      23c637c4
  23. May 25, 2012
  24. May 10, 2012
  25. Apr 27, 2012
  26. Mar 29, 2012
    • Erik Verbruggen's avatar
      [C++] Rewrite of the preprocessor. · 60db5736
      Erik Verbruggen authored
      
      This rewrite fixes a couple of issues with the pre-processor. It now
      supports:
      - macros in macro bodies
      - stringification of parameters [cpp.stringize]
      - the concatenation operator [cpp.concat]
      - #include MACRO_HERE
      - defined() inside macro bodies used in pp-conditions.
      
      Change-Id: Ifdb78041fb6afadf44f939a4bd66ce2832b8601f
      Reviewed-by: default avatarRoberto Raggi <roberto.raggi@nokia.com>
      60db5736
  27. Mar 16, 2012
  28. Feb 15, 2012
  29. Feb 08, 2012
  30. Jan 26, 2012
  31. Jan 24, 2012
  32. Jan 23, 2012
    • Leandro Melo's avatar
      C++: Fix "reference" file in symbol finder · b97b45a3
      Leandro Melo authored
      
      Througout the initial review the singleton was transformed into an
      ordinary class, but a error was introduced: The "reference" file was
      incorrectly assumed to be the editors file, which is wrong, since
      it should be the declaration file.
      
      Change-Id: Iad3e25a690fa8bd07a18184b24b10f8dea965332
      Reviewed-by: default avatarRoberto Raggi <roberto.raggi@nokia.com>
      b97b45a3
    • Leandro Melo's avatar
      C++: Improve file accuracy when finding symbols · 466ea484
      Leandro Melo authored
      
      This patch introduces a priority-based mechanism when searching for certains
      symbols in the snapshot. The priority corresponds to how similar the file path
      from the "reference" symbol is to the file path from the "candidate" symbol.
      This solves a variety of issues when matching "equivalent" symbols but that
      are in another file/project, such as when following a function declaration,
      a forward class declaration, or adding a definition through a quickfix.
      
      There's now a symbol finder which will compute the "best" search order and cache
      the most recent results. A consequence is that following symbols in some cases
      is slower, but not apparently significatly.
      
      Note: The "find" functions were moved from the Snapshot to the new SymbolFinder
      class.
      
      Task-number: QTCREATORBUG-6697
      Task-number: QTCREATORBUG-6792
      
      Change-Id: Ia518f014275fec1f4d0cb3224bd4e06a9df6d557
      Reviewed-by: default avatarRoberto Raggi <roberto.raggi@nokia.com>
      466ea484
  33. Jan 13, 2012
  34. Jan 12, 2012
  35. Nov 28, 2011
  36. Nov 23, 2011
  37. Nov 21, 2011
Loading