mirror-llvm-project/clang
Aaron Ballman d46116b2e4 Suppress octal literal diagnostics from system macros (#192481)
We emit two kinds of diagnostics related to octal literals. One is a
compat/extension warning for use of 0o as the literal prefix and the
other is a deprecation warning for use of 0 as the literal prefix.

Clang now suppresses both of those diagnostics when the octal literal
comes from a macro expansion of a macro defined in a system header.
Those are not uses of the literal the user has any control over,
generally, so the diagnostics are not helpful in that case.

Fixes #192389
2026-04-20 07:11:39 +00:00
..
bindings [libclang/python] Add check for reparsing (#172373) 2025-12-20 00:09:00 +04:00
cmake [hexagon] Add dylib cmake + toolchain_only (#177247) 2026-02-18 08:13:25 +00:00
docs Suppress octal literal diagnostics from system macros (#192481) 2026-04-20 07:11:39 +00:00
examples [CMake][NFC] Don't use uninitialized LLVM_REQUIRES_* (#175554) 2026-01-12 16:13:20 +00:00
include [Clang] Fix the normalization of fold constraints (#177531) 2026-02-24 07:08:34 +00:00
lib Suppress octal literal diagnostics from system macros (#192481) 2026-04-20 07:11:39 +00:00
runtime
test Suppress octal literal diagnostics from system macros (#192481) 2026-04-20 07:11:39 +00:00
tools [ClangLinkerWrapper] Fix -v for newer CMake passing it directly (#188883) 2026-04-17 12:46:46 +00:00
unittests [clang-format] Correctly annotate binary stars in braced init lists (#186732) 2026-04-20 07:08:30 +00:00
utils [CIR][NFC] Generate ABI lowering patterns with TableGen (#175021) 2026-01-10 00:18:09 +08:00
www Revert "Reapply "[C++20][Modules] Implement P1857R3 Modules Dependency Discovery" (#173130)" (#173549) 2025-12-25 19:55:40 +08:00
.clang-format
.clang-tidy
.gitignore
AreaTeamMembers.txt Update Qualcomm email addresses. (#165799) 2025-10-30 17:18:18 -07:00
CMakeLists.txt
INSTALL.txt
LICENSE.TXT
Maintainers.rst Update Clang Maintainers (#168271) 2025-11-17 13:25:00 +00:00
NOTES.txt
README.md

C language Family Front-end

Welcome to Clang.

This is a compiler front-end for the C family of languages (C, C++ and Objective-C) which is built as part of the LLVM compiler infrastructure project.

Unlike many other compiler frontends, Clang is useful for a number of things beyond just compiling code: we intend for Clang to be host to a number of different source-level tools. One example of this is the Clang Static Analyzer.

If you're interested in more (including how to build Clang) it is best to read the relevant websites. Here are some pointers: