[all-commits] [llvm/llvm-project] 99ddde: [Clang][Sema] Process warnings conditionally (#120...
Dmitry Chestnykh via All-commits
all-commits at lists.llvm.org
Mon Dec 23 09:02:51 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 99dddef340e566e9d303010f1219f7d7d6d37a11
https://github.com/llvm/llvm-project/commit/99dddef340e566e9d303010f1219f7d7d6d37a11
Author: Dmitry Chestnykh <dm.chestnykh at gmail.com>
Date: 2024-12-23 (Mon, 23 Dec 2024)
Changed paths:
M clang/lib/Sema/SemaChecking.cpp
Log Message:
-----------
[Clang][Sema] Process warnings conditionally (#120591)
There are a few functions that emit warnings related to positional
arguments in format strings. These functions use `getLocationOfByte()`
which has O(n) complexity and may lead to silent hang of compilation in
some cases. But such warnings is not widely used and actually don't emit
if user didn't pass the appropriate `-W...` flag, so if the flag is not
passed dont make the call to `EmitFormatDiagnostic` for such diags.
Fix #120462
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list