diff options
author | Roman Stratiienko <r.stratiienko@gmail.com> | 2021-02-13 10:57:47 +0200 |
---|---|---|
committer | Roman Stratiienko <r.stratiienko@gmail.com> | 2021-03-03 16:07:25 +0200 |
commit | e2f2c929243fa52fc1683bc8b22f550446d9535b (patch) | |
tree | 7cda265797d40ae88449210b1b3346f1adc44e35 /bufferinfo/legacy/BufferInfoMaliMediatek.cpp | |
parent | d6659983335082d4b54ee006626a1ebc29423bcc (diff) | |
download | drm_hwcomposer-e2f2c929243fa52fc1683bc8b22f550446d9535b.tar.gz |
drm_hwcomposer: enable code analysis using clang-tidy
Drm hwcomposer project has some code-style inconsistencies.
This is the initial step to unify code-style of the code.
Clang-tidy is a great tool which can not only suggest correct styling,
but also allow predicting the errors in the code and suggest correct
coding approaches to avoid potential weaknesses.
CI was tuned to check clang-tidy recommendation for some part of the
code which is ready ATM (can be built outside AOSP tree).
For this part a limited set of clang-tidy checks has applied (coarse check).
Header files aren't checked at all.
Starting from now new code files must be included into the list that is
checked by almost all clang-tidy checks (fine checklist). New header files
should be also included into this list.
See '.gitlab-ci-clang-tidy-fine.sh'.
Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
Diffstat (limited to 'bufferinfo/legacy/BufferInfoMaliMediatek.cpp')
-rw-r--r-- | bufferinfo/legacy/BufferInfoMaliMediatek.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bufferinfo/legacy/BufferInfoMaliMediatek.cpp b/bufferinfo/legacy/BufferInfoMaliMediatek.cpp index ce47343..13c7a34 100644 --- a/bufferinfo/legacy/BufferInfoMaliMediatek.cpp +++ b/bufferinfo/legacy/BufferInfoMaliMediatek.cpp @@ -34,8 +34,7 @@ LEGACY_BUFFER_INFO_GETTER(BufferInfoMaliMediatek); int BufferInfoMaliMediatek::ConvertBoInfo(buffer_handle_t handle, hwc_drm_bo_t *bo) { - private_handle_t const *hnd = reinterpret_cast<private_handle_t const *>( - handle); + auto const *hnd = reinterpret_cast<private_handle_t const *>(handle); if (!hnd) return -EINVAL; |