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

clazy and clang-tidy not working on Android build

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • Qt Creator 4.0.0, Qt Creator 5.0.0
    • None
    • Linux
    • Android, Linux/X11

    Description

      I cannot run clang-tidy and clazy analyzer on a Android build done with an Android kit (Qt 5.13.2). A lot of errors like this are thrown for all the mem* functions:

      /android/ndk-bundle/sources/cxx-stl/llvm-libc++/include/cstring:69:9: error: no member named 'memcpy' in the global namespace; did you mean 'memchr'? [clang-diagnostic-error]
      using ::memcpy;

      /android/ndk-bundle/sources/cxx-stl/llvm-libc++/include/string.h:96:13: note: 'memchr' declared here
      const void* memchr(const void* __s, int __c, size_t __n)

      {return __libcpp_memchr(__s, __c, __n);}

      The build is working normally and runs on the phone, so no problems about that.

      If I switch to a gcc64 linux kit and build the app for that, then the analyzing part works.

      Android arch: arm64-v8a

      NDK version: 21.3.6528147

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            victor.corchez Victor Corchez
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes