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 | fa8c4ac40846278e478dfe472e74063fca3d3f1e (patch) | |
tree | 3b3765d377cf36a694feaa2e5dbcfbe571c48bdd /unittests/Lex | |
parent | fc60afa41c22bbd3cde2075d5ade4f8698e99243 (diff) | |
download | clang-fa8c4ac40846278e478dfe472e74063fca3d3f1e.tar.gz |
Revert changes from my previous refactoring - will need to fix dependencies in clang's extra tooling (such as clang-tidy etc.).
Sorry about that.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@308158 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Lex')
-rw-r--r-- | unittests/Lex/LexerTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/unittests/Lex/LexerTest.cpp b/unittests/Lex/LexerTest.cpp index 923aff1847..a887c22bd3 100644 --- a/unittests/Lex/LexerTest.cpp +++ b/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; |