From 0e54e5679e92951d73f9f6492c0734d8746d76a9 Mon Sep 17 00:00:00 2001 From: Faisal Vali Date: Mon, 17 Jul 2017 02:03:21 +0000 Subject: Revert changes from my previous refactoring - will need to fix dependencies in clang's extra tooling (such as clang-tidy etc.). Sorry about that. llvm-svn: 308158 --- clang/unittests/Lex/LexerTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'clang/unittests/Lex/LexerTest.cpp') diff --git a/clang/unittests/Lex/LexerTest.cpp b/clang/unittests/Lex/LexerTest.cpp index 923aff1..a887c22 100644 --- a/clang/unittests/Lex/LexerTest.cpp +++ b/clang/unittests/Lex/LexerTest.cpp @@ -379,11 +379,11 @@ TEST_F(LexerTest, DontOverallocateStringifyArgs) { auto PP = CreatePP("\"StrArg\", 5, 'C'", ModLoader); llvm::BumpPtrAllocator Allocator; - std::array ParamList; + std::array ArgList; MacroInfo *MI = PP->AllocateMacroInfo({}); MI->setIsFunctionLike(); - MI->setParameterList(ParamList, Allocator); - EXPECT_EQ(3u, MI->getNumParams()); + MI->setArgumentList(ArgList, Allocator); + EXPECT_EQ(3u, MI->getNumArgs()); EXPECT_TRUE(MI->isFunctionLike()); Token Eof; -- cgit v1.1