Commit Graph

3 Commits

Author SHA1 Message Date
Georgy Komarov 47f9870560
.clang-tidy: Add -llvmlibc-* suppressions (#2942)
llvmlibc-* are checks related to the LLVM-libc coding standards:
* https://clang.llvm.org/extra/clang-tidy/checks/llvmlibc-callee-namespace.html
* https://clang.llvm.org/extra/clang-tidy/checks/llvmlibc-implementation-in-namespace.html
* https://clang.llvm.org/extra/clang-tidy/checks/llvmlibc-restrict-system-libc-headers.html

They are used internally in LLVM development, and they are useless for
us. Moreover, when compiling Cppcheck with llvm toolchain, clang-tidy
will generate lots of warnings related to these checks
(see: https://youtrack.jetbrains.com/issue/CPP-21351).
2020-12-13 16:53:18 +01:00
Oliver Stöneberg 1dd8d4afaf
fixes for Clang and clang-tidy 10 (#2588)
* clang_tidy.cmake: added clang-tidy-10 to program list

* fixed -Wrange-loop-construct Clang warnings

* fixed readability-qualified-auto clang-tidy warnings

* .clang-tidy: actually disable clang-analyzer-* warnings

* .clang-tidy: disabled some new warnings introduced with clang-tidy-10
2020-04-04 11:44:59 +02:00
Oliver Stöneberg 85b050acdf
add a "run-clang-tidy" CMake target when the executable exists (#2567)
* CMakeLists.txt: there is no REQUIRED option for include()

* added a "run-clang-tidy" target when the executable exists / always create compilation database / added .clang-tidy with all existing warnings have been disabled for now
2020-04-02 13:55:49 +02:00