llvm/clang/unittests/AST/DataCollectionTest.cpp

//===- unittests/AST/DataCollectionTest.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
//
//===----------------------------------------------------------------------===//
//
// This file contains tests for the DataCollection module.
//
// They work by hashing the collected data of two nodes and asserting that the
// hash values are equal iff the nodes are considered equal.
//
//===----------------------------------------------------------------------===//

#include "clang/AST/DataCollection.h"
#include "clang/AST/DeclTemplate.h"
#include "clang/AST/StmtVisitor.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Tooling/Tooling.h"
#include "gtest/gtest.h"

usingnamespaceclang;
usingnamespacetooling;
usingnamespaceast_matchers;

namespace {
class StmtDataCollector : public ConstStmtVisitor<StmtDataCollector> {};
} // end anonymous namespace

namespace {
struct StmtHashMatch : public MatchFinder::MatchCallback {};
} // end anonymous namespace

static testing::AssertionResult hashStmt(llvm::MD5::MD5Result &Hash,
                                         const StatementMatcher &StmtMatch,
                                         StringRef Code) {}

static testing::AssertionResult
isStmtHashEqual(const StatementMatcher &StmtMatch, StringRef Code1,
                StringRef Code2) {}

TEST(StmtDataCollector, TestDeclRefExpr) {}

TEST(StmtDataCollector, TestMemberExpr) {}

TEST(StmtDataCollector, TestIntegerLiteral) {}

TEST(StmtDataCollector, TestFloatingLiteral) {}

TEST(StmtDataCollector, TestStringLiteral) {}

TEST(StmtDataCollector, TestCXXBoolLiteral) {}

TEST(StmtDataCollector, TestCharacterLiteral) {}