D1169: cext: add /* header */ comment to all PyVarObject_HEAD_INIT() calls

2017-10-18 Thread durin42 (Augie Fackler)
durin42 added a comment. I figured this out by finding a bug at Google on this topic, and then djasper showed me a workaround and said he'd look again at fixing the other case we're stuck on. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D1169 To: durin42,

D1169: cext: add /* header */ comment to all PyVarObject_HEAD_INIT() calls

2017-10-18 Thread durin42 (Augie Fackler)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG6ece4a85c350: cext: add /* header */ comment to all PyVarObject_HEAD_INIT() calls (authored by durin42, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE

D1169: cext: add /* header */ comment to all PyVarObject_HEAD_INIT() calls

2017-10-18 Thread indygreg (Gregory Szorc)
indygreg accepted this revision. indygreg added a comment. This revision is now accepted and ready to land. Oh, I was wondering how to do this. AFAICT this feature is not documented at https://clang.llvm.org/docs/ClangFormat.html or https://clang.llvm.org/docs/ClangFormatStyleOptions.html.

D1169: cext: add /* header */ comment to all PyVarObject_HEAD_INIT() calls

2017-10-17 Thread durin42 (Augie Fackler)
durin42 created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY This gives clang-format the right notion about formatting these struct initializers, therefore allowing us to automatically format several additional files.