llvm-project/llvm/lib
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
..
Analysis [ValueTracking] Accept Instruction in isSafeToSpeculativelyExecute() (NFC) 2022-07-06 11:12:49 +02:00
AsmParser [LLVM] Add the support for fmax and fmin in atomicrmw instruction 2022-07-06 10:57:53 -04:00
BinaryFormat [Binary] Promote OffloadBinary to inherit from Binary 2022-06-01 18:40:57 -04:00
Bitcode [LLVM] Add the support for fmax and fmin in atomicrmw instruction 2022-07-06 10:57:53 -04:00
Bitstream
CodeGen [LLVM] Add the support for fmax and fmin in atomicrmw instruction 2022-07-06 10:57:53 -04:00
DWARFLinker [DWARFLinker] mark odr candidates inside the same object file. 2022-06-28 19:48:49 +03:00
DWP [llvm] Don't use Optional::getValue (NFC) 2022-06-20 22:45:45 -07:00
DebugInfo Use value_or instead of getValueOr. NFC 2022-06-29 21:55:02 -07:00
Debuginfod [llvm] [Debuginfod] Add HTTP Server to Debuginfod library. 2022-07-06 18:56:54 +00:00
Demangle [MicrosoftDemangle] Set error to true when returning nullptr. 2022-06-08 17:18:09 -07:00
ExecutionEngine [JITLink][RISCV] Ignore R_RISCV_RELAX and check R_RISCV_ALIGN 2022-07-06 18:09:19 +02:00
Extensions
FileCheck [FileCheck] Catch missspelled directives. 2022-05-26 11:37:19 +01:00
Frontend [Clang][OpenMP] Enable floating-point operation for `atomic compare` series 2022-07-06 13:05:11 -04:00
FuzzMutate Reland "[FuzzMutate] Split out FuzzerCLI library that doesn't depend on IR." 2022-05-07 13:49:54 +02:00
Fuzzer
IR [LLVM] Add the support for fmax and fmin in atomicrmw instruction 2022-07-06 10:57:53 -04:00
IRReader
InterfaceStub Revert "Don't use Optional::hasValue (NFC)" 2022-06-25 11:56:50 -07:00
LTO [LTO][ELF] Add selective --save-temps= option 2022-07-06 10:06:18 -07:00
LineEditor [llvm][lldb] use FindLibEdit.cmake everywhere 2022-05-12 15:59:41 -07:00
Linker [Metadata] Utilize the resizing capability of MDNodes in Moduleflag processing. 2022-07-06 10:18:33 -07:00
MC [NFC][XCOFF] remove an unused global variable. 2022-06-30 06:55:49 -04:00
MCA [MCA] Allow mca::Instruction-s to be recycled and reused 2022-06-24 15:39:51 -07:00
ObjCopy [llvm-objcopy] -O binary: align sh_offset for section changed from SHT_NOBITS 2022-07-04 21:45:19 -07:00
Object [llvm-objdump] Ensure offloading sections have proper alignment 2022-07-01 23:26:44 -04:00
ObjectYAML [ObjectYAML] Add offloading binary implementations for obj2yaml and yaml2obj 2022-07-01 21:13:18 -04:00
Option [Driver] Simplify hasFlag pattern with addOptInFlag/addOptOutFlag helpers 2022-04-11 12:29:25 -07:00
Passes [LLVM][LTO][LLD] Enable Profile Guided Layout (--call-graph-profile-sort) for FullLTO 2022-07-01 13:57:36 +01:00
ProfileData [CoverageMapping] Remove dots from paths inside the profile 2022-06-28 20:53:01 -07:00
Remarks Don't use Optional::hasValue (NFC) 2022-06-20 20:05:16 -07:00
Support [Clang] Add a warning on invalid UTF-8 in comments. 2022-07-06 21:18:29 +02:00
TableGen [llvm] Don't use Optional::hasValue (NFC) 2022-06-25 21:42:52 -07:00
Target [PowerPC] Fix the check for scalar MASS conversion 2022-07-06 11:44:00 -07:00
Testing [llvm] Use value_or instead of getValueOr (NFC) 2022-06-18 23:07:11 -07:00
TextAPI
ToolDrivers [llvm-lib] Ignore /NODEFAULTLIB flag 2022-07-05 10:27:50 -07:00
Transforms [Metadata] Utilize the resizing capability of MDNodes in Moduleflag processing. 2022-07-06 10:18:33 -07:00
WindowsDriver [llvm] Don't use Optional::hasValue (NFC) 2022-06-25 21:42:52 -07:00
WindowsManifest [llvm] Fix typo for libxml2 detection 2022-05-17 08:45:31 +00:00
XRay
CMakeLists.txt