#include "ClangTidyTest.h"
#include "modernize/IntegralLiteralExpressionMatcher.h"
#include "clang/Lex/Lexer.h"
#include "gtest/gtest.h"
#include <cstring>
#include <iterator>
#include <string>
#include <vector>
namespace clang {
namespace tidy {
namespace test {
static std::vector<Token> tokenify(const char *Text) { … }
static bool matchText(const char *Text, bool AllowComma) { … }
static modernize::LiteralSize sizeText(const char *Text) { … }
static const char *toString(modernize::LiteralSize Value) { … }
namespace {
struct MatchParam { … };
struct SizeParam { … };
class MatcherTest : public ::testing::TestWithParam<MatchParam> { … };
class SizeTest : public ::testing::TestWithParam<SizeParam> { … };
}
static const MatchParam MatchParams[] = …;
TEST_P(MatcherTest, MatchResult) { … }
INSTANTIATE_TEST_SUITE_P(…);
static const SizeParam SizeParams[] = …;
TEST_P(SizeTest, TokenSize) { … }
INSTANTIATE_TEST_SUITE_P(…);
}
}
}