aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
diff options
context:
space:
mode:
authorCorentin Jabot <corentinjabot@gmail.com>2022-06-17 16:23:41 +0200
committerCorentin Jabot <corentinjabot@gmail.com>2022-07-12 14:34:30 +0200
commitcc309721d20c8e544ae7a10a66735ccf4981a11c (patch)
tree35566661c4e208a5d57badb7f2a12d18fabdaa76 /clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
parent4e4a4c057665d169b8fe6dcdd5bb7c0b0bf8ff19 (diff)
downloadllvm-cc309721d20c8e544ae7a10a66735ccf4981a11c.zip
llvm-cc309721d20c8e544ae7a10a66735ccf4981a11c.tar.gz
llvm-cc309721d20c8e544ae7a10a66735ccf4981a11c.tar.bz2
[Clang] Add a warning on invalid UTF-8 in comments.
Introduce an off-by default `-Winvalid-utf8` warning that detects invalid UTF-8 code units sequences in comments. Invalid UTF-8 in other places is already diagnosed, as that cannot appear in identifiers and other grammar constructs. The warning is off by default as its likely to be somewhat disruptive otherwise. This warning allows clang to conform to the yet-to be approved WG21 "P2295R5 Support for UTF-8 as a portable source file encoding" paper. Reviewed By: aaron.ballman, #clang-language-wg Differential Revision: https://reviews.llvm.org/D128059
Diffstat (limited to 'clang/lib/Frontend/CreateInvocationFromCommandLine.cpp')
0 files changed, 0 insertions, 0 deletions