diff options
author | Faisal Vali <faisalv@yahoo.com> | 2017-07-17 02:03:21 +0000 |
---|---|---|
committer | Faisal Vali <faisalv@yahoo.com> | 2017-07-17 02:03:21 +0000 |
commit | 0e54e5679e92951d73f9f6492c0734d8746d76a9 (patch) | |
tree | f716af622bd481355d5c3f2de2447dd1240008cc /clang/unittests/Lex/LexerTest.cpp | |
parent | 11746b05e576ca2a1f21b61721d0a13975ace751 (diff) | |
download | llvm-0e54e5679e92951d73f9f6492c0734d8746d76a9.zip llvm-0e54e5679e92951d73f9f6492c0734d8746d76a9.tar.gz llvm-0e54e5679e92951d73f9f6492c0734d8746d76a9.tar.bz2 |
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
Diffstat (limited to 'clang/unittests/Lex/LexerTest.cpp')
-rw-r--r-- | clang/unittests/Lex/LexerTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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<IdentifierInfo *, 3> ParamList; + std::array<IdentifierInfo *, 3> 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; |