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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to