[PATCH] D87611: [SystemZ][z/OS] Set aligned allocation unavailable by default for z/OS

Hubert Tong via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 16 09:01:49 PDT 2020


hubert.reinterpretcast added inline comments.


================
Comment at: clang/include/clang/Basic/DiagnosticSemaKinds.td:7216
+  "aligned %select{allocation|deallocation}0 function of type '%1' is "
+  "%select{only|not}4 available on %2 %select{%3 or newer|}4">;
 def note_silence_aligned_allocation_unavailable : Note<
----------------
Can something be done about the trailing space?


================
Comment at: clang/test/SemaCXX/unavailable_aligned_allocation.cpp:158
+#elif defined(ZOS)
+// expected-error at -18 {{aligned deallocation function of type 'void (void *, enum std::align_val_t) noexcept' is not available on z/OS}}}
+// expected-note at -19 {{if you supply your own aligned allocation functions}}
----------------
Try to use the regex form to check against trailing whitespace.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D87611



More information about the cfe-commits mailing list