Skip to content
Snippets Groups Projects
  1. Oct 10, 2013
  2. Aug 22, 2013
  3. Aug 20, 2013
  4. Jul 25, 2013
  5. Jul 17, 2013
  6. Jun 11, 2013
  7. May 24, 2013
  8. Apr 18, 2013
  9. Apr 16, 2013
  10. Apr 10, 2013
  11. Apr 03, 2013
  12. Mar 04, 2013
  13. Feb 26, 2013
    • Erik Verbruggen's avatar
      C++: Fix/tune semantic highlighter result chunk size. · 2d3d53a0
      Erik Verbruggen authored
      
      The fix: when finished with a FunctionDefinition, only flush when the
      number of usages reaches the chunk size. This should prevent a lot of
      chunks with a low number of usages for files with short methods.
      
      The tuning: for files larger than 10000 lines, use a larger chunk size
      to prevent the UI thread from having to re-layout/re-paint too often.
      
      Change-Id: I419174d306b8380c6fa8402825767e26c73f62ec
      Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
      2d3d53a0
  14. Feb 19, 2013
  15. Feb 11, 2013
  16. Jan 30, 2013
  17. Jan 29, 2013
  18. Jan 22, 2013
  19. 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
  20. Nov 26, 2012
  21. Nov 22, 2012
  22. Oct 05, 2012
  23. Sep 19, 2012
  24. Aug 29, 2012
  25. Aug 17, 2012
  26. Jul 30, 2012
  27. Jul 19, 2012
  28. Jul 17, 2012
    • Leandro Melo's avatar
      C++: Change back highlighting of types · 441c652c
      Leandro Melo authored
      
      The type highlighting change part of the recent patch
      4a2a17af didn't seem to
      please much from a visual point of view. It's a better
      idea to keep the type highlighting as it was for now
      and in the future try again the approach with an explicit
      option and perhaps a more restrictive context.
      
      The other patch is not reverted entirely because it does
      fix a couple of bugs.
      
      Change-Id: I806afa3d8c1c4b241080b8704255d737f61ee12c
      Reviewed-by: default avatarRoberto Raggi <roberto.raggi@nokia.com>
      441c652c
    • Leandro Melo's avatar
      C++: Changes in semantic highlighting · 4a2a17af
      Leandro Melo authored
      
      - Fix issues with virtual/non-virtual destructors. They were not
        being correctly identified in some cases - in particular on certain
        uses in derived classes.
      
      - Since now we do have a highlighting item for regular functions,
        constructors and destructors are now highlighted as such. This is
        more semantically correct and actually makes navigation and readiblity
        more distinguishable, since it cleary differentiates the type itself
        from its uses in expressions and declarators. (This seems to be what
        other IDEs like Eclipse, Visual Studio, KDevelop are doing.)
      
        NOTE: There's a switch to disable this item in the case it doesn't
        get good acceptance. Actually, the switch can be made a user
        setting...?
      
      - Change the default color scheme so regular and virtual functions
        have the same color (virtuals continue to be italic). This makes
        sense given the above mentioned changes in constructors/destructors
        highlighting behavior. (In other schemes virtual funcions don't have
        different color, so this shouldn't be necessary in those.)
      
      - Small renaming: "members" are now "fields" - consistent, since
        they apply for data and it's the term used in the UI.
      
      Change-Id: Ib1aa9c0bbf28a31d09f5696460b0095fbe29de80
      Reviewed-by: default avatarRoberto Raggi <roberto.raggi@nokia.com>
      4a2a17af
  29. Jun 05, 2012
    • Francois Ferrand's avatar
      CppHighlighter: highlight all functions/methods. · 809611f3
      Francois Ferrand authored
      
      - Highlight all function/methods (not just virtual methods).
      - Highlight as a function even if number of arguments does not match. In
        that case, add a diagnostic message to indicate there are too many/too
        few arguments.
      - Fix highlighting of parameters in function declarations.
        These used to be handled indiferently, and they could be mistaken for
        type or field references.
      - Properly highlight template method calls.
      
      Change-Id: I6e61c9ee47763db95c62314f9cc1c4d398df38b3
      Reviewed-by: default avatarLeandro Melo <leandro.melo@nokia.com>
      809611f3
  30. Apr 13, 2012
  31. Mar 29, 2012
  32. Feb 23, 2012
Loading