[clang-tools-extra] [analyzer][clang-tidy] Fixup build after 3dc159431be7 (PR #128499)

Balazs Benics via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 24 03:42:11 PST 2025


https://github.com/steakhal created https://github.com/llvm/llvm-project/pull/128499

There was one place I forgot to update, clang-tidy. I only ran the CSA tests in #128368.

Fixes:
https://lab.llvm.org/buildbot/#/builders/52/builds/6286/steps/9/logs/stdio

>From 29a4f188299db40858e23ec27c85ff516df33c4f Mon Sep 17 00:00:00 2001
From: Balazs Benics <benicsbalazs at gmail.com>
Date: Mon, 24 Feb 2025 12:40:17 +0100
Subject: [PATCH] [analyzer][clang-tidy] Fixup build after 3dc159431be7

There was one place I forgot to update, clang-tidy.
I only ran the CSA tests in #128368.

Fixes:
https://lab.llvm.org/buildbot/#/builders/52/builds/6286/steps/9/logs/stdio
---
 clang-tools-extra/clang-tidy/ClangTidy.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clang-tools-extra/clang-tidy/ClangTidy.cpp b/clang-tools-extra/clang-tidy/ClangTidy.cpp
index 959b11777e88d..733a53a0f5dcc 100644
--- a/clang-tools-extra/clang-tidy/ClangTidy.cpp
+++ b/clang-tools-extra/clang-tidy/ClangTidy.cpp
@@ -462,7 +462,7 @@ ClangTidyASTConsumerFactory::createASTConsumer(
     std::unique_ptr<ento::AnalysisASTConsumer> AnalysisConsumer =
         ento::CreateAnalysisConsumer(Compiler);
     AnalysisConsumer->AddDiagnosticConsumer(
-        new AnalyzerDiagnosticConsumer(Context));
+        std::make_unique<AnalyzerDiagnosticConsumer>(Context));
     Consumers.push_back(std::move(AnalysisConsumer));
   }
 #endif // CLANG_TIDY_ENABLE_STATIC_ANALYZER



More information about the cfe-commits mailing list