Added TODO test cases for template variables with multiple levels of pointer indirection
Following email from Robert Reif
This commit is contained in:
parent
481907ef14
commit
69d4db714e
|
@ -63,6 +63,7 @@ private:
|
||||||
TEST_CASE(test_isVariableDeclarationIdentifiesArray);
|
TEST_CASE(test_isVariableDeclarationIdentifiesArray);
|
||||||
TEST_CASE(test_isVariableDeclarationIdentifiesOfArrayPointers);
|
TEST_CASE(test_isVariableDeclarationIdentifiesOfArrayPointers);
|
||||||
TEST_CASE(isVariableDeclarationIdentifiesTemplatedPointerVariable);
|
TEST_CASE(isVariableDeclarationIdentifiesTemplatedPointerVariable);
|
||||||
|
TEST_CASE(isVariableDeclarationIdentifiesTemplatedPointerToPointerVariable);
|
||||||
TEST_CASE(isVariableDeclarationIdentifiesTemplatedVariable);
|
TEST_CASE(isVariableDeclarationIdentifiesTemplatedVariable);
|
||||||
TEST_CASE(isVariableDeclarationIdentifiesTemplatedVariableIterator);
|
TEST_CASE(isVariableDeclarationIdentifiesTemplatedVariableIterator);
|
||||||
TEST_CASE(isVariableDeclarationIdentifiesNestedTemplateVariable);
|
TEST_CASE(isVariableDeclarationIdentifiesNestedTemplateVariable);
|
||||||
|
@ -223,6 +224,22 @@ private:
|
||||||
ASSERT_EQUALS("set", typetok->str());
|
ASSERT_EQUALS("set", typetok->str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void isVariableDeclarationIdentifiesTemplatedPointerToPointerVariable()
|
||||||
|
{
|
||||||
|
reset();
|
||||||
|
givenACodeSampleToTokenize var("std::deque<int>*** ints;");
|
||||||
|
bool result = si.isVariableDeclaration(var.tokens(), vartok, typetok);
|
||||||
|
TODO_ASSERT_EQUALS(true, result);
|
||||||
|
if (NULL != vartok)
|
||||||
|
{
|
||||||
|
TODO_ASSERT_EQUALS("ints", vartok->str());
|
||||||
|
}
|
||||||
|
if (NULL != typetok)
|
||||||
|
{
|
||||||
|
TODO_ASSERT_EQUALS("deque", typetok->str());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void isVariableDeclarationIdentifiesTemplatedVariable()
|
void isVariableDeclarationIdentifiesTemplatedVariable()
|
||||||
{
|
{
|
||||||
reset();
|
reset();
|
||||||
|
|
Loading…
Reference in New Issue