1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-21 21:52:10 +02:00

Bug 562368 - Fix doxygen template documentation

Change-Id: If0763d66fab13bc1cc7445363368df4c53546c24
This commit is contained in:
Marco Stornelli 2020-04-21 18:20:49 +02:00
parent 39cc3af569
commit 8fa9f63e13
2 changed files with 16 additions and 1 deletions

View file

@ -796,6 +796,21 @@ public class DoxygenCCommentAutoEditStrategyTest extends AbstractAutoEditTest {
assertAutoEditBehaviour(); assertAutoEditBehaviour();
} }
///**X
//template<class T>
//T foo() {}
///**
// * X${whitespace_eol}
// * @tparam T
// * @return
// */
//template<class T>
//T foo() {}
public void testTemplateParameters_Bug562368() throws CoreException {
assertAutoEditBehaviour();
}
protected void assertAutoEditBehaviour() throws CoreException { protected void assertAutoEditBehaviour() throws CoreException {
CTextTools textTools = CUIPlugin.getDefault().getTextTools(); CTextTools textTools = CUIPlugin.getDefault().getTextTools();
final IDocument doc = new Document(); final IDocument doc = new Document();

View file

@ -206,7 +206,7 @@ public class DoxygenMultilineAutoEditStrategy extends DefaultMultilineCommentAut
.append(ASTStringUtil.getSimpleName(decl.getName())) .append(ASTStringUtil.getSimpleName(decl.getName()))
.append(ASTStringUtil.getSignatureString(null, decl)).append(getLineDelimiter()); .append(ASTStringUtil.getSignatureString(null, decl)).append(getLineDelimiter());
} }
result.append(getBriefTag()).append(getPrePostTag()).append(documentTemplateParameters(templateParams)); result.append(getBriefTag()).append(getPrePostTag());
result.append(documentTemplateParameters(templateParams)); result.append(documentTemplateParameters(templateParams));
result.append(documentFunctionParameters(getParameterDecls(decl))); result.append(documentFunctionParameters(getParameterDecls(decl)));