#include "clang/Tooling/Syntax/Tree.h"
#include "TreeTestBase.h"
#include "clang/Basic/SourceManager.h"
#include "clang/Tooling/Syntax/BuildTree.h"
#include "clang/Tooling/Syntax/Nodes.h"
#include "llvm/ADT/STLExtras.h"
#include "gtest/gtest.h"
usingnamespaceclang;
usingnamespaceclang::syntax;
namespace {
ElementsAre;
class TreeTest : public SyntaxTreeTest { … };
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(TreeTest, FirstLeaf) { … }
TEST_P(TreeTest, LastLeaf) { … }
TEST_F(TreeTest, Iterators) { … }
class ListTest : public SyntaxTreeTest { … };
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(ListTest, List_Separated_WellFormed) { … }
TEST_P(ListTest, List_Separated_MissingElement) { … }
TEST_P(ListTest, List_Separated_MissingDelimiter) { … }
TEST_P(ListTest, List_Separated_MissingLastElement) { … }
TEST_P(ListTest, List_Terminated_WellFormed) { … }
TEST_P(ListTest, List_Terminated_MissingElement) { … }
TEST_P(ListTest, List_Terminated_MissingDelimiter) { … }
TEST_P(ListTest, List_Terminated_MissingLastDelimiter) { … }
}