//===--- ForestTest.cpp - Test Forest dump ----------------------*- 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 "clang-pseudo/Forest.h" #include "clang-pseudo/Token.h" #include "clang/Basic/LangOptions.h" #include "llvm/ADT/StringRef.h" #include "gmock/gmock.h" #include "gtest/gtest.h" #include <vector> namespace clang { namespace pseudo { namespace { // FIXME: extract to a TestGrammar class to allow code sharing among tests. class ForestTest : public ::testing::Test { … }; TEST_F(ForestTest, DumpBasic) { … } TEST_F(ForestTest, DumpAmbiguousAndRefs) { … } TEST_F(ForestTest, DumpAbbreviatedShared) { … } TEST_F(ForestTest, Iteration) { … } } // namespace } // namespace pseudo } // namespace clang