llvm/clang/unittests/libclang/LibclangTest.cpp

//===- unittests/libclang/LibclangTest.cpp --- libclang 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 "TestUtils.h"
#include "clang-c/Index.h"
#include "clang-c/Rewrite.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/raw_ostream.h"
#include "gtest/gtest.h"
#include <cstring>
#include <fstream>
#include <functional>
#include <map>
#include <memory>
#include <optional>
#include <set>
#define DEBUG_TYPE

TEST(libclang, clang_parseTranslationUnit2_InvalidArgs) {}

TEST(libclang, clang_createTranslationUnit_InvalidArgs) {}

TEST(libclang, clang_createTranslationUnit2_InvalidArgs) {}

namespace {
struct TestVFO {};
}

TEST(libclang, VirtualFileOverlay_Basic) {}

TEST(libclang, VirtualFileOverlay_Unicode) {}

TEST(libclang, VirtualFileOverlay_InvalidArgs) {}

TEST(libclang, VirtualFileOverlay_RemapDirectories) {}

TEST(libclang, VirtualFileOverlay_CaseInsensitive) {}

TEST(libclang, VirtualFileOverlay_SharedPrefix) {}

TEST(libclang, VirtualFileOverlay_AdjacentDirectory) {}

TEST(libclang, VirtualFileOverlay_TopLevel) {}

TEST(libclang, VirtualFileOverlay_Empty) {}

TEST(libclang, ModuleMapDescriptor) {}

TEST_F(LibclangParseTest, GlobalOptions) {}

class LibclangIndexOptionsTest : public LibclangParseTest {};

TEST_F(LibclangIndexOptionsTest, GlobalOptions) {}

class LibclangIndexingEnabledIndexOptionsTest
    : public LibclangIndexOptionsTest {};

TEST_F(LibclangIndexingEnabledIndexOptionsTest, GlobalOptions) {}

class LibclangIndexingDisabledEditingEnabledIndexOptionsTest
    : public LibclangIndexOptionsTest {};

TEST_F(LibclangIndexingDisabledEditingEnabledIndexOptionsTest, GlobalOptions) {}

class LibclangBothEnabledIndexOptionsTest : public LibclangIndexOptionsTest {};

TEST_F(LibclangBothEnabledIndexOptionsTest, GlobalOptions) {}

class LibclangPreambleStorageTest : public LibclangParseTest {};

class LibclangNotOverriddenPreambleStoragePathTest
    : public LibclangPreambleStorageTest {};

class LibclangSetPreambleStoragePathTest : public LibclangPreambleStorageTest {};

class LibclangNullPreambleStoragePathTest
    : public LibclangSetPreambleStoragePathTest {};
class LibclangEmptyPreambleStoragePathTest
    : public LibclangSetPreambleStoragePathTest {};
class LibclangPreambleDirPreambleStoragePathTest
    : public LibclangSetPreambleStoragePathTest {};

class LibclangStoreInMemoryNullPreambleStoragePathTest
    : public LibclangNullPreambleStoragePathTest {};
class LibclangStoreInMemoryEmptyPreambleStoragePathTest
    : public LibclangEmptyPreambleStoragePathTest {};
class LibclangStoreInMemoryPreambleDirPreambleStoragePathTest
    : public LibclangPreambleDirPreambleStoragePathTest {};

TEST_F(LibclangNotOverriddenPreambleStoragePathTest, CountPreambles) {}
TEST_F(LibclangNullPreambleStoragePathTest, CountPreambles) {}
TEST_F(LibclangEmptyPreambleStoragePathTest, CountPreambles) {}
TEST_F(LibclangPreambleDirPreambleStoragePathTest, CountPreambles) {}
TEST_F(LibclangStoreInMemoryNullPreambleStoragePathTest, CountPreambles) {}
TEST_F(LibclangStoreInMemoryEmptyPreambleStoragePathTest, CountPreambles) {}
TEST_F(LibclangStoreInMemoryPreambleDirPreambleStoragePathTest,
       CountPreambles) {}

TEST_F(LibclangParseTest, AllSkippedRanges) {}

TEST_F(LibclangParseTest, EvaluateChildExpression) {}

class LibclangReparseTest : public LibclangParseTest {};

TEST_F(LibclangReparseTest, FileName) {}

TEST_F(LibclangReparseTest, Reparse) {}

TEST_F(LibclangReparseTest, ReparseWithModule) {}

TEST_F(LibclangReparseTest, clang_parseTranslationUnit2FullArgv) {}

class LibclangPrintingPolicyTest : public LibclangParseTest {};

TEST_F(LibclangPrintingPolicyTest, SetAndGetProperties) {}

TEST_F(LibclangReparseTest, PreprocessorSkippedRanges) {}

class LibclangSerializationTest : public LibclangParseTest {};

TEST_F(LibclangSerializationTest, TokenKindsAreCorrectAfterLoading) {}

TEST_F(LibclangParseTest, clang_getVarDeclInitializer) {}

TEST_F(LibclangParseTest, clang_hasVarDeclGlobalStorageFalse) {}

TEST_F(LibclangParseTest, clang_Cursor_hasVarDeclGlobalStorageTrue) {}

TEST_F(LibclangParseTest, clang_Cursor_hasVarDeclExternalStorageFalse) {}

TEST_F(LibclangParseTest, clang_Cursor_hasVarDeclExternalStorageTrue) {}

TEST_F(LibclangParseTest, clang_getUnqualifiedTypeRemovesQualifiers) {}

TEST_F(LibclangParseTest, clang_getNonReferenceTypeRemovesRefQualifiers) {}

TEST_F(LibclangParseTest, VisitUsingTypeLoc) {}

TEST_F(LibclangParseTest, BinaryOperator) {}

TEST_F(LibclangParseTest, UnaryOperator) {}

TEST_F(LibclangParseTest, VisitStaticAssertDecl_noMessage) {}

TEST_F(LibclangParseTest, VisitStaticAssertDecl_exprMessage) {}

TEST_F(LibclangParseTest, ExposesAnnotateArgs) {}

TEST_F(LibclangParseTest, clang_getSpellingLocation) {}

class LibclangRewriteTest : public LibclangParseTest {};

static std::string getFileContent(const std::string& Filename) {}

TEST_F(LibclangRewriteTest, RewriteReplace) {}

TEST_F(LibclangRewriteTest, RewriteReplaceShorter) {}

TEST_F(LibclangRewriteTest, RewriteReplaceLonger) {}

TEST_F(LibclangRewriteTest, RewriteInsert) {}

TEST_F(LibclangRewriteTest, RewriteRemove) {}