aaron.ballman added inline comments.
================ Comment at: include/clang/Basic/DiagnosticGroups.td:440 def TautologicalUnsignedEnumZeroCompare : DiagGroup<"tautological-unsigned-enum-zero-compare">; +def TautologicalRangeCompare : DiagGroup<"tautological-constant-range-compare">; def TautologicalOutOfRangeCompare : DiagGroup<"tautological-constant-out-of-range-compare">; ---------------- lebedev.ri wrote: > smeenai wrote: > > aaron.ballman wrote: > > > lebedev.ri wrote: > > > > rsmith wrote: > > > > > "tautological-constant-in-range-compare" would make more sense to me, > > > > > as the complement of "tautological-constant-out-of-range-compare". > > > > I did think about it. > > > > To me "tautological-constant-in-range-compare" may sound as if the > > > > constant is //somewhere// in the range, > > > > while i'd say "tautological-constant-range-compare" better highlights > > > > the fact that the constant *is* the range limit. > > > > No? > > > I don't have strong opinions on this name, but have a slight preference > > > for "in range" because I'm left wondering how "range compare" relates to > > > "out of range compare". > > How about range-limit-compare or range-edge-compare or range-bound-compare > > or something of that nature, that explicitly captures the fact that it's > > the range limit? > Ok, `def TautologicalInRangeCompare : > DiagGroup<"tautological-constant-in-range-compare",` it is then. I think @smeenai may have found a name I like better: tautological-range-limit-compare. @rsmith, what do you think? Repository: rC Clang https://reviews.llvm.org/D41512 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits