summaryrefslogtreecommitdiffstats
path: root/unittests
diff options
context:
space:
mode:
authorFaisal Vali <faisalv@yahoo.com>2017-07-17 02:03:21 +0000
committerFaisal Vali <faisalv@yahoo.com>2017-07-17 02:03:21 +0000
commitfa8c4ac40846278e478dfe472e74063fca3d3f1e (patch)
tree3b3765d377cf36a694feaa2e5dbcfbe571c48bdd /unittests
parentfc60afa41c22bbd3cde2075d5ade4f8698e99243 (diff)
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')
-rw-r--r--unittests/Lex/LexerTest.cpp6
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;