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

Pasted macro has wrong Indent

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • Qt Creator 2.4.0-beta
    • Editors
    • None
    • Debian Squeeze, Qt Creator 2.4.0-rc1

    Description

      Pasting macros which contain only parts of a function block, will cause a wrong indent:

      /**
       * Tests the Getter() and Setter() methods
       */
      void CTUPTRouteMTreePlane::StartTestGetter()
      {
      	#define PRE_TEST_EXCEPTION \
      	{ \
      		bool bExceptionWasThrown = false; \
      		Exception::SetOutputEnabled( false ); \
      		try {
      	#define POST_TEST_IS_EXCEPTION \
      		} \
      		catch( IllegalStateException& rException ) \
      		{ \
      			bExceptionWasThrown = true; \
      		} \
      		Exception::SetOutputEnabled( true ); \
      		TEST( bExceptionWasThrown ); \
      	}
      		PRE_TEST_EXCEPTION
      		m_pTestedClassObject->AppendChildNode();
      		POST_TEST_BA_EXCEPTION
      		        
      		        PRE_TEST_EXCEPTION
      				m_pTestedClassObject->AppendChildNode();
      				POST_TEST_BA_EXCEPTION
      

      Attachments

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

        Activity

          People

            davschul David Schulz
            bluespirit Karl Krach
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes