10#include "gmock/gmock.h"
11#include "gtest/gtest.h"
19TEST_F(ExpandMacroTest, Test) {
21 // error-ok: not real c++, just token manipulation
36 EXPECT_EQ(apply(
"^FOO BAR FOO"),
"1 2 3 BAR FOO");
37 EXPECT_EQ(apply(
"FOO BAR ^FOO"),
"FOO BAR 1 2 3");
39 EXPECT_EQ(apply(
"F^UNC(2)"),
"2 + 2 + 2");
42 EXPECT_EQ(apply(
"int a ^EMPTY;"),
"int a ;");
43 EXPECT_EQ(apply(
"int a ^EMPTY_FN(1 2 3);"),
"int a ;");
44 EXPECT_EQ(apply(
"int a = 123 ^EMPTY EMPTY_FN(1);"),
45 "int a = 123 EMPTY_FN(1);");
46 EXPECT_EQ(apply(
"int a = 123 ^EMPTY_FN(1) EMPTY;"),
"int a = 123 EMPTY;");
47 EXPECT_EQ(apply(
"int a = 123 EMPTY_FN(1) ^EMPTY;"),
48 "int a = 123 EMPTY_FN(1) ;");
#define TWEAK_TEST(TweakID)
#define EXPECT_AVAILABLE(MarkedCode)
#define EXPECT_UNAVAILABLE(MarkedCode)
TEST_F(BackgroundIndexTest, NoCrashOnErrorFile)
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//