[llvm-bugs] [Bug 45043] New: YAMLParser.cpp Scanner::setError - unused StringRef::iterator argument

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Feb 27 03:42:43 PST 2020


https://bugs.llvm.org/show_bug.cgi?id=45043

            Bug ID: 45043
           Summary: YAMLParser.cpp Scanner::setError - unused
                    StringRef::iterator argument
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Support Libraries
          Assignee: unassignedbugs at nondot.org
          Reporter: llvm-dev at redking.me.uk
                CC: arphaman at gmail.com, dexonsmith at apple.com,
                    joker.eph at gmail.com, llvm-bugs at justinbogner.com,
                    llvm-bugs at lists.llvm.org, spatel+llvm at rotateright.com

The function:

void Scanner::setError(const Twine &Message, StringRef::iterator Position)

never uses the Position iterator, instead using the class's Current iterator,
which looks like a typo as we also have:

void Scanner:setError(const Twine &Message) {
  setError(Message, Current);
}

-- 
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/20200227/77544fd6/attachment.html>


More information about the llvm-bugs mailing list