[llvm-bugs] [Bug 33816] New: @available feature request: Make * not mandatory

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jul 17 07:43:09 PDT 2017


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

            Bug ID: 33816
           Summary: @available feature request: Make * not mandatory
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: nicolasweber at gmx.de
                CC: llvm-bugs at lists.llvm.org

We currently have functions IsAtLeastOS10_10() (IsAtLeastOS10_11(), etc). These
return if the current OS is macOS, and it has at least a certain version.

We could almost replace them with @available(), except that that means "os is
at least macOS version N, or a different OS" (due to the `*`). If @available's
* wasn't mandatory and if omitting it would mean "os matches one of the listed
OSs, but nothing else", we could use that instead.

Have you considered making the * not mandatory?

-- 
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/20170717/a23b90e0/attachment.html>


More information about the llvm-bugs mailing list