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

Q_DECL_UNUSED left empty when clang is masquerading as MSVC

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 5.9.6
    • Core: Other
    • None
    • Windows 10, MSVC 19.00.23506

    Description

      When running clang-tidy on a code base that builds with MSVC (cl.exe) qcompilerdetection.h does not define Q_DECL_UNUSED correctly (leaves it defined to nothing). Workaround is to call clang-tidy like:

      clang-tidy "-extra-arg=-DQ_DECL_UNUSED=__attribute__((__unused__))" ...
      

      But I don't think this should be necessary.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            nocnokneo Taylor Braun-Jones
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes