//===---- UsingInserterTest.cpp - clang-tidy ----------------------------===// // // 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-tidy/utils/UsingInserter.h" #include "ClangTidyTest.h" #include "clang/ASTMatchers/ASTMatchFinder.h" #include "clang/ASTMatchers/ASTMatchers.h" #include "gtest/gtest.h" namespace clang { namespace tidy { namespace utils { // Replace all function calls with calls to foo::func. Inserts using // declarations as necessary. This checker is for testing only. It // can only run on one test case (e.g. wih one SourceManager). class InsertUsingCheck : public clang::tidy::ClangTidyCheck { … }; template <typename Check> std::string runChecker(StringRef Code, unsigned ExpectedWarningCount) { … } TEST(UsingInserterTest, ReusesExisting) { … } TEST(UsingInserterTest, ReusesExistingGlobal) { … } TEST(UsingInserterTest, AvoidsConflict) { … } } // namespace utils } // namespace tidy } // namespace clang