Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-138501

qdoc: Detect and warn if snippet markers are more indented than snippet contents

XMLWordPrintable

    • 4e84f1de7 (dev), 11973eda3 (6.10), bf2e4e93f (dev), e3ca972ed (6.10)
    • DaVinci 121

      QTBUG-138492 was caused by the following phenomenon.

      This source code:

          //! [0]
      int MyClass::myFunc()
      {
          return 42;
      }
          //! [0]
      

       

      ...would get rendered in the qdoc output like this:

      int MyClass::myFunc()
      {
      return 42;
      }
      

       

      Suggestion
      Detect and warn of such cases, because the //! markers need to reduce their indentation levels.

        For Gerrit Dashboard: QTBUG-138501
        # Subject Branch Project Status CR V

            paulwicking Paul Wicking
            skoh-qt Sze Howe Koh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes