[all-commits] [llvm/llvm-project] 07efa2: [libc++] Add clang-tidy check for version checks
philnik777 via All-commits
all-commits at lists.llvm.org
Wed Mar 8 06:17:40 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 07efa28314ce968dadadbcaff95cde2b9424a5ed
https://github.com/llvm/llvm-project/commit/07efa28314ce968dadadbcaff95cde2b9424a5ed
Author: Nikolas Klauser <nikolasklauser at berlin.de>
Date: 2023-03-08 (Wed, 08 Mar 2023)
Changed paths:
M libcxx/include/__chrono/concepts.h
M libcxx/include/__config
M libcxx/include/iomanip
M libcxx/test/tools/clang_tidy_checks/CMakeLists.txt
M libcxx/test/tools/clang_tidy_checks/libcpp_module.cpp
A libcxx/test/tools/clang_tidy_checks/proper_version_checks.cpp
A libcxx/test/tools/clang_tidy_checks/proper_version_checks.hpp
Log Message:
-----------
[libc++] Add clang-tidy check for version checks
This check flags code which uses `_LIBCPP_STD_VER` the wrong way, or tries to use `__cplusplus`. It flags cases where we use `_LIBCPP_STD_VER >` instead of `_LIBCPP_STD_VER >=` and where wrong values are used (e.g. `_LIBCPP_STD_VER >= 24`).
Reviewed By: ldionne, #libc
Spies: libcxx-commits
Differential Revision: https://reviews.llvm.org/D144261
More information about the All-commits
mailing list