forked from qt-creator/qt-creator
		
	Preprocessor: Adjust lines also for multiline C++ comments
Change-Id: I87d6e76be3030e617603209c3a1b8b3c476cf1f6 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
		
				
					committed by
					
						 Orgad Shaneh
						Orgad Shaneh
					
				
			
			
				
	
			
			
			
						parent
						
							466eb0b0f8
						
					
				
				
					commit
					6133920bfe
				
			| @@ -1300,7 +1300,7 @@ void Preprocessor::trackExpansionCycles(PPToken *tk) | ||||
|  | ||||
| static void adjustForCommentOrStringNewlines(unsigned *currentLine, const PPToken &tk) | ||||
| { | ||||
|     if (tk.is(T_COMMENT) || tk.is(T_DOXY_COMMENT) || tk.isStringLiteral()) | ||||
|     if (tk.isComment() || tk.isStringLiteral()) | ||||
|         (*currentLine) += tk.asByteArrayRef().count('\n'); | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user