aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-05-27 15:08:17 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-05-27 15:08:17 +0100
commit72a537dbc011bcb864c800261461032dd6d00d0e (patch)
tree8661cb16c940241921b3450f59df0e010dd5638d
parent6c1822676cb7b41bed1c76713bb53d187c28a27a (diff)
downloadrspamd-72a537dbc011bcb864c800261461032dd6d00d0e.tar.gz
rspamd-72a537dbc011bcb864c800261461032dd6d00d0e.zip
[Minor] Fix clang plugin
-rw-r--r--clang-plugin/plugin.cc2
-rw-r--r--clang-plugin/printf_check.cc32
2 files changed, 17 insertions, 17 deletions
diff --git a/clang-plugin/plugin.cc b/clang-plugin/plugin.cc
index 6a40a6266..9236764e5 100644
--- a/clang-plugin/plugin.cc
+++ b/clang-plugin/plugin.cc
@@ -47,7 +47,7 @@ namespace rspamd {
std::unique_ptr <ASTConsumer> CreateASTConsumer (CompilerInstance &CI,
llvm::StringRef) override
{
- return llvm::make_unique<RspamdASTConsumer> (CI);
+ return std::make_unique<RspamdASTConsumer> (CI);
}
bool ParseArgs (const CompilerInstance &CI,
diff --git a/clang-plugin/printf_check.cc b/clang-plugin/printf_check.cc
index 37042d47a..e39cec8e3 100644
--- a/clang-plugin/printf_check.cc
+++ b/clang-plugin/printf_check.cc
@@ -157,55 +157,55 @@ namespace rspamd {
switch (type) {
case 's':
- return llvm::make_unique<PrintfArgChecker> (cstring_arg_handler,
+ return std::make_unique<PrintfArgChecker> (cstring_arg_handler,
this->pcontext, this->ci);
case 'd':
- return llvm::make_unique<PrintfArgChecker> (int_arg_handler,
+ return std::make_unique<PrintfArgChecker> (int_arg_handler,
this->pcontext, this->ci);
case 'z':
- return llvm::make_unique<PrintfArgChecker> (size_arg_handler,
+ return std::make_unique<PrintfArgChecker> (size_arg_handler,
this->pcontext, this->ci);
case 'l':
- return llvm::make_unique<PrintfArgChecker> (long_arg_handler,
+ return std::make_unique<PrintfArgChecker> (long_arg_handler,
this->pcontext, this->ci);
case 'f':
case 'g':
- return llvm::make_unique<PrintfArgChecker> (double_arg_handler,
+ return std::make_unique<PrintfArgChecker> (double_arg_handler,
this->pcontext, this->ci);
case 'F':
case 'G':
- return llvm::make_unique<PrintfArgChecker> (
+ return std::make_unique<PrintfArgChecker> (
long_double_arg_handler,
this->pcontext, this->ci);
case 'c':
- return llvm::make_unique<PrintfArgChecker> (char_arg_handler,
+ return std::make_unique<PrintfArgChecker> (char_arg_handler,
this->pcontext, this->ci);
case 'p':
- return llvm::make_unique<PrintfArgChecker> (pointer_arg_handler,
+ return std::make_unique<PrintfArgChecker> (pointer_arg_handler,
this->pcontext, this->ci);
case 'P':
- return llvm::make_unique<PrintfArgChecker> (pid_arg_handler,
+ return std::make_unique<PrintfArgChecker> (pid_arg_handler,
this->pcontext, this->ci);
case 't':
- return llvm::make_unique<PrintfArgChecker> (time_arg_handler,
+ return std::make_unique<PrintfArgChecker> (time_arg_handler,
this->pcontext, this->ci);
case 'L':
- return llvm::make_unique<PrintfArgChecker> (int64_arg_handler,
+ return std::make_unique<PrintfArgChecker> (int64_arg_handler,
this->pcontext, this->ci);
case 'D':
- return llvm::make_unique<PrintfArgChecker> (int32_arg_handler,
+ return std::make_unique<PrintfArgChecker> (int32_arg_handler,
this->pcontext, this->ci);
case 'T':
- return llvm::make_unique<PrintfArgChecker> (tok_arg_handler,
+ return std::make_unique<PrintfArgChecker> (tok_arg_handler,
this->pcontext, this->ci);
case 'V':
- return llvm::make_unique<PrintfArgChecker> (fstring_arg_handler,
+ return std::make_unique<PrintfArgChecker> (fstring_arg_handler,
this->pcontext, this->ci);
case 'v':
- return llvm::make_unique<PrintfArgChecker> (gstring_arg_handler,
+ return std::make_unique<PrintfArgChecker> (gstring_arg_handler,
this->pcontext, this->ci);
case 'e':
- return llvm::make_unique<PrintfArgChecker> (gerr_arg_handler,
+ return std::make_unique<PrintfArgChecker> (gerr_arg_handler,
this->pcontext, this->ci);
default: {
auto err_msg = std::string ("unknown parser flag: ") + type;