[PATCH] D99808: [Sema] Move 'char-expression-as-unsigned < 0' into a separate diagnostic
Anton Bikineev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 2 11:37:52 PDT 2021
AntonBikineev created this revision.
AntonBikineev added reviewers: aaron.ballman, thakis.
AntonBikineev requested review of this revision.
Herald added a project: clang.
This change splits '-Wtautological-unsigned-zero-compare' by reporting
char-expressions-interpreted-as-unsigned under a separate diagnostic
'-Wtautological-unsigned-char-zero-compare'. This is beneficial for
projects that want to enable '-Wtautological-unsigned-zero-compare' but at
the same time want to keep code portable for platforms with char being
signed or unsigned, such as Chromium.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D99808
Files:
clang/include/clang/Basic/DiagnosticGroups.td
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaChecking.cpp
clang/test/Sema/tautological-unsigned-char-zero-compare.cc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99808.334996.patch
Type: text/x-patch
Size: 5105 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210402/79a9f017/attachment-0001.bin>
More information about the cfe-commits
mailing list