forked from qt-creator/qt-creator
		
	Clang: Refactor ClangCompletionContextAnalyzer
Change-Id: Ib42ddc672da8b068591129e2e0b9652d3e07ad58 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
		
				
					committed by
					
						 Nikolai Kosjar
						Nikolai Kosjar
					
				
			
			
				
	
			
			
			
						parent
						
							5a791e8839
						
					
				
				
					commit
					ae5d92d618
				
			| @@ -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)); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user