llvm-project/llvm
Corentin Jabot 4174f0ca61 [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
2022-07-06 21:18:29 +02:00
..
benchmarks
bindings [ConstExpr] Remove div/rem constant expressions 2022-07-06 10:11:34 +02:00
cmake [llvm] [Debuginfod] Add cpp-httplib optional dependency. 2022-07-06 18:40:56 +00:00
docs [LLVM] Add the support for fmax and fmin in atomicrmw instruction 2022-07-06 10:57:53 -04:00
examples [Kaleidoscope] Remove unused function argument 2022-06-30 20:47:01 +00:00
include [Clang] Add a warning on invalid UTF-8 in comments. 2022-07-06 21:18:29 +02:00
lib [Clang] Add a warning on invalid UTF-8 in comments. 2022-07-06 21:18:29 +02:00
projects
resources
runtimes
test [NFC] [DirectX] Prefix for intrinsics should be dx 2022-07-06 13:27:12 -05:00
tools [LTO][ELF] Add selective --save-temps= option 2022-07-06 10:06:18 -07:00
unittests [llvm] [Debuginfod] Add HTTP Server to Debuginfod library. 2022-07-06 18:56:54 +00:00
utils [gn build] Port f8cbe3cdf0 2022-07-06 17:46:18 +00:00
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt [llvm] [Debuginfod] Add cpp-httplib optional dependency. 2022-07-06 18:40:56 +00:00
CODE_OWNERS.TXT
CREDITS.TXT
LICENSE.TXT
README.txt
RELEASE_TESTERS.TXT
configure
llvm.spec.in

README.txt

The LLVM Compiler Infrastructure
================================

This directory and its subdirectories contain source code for LLVM,
a toolkit for the construction of highly optimized compilers,
optimizers, and runtime environments.

LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.

Please see the documentation provided in docs/ for further
assistance with LLVM, and in particular docs/GettingStarted.rst for getting
started with LLVM and docs/README.txt for an overview of LLVM's
documentation setup.

If you are writing a package for LLVM, see docs/Packaging.rst for our
suggestions.