Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-29235

"just the facts" mode for QtCreator editor would make convoluted-conditional-code easier to read

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • None
    • C/C++/Obj-C++ Support
    • None

    Description

      The QtCreator editor is currently capable of:
      1. using build environment to detemine which #if statements will pass the preprocessor.
      2. collapsing arbitrary sets of code blocks, to include for-loops, while-loops, #if-blocks, #ifdef-blocks, and so on.

      This suggestion is to introduce an optional new mode to the editor, in which all preprocessor blocks that will not be compiled will automatically be collapsed.

      Seems like there would be some awkwardness when a user has that mode enabled, while typing in new conditional blocks. However, the parser seems to keep track of which #if has not yet been closed with a #endif. I would think that while the user is editing any part of the conditional block (and maybe, for a while after it's fully implemented) that it would remain un-collapsed.

      The mode could possibly be called "Auto collapse unreachable code".

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              kandeler Christian Kandeler
              glenm Glen Mabey
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes