================ @@ -1266,11 +1266,11 @@ class CommonTypeTableInfo class TagTableInfo : public CommonTypeTableInfo<TagTableInfo, TagInfo> { public: unsigned getUnversionedInfoSize(const TagInfo &TI) { - return 2 + (TI.SwiftImportAs ? TI.SwiftImportAs->size() : 0) + - 2 + (TI.SwiftRetainOp ? TI.SwiftRetainOp->size() : 0) + - 2 + (TI.SwiftReleaseOp ? TI.SwiftReleaseOp->size() : 0) + - 2 + (TI.SwiftConformance ? TI.SwiftConformance->size() : 0) + - 2 + getCommonTypeInfoSize(TI); + return 2 + (TI.SwiftImportAs ? TI.SwiftImportAs->size() : 0) + 2 + + (TI.SwiftRetainOp ? TI.SwiftRetainOp->size() : 0) + 2 + + (TI.SwiftReleaseOp ? TI.SwiftReleaseOp->size() : 0) + 2 + + (TI.SwiftConformance ? TI.SwiftConformance->size() : 0) + 3 + + getCommonTypeInfoSize(TI); ---------------- compnerd wrote:
Yeah, I think that the grouping helps understand what is being added up (aka, don't clang-format this). https://github.com/llvm/llvm-project/pull/115866 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits