aaron.ballman added inline comments.
================ Comment at: clang/docs/LanguageExtensions.rst:2389 const int ext1 = __builtin_offsetof(struct U { int i; }, i); // C extension - const int ext2 = __builtin_offsetof(struct S, t.f[1]); // C & C++ extension + const int ext2 = __builtin_offsetof(struct S, t.f[1]); ---------------- stilor wrote: > Minor nit: maybe rename from `ext2` to, say, `offset_to_subobject` to avoid > implying it is an extension. I've made that change on trunk, but I probably won't cherry-pick it over to 16 as the example is reasonably clear enough. That said, if you feel strongly, feel free to pick it: 9367bd05913b11aaadf89c4edeced4321c65b605 Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D142723/new/ https://reviews.llvm.org/D142723 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits