[llvm-bugs] [Bug 27184] New: InlineCommandComment - incorrect text of argument and wrong value of hasTrailingNewLine()
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Apr 1 20:07:48 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=27184
Bug ID: 27184
Summary: InlineCommandComment - incorrect text of argument and
wrong value of hasTrailingNewLine()
Product: clang
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: libclang
Assignee: unassignedclangbugs at nondot.org
Reporter: dpldobrev at protonmail.com
CC: klimek at google.com, llvm-bugs at lists.llvm.org
Classification: Unclassified
A comment as simple as:
/// \a versions.
/// \a num_versions
/// Comment.
int GetVersion (int versions, int num_versions);
has two bugs in the InlineCommandComment objects Clang generates at parsing:
1. The dot at the first line is incorrectly included in
InlineCommandComment::Argument.Text because it's not part of the name of the
parameter;
2. hasTrailingNewLine() is false in both InlineCommandComment-s. The bug is
indisputable in the second argument reference because it does not have any dots
at the end which might have generated a TextComment to take the trailing new
line.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160402/9a997dcb/attachment.html>
More information about the llvm-bugs
mailing list