[all-commits] [llvm/llvm-project] cd4e60: [Sema] Warn about printf %n on Android and Fuchsia

Alex Brachet via All-commits all-commits at lists.llvm.org
Fri Jan 21 13:01:19 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cd4e600f5f5cedd092c8ff19c208897034494f3d
      https://github.com/llvm/llvm-project/commit/cd4e600f5f5cedd092c8ff19c208897034494f3d
  Author: Alex Brachet <abrachet at google.com>
  Date:   2022-01-21 (Fri, 21 Jan 2022)

  Changed paths:
    M clang/include/clang/AST/FormatString.h
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/AST/OSLog.cpp
    M clang/lib/AST/PrintfFormatString.cpp
    M clang/lib/Sema/SemaChecking.cpp
    M clang/test/FixIt/format.m
    M clang/test/Sema/format-strings.c

  Log Message:
  -----------
  [Sema] Warn about printf %n on Android and Fuchsia

The `printf` specifier `%n` is not supported on Android's libc and will soon be removed from Fuchsia's

Reviewed By: enh

Differential Revision: https://reviews.llvm.org/D117611




More information about the All-commits mailing list