Clang: Refactor ClangCompletionContextAnalyzer

Change-Id: Ib42ddc672da8b068591129e2e0b9652d3e07ad58
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
Marco Bubke
2015-07-23 13:01:02 +02:00
committed by Nikolai Kosjar
parent 5a791e8839
commit ae5d92d618
18 changed files with 1295 additions and 506 deletions

View File

@@ -133,14 +133,14 @@ TEST(ActivationSequenceProcessor, ArrowStar)
TEST(ActivationSequenceProcessor, DoxyGenCommentBackSlash)
{
ActivationSequenceProcessor processor(QStringLiteral("\\ "), 3, true);
ActivationSequenceProcessor processor(QStringLiteral(" \\"), 3, true);
ASSERT_THAT(processor, HasResult(T_DOXY_COMMENT, 1, 2));
}
TEST(ActivationSequenceProcessor, DoxyGenCommentAt)
{
ActivationSequenceProcessor processor(QStringLiteral("@ "), 2, true);
ActivationSequenceProcessor processor(QStringLiteral(" @"), 2, true);
ASSERT_THAT(processor, HasResult(T_DOXY_COMMENT, 1, 1));
}
@@ -182,7 +182,7 @@ TEST(ActivationSequenceProcessor, PositionIsOne)
TEST(ActivationSequenceProcessor, PositionIsTwo)
{
ActivationSequenceProcessor processor(QStringLiteral("@ x"), 2, true);
ActivationSequenceProcessor processor(QStringLiteral(" @x"), 2, true);
ASSERT_THAT(processor, HasResult(T_DOXY_COMMENT, 1, 1));
}