[llvm-bugs] [Bug 35041] New: Type of regular expression in clang-format is not documented

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Oct 23 12:34:13 PDT 2017


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

            Bug ID: 35041
           Summary: Type of regular expression in clang-format is not
                    documented
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Documentation
          Assignee: unassignedclangbugs at nondot.org
          Reporter: wim.leflere at gmail.com
                CC: llvm-bugs at lists.llvm.org

clang-format uses regular expressions to give priorities when sorting includes.
It uses 'POSIX extended regular expressions' for this. But this is missing from
the documentation.

I found out because '\w' to match word characters doesn't work. You have to use
[[:alnum:]].

The documentation could link to https://man.openbsd.org/re_format.7

-- 
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/20171023/8181b4d9/attachment.html>


More information about the llvm-bugs mailing list