[LLVMbugs] [Bug 22118] New: In LLVM IR documentation, wrong regexp is listed for identifies
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Jan 7 10:24:25 PST 2015
http://llvm.org/bugs/show_bug.cgi?id=22118
Bug ID: 22118
Summary: In LLVM IR documentation, wrong regexp is listed for
identifies
Product: Documentation
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: General docs
Assignee: unassignedbugs at nondot.org
Reporter: tomas.brukner at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
In the LLVM IR documentation, in the Identifiers section
(http://llvm.org/docs/LangRef.html#identifiers), this regexp is listed as the
one matching name of identifier:
‘[%@][a-zA-Z$._][a-zA-Z$._0-9]*‘
However, in the parser
(https://github.com/llvm-mirror/llvm/blob/master/lib/AsmParser/LLLexer.cpp),
following regexp is mentioned:
[-a-zA-Z$._][-a-zA-Z$._0-9]*
The difference is that hyphen is allowed in identifiers.
(For example "%thread-pre-split" is valid identifier - generated by Apple LLVM
version 6.0 (clang-600.0.56) (based on LLVM 3.5svn) for vim.)
--
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/20150107/dbd402b7/attachment.html>
More information about the llvm-bugs
mailing list