#include "clang-pseudo/DirectiveTree.h"
#include "clang-pseudo/Token.h"
#include "clang/Basic/LangOptions.h"
#include "clang/Basic/TokenKinds.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringRef.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
namespace clang {
namespace pseudo {
namespace {
_;
ElementsAre;
Matcher;
Pair;
StrEq;
Chunk;
MATCHER_P(tokens, Tokens, "") { … }
MATCHER_P2(tokensAre, TS, Tokens, "tokens are " + std::string(Tokens)) { … }
MATCHER(directiveChunk, "") { … }
MATCHER(codeChunk, "") { … }
MATCHER(conditionalChunk, "") { … }
TEST(DirectiveTree, Parse) { … }
TEST(DirectiveTree, ParseUgly) { … }
TEST(DirectiveTree, ParseBroken) { … }
TEST(DirectiveTree, ChooseBranches) { … }
TEST(DirectiveTree, StripDirectives) { … }
}
}
}