llvm/clang-tools-extra/clangd/unittests/HeadersTests.cpp

//===-- HeadersTests.cpp - Include headers unit tests -----------*- C++ -*-===//
//
// 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 "Headers.h"

#include "Compiler.h"
#include "Matchers.h"
#include "TestFS.h"
#include "TestTU.h"
#include "clang/Basic/TokenKinds.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Frontend/CompilerInvocation.h"
#include "clang/Frontend/FrontendActions.h"
#include "clang/Tooling/Inclusions/HeaderIncludes.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/FormatVariadic.h"
#include "llvm/Support/Path.h"
#include "llvm/Testing/Support/Error.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include <optional>

namespace clang {
namespace clangd {
namespace {

AllOf;
Contains;
ElementsAre;
IsEmpty;
Not;
UnorderedElementsAre;

class HeadersTest : public ::testing::Test {};

MATCHER_P(written, Name, "") {}
MATCHER_P(resolved, Name, "") {}
MATCHER_P(includeLine, N, "") {}
MATCHER_P(directive, D, "") {}

MATCHER_P2(Distance, File, D, "") {}

TEST_F(HeadersTest, CollectRewrittenAndResolved) {}

TEST_F(HeadersTest, OnlyCollectInclusionsInMain) {}

TEST_F(HeadersTest, CacheBySpellingIsBuiltForMainInclusions) {}

TEST_F(HeadersTest, PreambleIncludesPresentOnce) {}

TEST_F(HeadersTest, UnResolvedInclusion) {}

TEST_F(HeadersTest, IncludedFilesGraph) {}

TEST_F(HeadersTest, IncludeDirective) {}

TEST_F(HeadersTest, SearchPath) {}

TEST_F(HeadersTest, InsertInclude) {}

TEST_F(HeadersTest, DoNotInsertIfInSameFile) {}

TEST_F(HeadersTest, DoNotInsertOffIncludePath) {}

TEST_F(HeadersTest, ShortenIncludesInSearchPath) {}

TEST_F(HeadersTest, ShortenedIncludeNotInSearchPath) {}

TEST_F(HeadersTest, PreferredHeader) {}

TEST_F(HeadersTest, DontInsertDuplicatePreferred) {}

TEST_F(HeadersTest, DontInsertDuplicateResolved) {}

TEST_F(HeadersTest, PreferInserted) {}

TEST(Headers, NoHeaderSearchInfo) {}

TEST_F(HeadersTest, PresumedLocations) {}

} // namespace
} // namespace clangd
} // namespace clang