aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergio Martins <smartins@kde.org>2019-10-02 20:08:38 +0100
committerSergio Martins <smartins@kde.org>2019-10-02 20:11:57 +0100
commit6499ca6af1b3d1ac4861461b6632fc4822538dc9 (patch)
treeced6466c58d9e301e7d93a54be5da14575419981
parent7ce16505d7e01b0c3cae1888fea905b1d886684e (diff)
Update minimum LLVM to 5.0
Doesn't build with 4.0
-rw-r--r--CMakeLists.txt2
-rw-r--r--Changelog6
-rw-r--r--README.md5
3 files changed, 6 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 92ad4ede..57e39e9a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -26,7 +26,7 @@ set(CLAZY_PRINT_VERSION "${CLAZY_VERSION_MAJOR}.${CLAZY_VERSION_MINOR}")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_LIST_DIR}/cmake)
if (NOT CLAZY_BUILD_WITH_CLANG)
- find_package(Clang 4.0 MODULE REQUIRED)
+ find_package(Clang 5.0 MODULE REQUIRED)
endif()
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
diff --git a/Changelog b/Changelog
index fd1cac4c..e27ca2eb 100644
--- a/Changelog
+++ b/Changelog
@@ -106,13 +106,13 @@
- Fixed a crash (clang assert) in raw-environment-function
-* v1.6 (, 2019)
+* v1.6 (October, 2019)
- New Checks:
- heap-allocated-small-trivial-type
- signal-with-return-value
- qproperty-type-mismatch
- - Moved all level3 checks to manual level. Doesn't make sense to enable all of them. Each one must be
- carefully considered.
+ - Moved all level3 checks to manual level. Doesn't make sense to enable all of them. Each one must be carefully considered.
+ - Minimum LLVM was bumped to 5.0
- Fixit infrastructure was overhauled
Clazy no longer rewrites files directly, to avoid races when parallel invocations change the same header.
Clazy now exports a yaml file with the replacements, to be applied with clang-apply-replacements. The same way other clang tooling do it.
diff --git a/README.md b/README.md
index e327f1ad..efe438eb 100644
--- a/README.md
+++ b/README.md
@@ -62,8 +62,7 @@ Currently MSVC2015, MSVC2017 (based on clang-7.0) and Linux AppImage packages (b
- Other distros: Check llvm/clang build docs.
### Build and install clang
-clang and LLVM >= 4.0 are required.
-Use clazy v1.1 if you need 3.7 support, or v1.3 for 3.8 support.
+clang and LLVM >= 5.0 are required.
If your distro provides clang then you can skip this step.
@@ -92,7 +91,7 @@ See troubleshooting section if you have problems.
These instructions assume your terminal is suitable for development (msvc2015).
jom, nmake, git, cmake and cl should be in your PATH.
-clang and LLVM >= 4.0 are required.
+clang and LLVM >= 5.0 are required.
Be sure to pass -DLLVM_EXPORT_SYMBOLS_FOR_PLUGINS=ON to CMake when building LLVM, otherwise clazy won't work.