[PATCH] D118311: [Clang][ModuleMap] Add conditional parsing via requires block declaration

Ian Anderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 27 15:16:53 PST 2022


iana added inline comments.


================
Comment at: clang/docs/Modules.rst:651
+
+    requires cplusplus {
+      header "vector"
----------------
Is there any kind of `else` syntax here? Or do you just use `!whatever` for the else? Is something like this valid?

```
requires cplusplus11 {
  ...
}
requires cplusplus && !cplusplus11 {
  ...
}
```
Or would you nest the `requires`? If you wanted OR, would you just have to duplicate the requires block body?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D118311/new/

https://reviews.llvm.org/D118311



More information about the llvm-commits mailing list