[PATCH] D144334: [Clang] Add C++2b attribute [[assume(expression)]]

Tom Honermann via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 21 09:40:12 PST 2023


tahonermann added inline comments.


================
Comment at: clang/include/clang/Basic/Attr.td:1448
+def Assume : StmtAttr {
+  let Spellings = [CXX11<"", "assume", 202302>];
+  let Documentation = [AssumeDocs];
----------------
philnik wrote:
> Izaron wrote:
> > Honestly I don't have a clue what these numbers `202302` (apparently the `yyyymm` format) would mean :( I'd be grateful if you could help me with the right value for this.
> https://isocpp.org/std/standing-documents/sd-6-sg10-feature-test-recommendations has generally the correct values for this. In this case it's `202207`.
The draft standard is a better reference (http://eel.is/c++draft/cpp.cond#6). Fortunately, it agrees with SD6.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D144334



More information about the cfe-commits mailing list