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: unassignedclangb...@nondot.org
          Reporter: dpldob...@protonmail.com
                CC: kli...@google.com, llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to