Add clang-format configuration.

For now, it uses tabs like before, to make the diff easier to read/check.
One of following commits will switch it to spaces.
This commit is contained in:
Alexey Sokolov
2015-12-06 22:36:35 +00:00
parent 02f8749a8b
commit 33b0627d75
132 changed files with 12743 additions and 8904 deletions
+4 -3
View File
@@ -23,16 +23,17 @@ using ::testing::SizeIs;
using ::testing::ContainerEq;
class BufferTest : public ::testing::Test {
protected:
protected:
void SetUp() { CZNC::CreateInstance(); }
void TearDown() { CZNC::DestroyInstance(); }
};
TEST_F(BufferTest, BufLine) {
CBuffer buffer(1);
buffer.AddLine(CMessage("@key=value :nick PRIVMSG {target} {text}"), "hello there");
buffer.AddLine(CMessage("@key=value :nick PRIVMSG {target} {text}"),
"hello there");
const CBufLine& line = buffer.GetBufLine(0);
EXPECT_THAT(line.GetTags(), ContainerEq(MCString{{"key","value"}}));
EXPECT_THAT(line.GetTags(), ContainerEq(MCString{{"key", "value"}}));
EXPECT_EQ(":nick PRIVMSG {target} {text}", line.GetFormat());
EXPECT_EQ("hello there", line.GetText());
EXPECT_EQ("PRIVMSG", line.GetCommand());