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

Implement a Q_ASSERT2(cond, what) macro possibly defined as Q_ASSERT_X(cond, Q_FUNC_INFO, what)

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Open
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Core: Other
    • Labels:
      None
    • Platform/s:
      All

      Description

      I often write an explanation for an assertion, but never pass anything other than Q_FUNC_INFO as the where parameter to Q_ASSERT_X. Q_FUNC_INFO is passed to Q_ASSERT_X in 40 places in qtbase. Using Q_ASSERT2 would be more concise and less error-prone.

        Attachments

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

          Activity

            People

            Assignee:
            thiago Thiago Macieira
            Reporter:
            vedg Igor Kushnir
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes