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

Inconsistent indenting in try/catch

    XMLWordPrintable

Details

    • 812326ead (master)

    Description

      With clang format disabled the indenting of catch depends on the content of the catch parameters

      void f()
         {
         try
         {
         int i;        // here indenting of block is right
         }
         catch(...)
         {
         int j;        // here indenting of block is right
         }
         catch(ex& e)  // when having a parameter in the catch
         {
            int k;     // indenting of content and
            }          // closing block brace is wrong
         } 

      It looks like catch(ex& e) is partly detected as a function?

      Attachments

        For Gerrit Dashboard: QTCREATORBUG-29452
        # Subject Branch Project Status CR V

        Activity

          People

            kandeler Christian Kandeler
            moellney Michael Möllney
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes