//===- unittests/Analysis/CloneDetectionTest.cpp - Clone detection tests --===// // // 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 "clang/AST/RecursiveASTVisitor.h" #include "clang/Analysis/CloneDetection.h" #include "clang/Tooling/Tooling.h" #include "gtest/gtest.h" namespace clang { namespace analysis { namespace { class CloneDetectionVisitor : public RecursiveASTVisitor<CloneDetectionVisitor> { … }; /// Example constraint for testing purposes. /// Filters out all statements that are in a function which name starts with /// "bar". class NoBarFunctionConstraint { … }; TEST(CloneDetector, FilterFunctionsByName) { … } } // namespace } // namespace analysis } // namespace clang