From eaacb00c2d0197d1984b4656ba2bfbe2b6d24954 Mon Sep 17 00:00:00 2001 From: Jean-Michel Rouet <36963549+jmrouet@users.noreply.github.com> Date: Wed, 15 Dec 2021 09:23:10 +0100 Subject: [PATCH] Create Issues.md Description of an infinite loop scenario to be solved. --- Issues.md | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Issues.md diff --git a/Issues.md b/Issues.md new file mode 100644 index 0000000..cd944e8 --- /dev/null +++ b/Issues.md @@ -0,0 +1,44 @@ +Dear author @jonimat. + +I don't find a way to send you a message, so I'm trying to create a issues.md file + +I was using AutoDoxyDoc extension in visual studio and came accross an issue with an infinite loop occuring in + +AutoDoxyDoc\DoxygenCompletionCommandHandler.cs around line 247 (method NewCommandLine()) + + while (!currentLine.StartsWith("/*!")) + { + if (m_regexTagSection.IsMatch(currentLine)) + { + extraIndent = m_configService.Config.TagIndentation; + break; + } + + ts.LineUp(); + currentLine = ts.ActivePoint.CreateEditPoint().GetLines(ts.ActivePoint.Line, ts.ActivePoint.Line + 1); + currentLine = currentLine.TrimStart(); + } + + +This occurs when I hit the return key at the end of this line (line 7: *major = 1;) + + /*************************************************************************** + ** Copyright (C) 2021 + ***************************************************************************/ + + void GetVersion(int * major, int * minor, int * patch) { + if (major != nullptr) { + *major = 1; + } + if (minor != nullptr) { + *minor = 0; + } + if (patch != nullptr) { + *patch = 0; + } + } + +as you can see there is no doxygen comment in this file, but the while() loop loops indefinitely. ts.LineUp() reaches the top of the document and nothing new happens. +I think AutoDoxyDoc is thinking the line is a comment but it is not! + +Can you please have a look to it ?