================ @@ -0,0 +1,260 @@ +//===- OperatorNewDeletePointersExtractorTest.cpp -------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#include "FindDecl.h" +#include "TestFixture.h" +#include "clang/AST/ASTContext.h" +#include "clang/AST/Decl.h" +#include "clang/Frontend/ASTUnit.h" +#include "clang/Frontend/SSAFOptions.h" +#include "clang/ScalableStaticAnalysis/Analyses/OperatorNewDelete/OperatorNewDeletePointers.h" +#include "clang/ScalableStaticAnalysis/Core/Model/EntityId.h" +#include "clang/ScalableStaticAnalysis/Core/TUSummary/ExtractorRegistry.h" +#include "clang/ScalableStaticAnalysis/Core/TUSummary/TUSummary.h" +#include "clang/ScalableStaticAnalysis/Core/TUSummary/TUSummaryBuilder.h" +#include "clang/ScalableStaticAnalysis/Core/TUSummary/TUSummaryExtractor.h" +#include "clang/Tooling/Tooling.h" +#include "gtest/gtest.h" +#include <memory> +#include <optional> + +using namespace clang; +using namespace ssaf; + +namespace { + +/// Look up the \p SummaryT entity summary for the contributor named +/// \p ContributorName. +/// +/// \tparam SummaryT The concrete EntitySummary subtype to return. +/// \tparam ContributorT The NamedDecl subtype to search for (defaults to +/// FunctionDecl). +/// \tparam TUSummaryDataT The type of the TUSummary data map, deduced from +/// the \p TUSummaryData argument. +/// ---------------- steakhal wrote:
I think the indentation is incorrect a couple of cases. Maybe if we didn't indent the blocks it would be more space efficient and also fix this indentation issue. https://github.com/llvm/llvm-project/pull/206600 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
