diff options
Diffstat (limited to 'dev-util/clazy/files/clazy-1.7-llvm11-2.patch')
-rw-r--r-- | dev-util/clazy/files/clazy-1.7-llvm11-2.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/dev-util/clazy/files/clazy-1.7-llvm11-2.patch b/dev-util/clazy/files/clazy-1.7-llvm11-2.patch new file mode 100644 index 000000000000..4556f257bf3b --- /dev/null +++ b/dev-util/clazy/files/clazy-1.7-llvm11-2.patch @@ -0,0 +1,28 @@ +From 25aa102cc49def9573ffbed88155589cd60a2e8f Mon Sep 17 00:00:00 2001 +From: Egor Gabov <egor.gabov@waveaccess.ru> +Date: Fri, 5 Jun 2020 16:52:53 +0300 +Subject: [PATCH] updated for compatibility with LLVM 10 (clazy-standalone) + +In LLVM 10 llvm::StringRef operator std::string() is marked as explicit. +In this commit all implicit conversion from llvm::StringRef to +std::string are changed by explicit. +--- + src/checks/manuallevel/jnisignatures.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/checks/manuallevel/jnisignatures.cpp b/src/checks/manuallevel/jnisignatures.cpp +index 81e61d4..5d4fe20 100644 +--- a/src/checks/manuallevel/jnisignatures.cpp ++++ b/src/checks/manuallevel/jnisignatures.cpp +@@ -103,7 +103,7 @@ void JniSignatures::checkFunctionCall(Stmt *stm) + return; + } + +- const std::string name = clazy::name(funDecl); ++ const std::string name = static_cast<std::string>(clazy::name(funDecl)); + + if (name == "callObjectMethod" || name == "callMethod") { + checkArgAt(callExpr, 0, methodNameRegex, "Invalid method name"); +-- +GitLab + |