[all-commits] [llvm/llvm-project] 1df7b5: [Sema] Suggest missing format attributes (#166738)

Vladimir Vuksanovic via All-commits all-commits at lists.llvm.org
Fri Dec 5 06:04:33 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1df7b512bde79a2580e1599b9e5a01b3505f7659
      https://github.com/llvm/llvm-project/commit/1df7b512bde79a2580e1599b9e5a01b3505f7659
  Author: Vladimir Vuksanovic <109677816+vvuksanovic at users.noreply.github.com>
  Date:   2025-12-05 (Fri, 05 Dec 2025)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/DiagnosticGroups.td
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Sema/SemaChecking.cpp
    M clang/lib/Sema/SemaDeclAttr.cpp
    A clang/test/Sema/format-attr-missing-gnu.c
    A clang/test/Sema/format-attr-missing.c
    A clang/test/Sema/format-attr-missing.cpp
    A clang/test/Sema/format-attr-missing.m
    M clang/test/Sema/format-strings-scanf.c
    M clang/test/Sema/format-strings.c
    M clang/test/SemaCXX/format-strings.cpp
    M clang/test/SemaObjC/format-strings-objc.m

  Log Message:
  -----------
  [Sema] Suggest missing format attributes (#166738)

Implements the `-Wmissing-format-attribute` diagnostic as a subgroup of
`-Wformat-nonliteral`. It suggests adding format attributes to function
declarations that call other format functions and pass the format string
to them.

This is an updated implementation of #105479.

---------

Co-authored-by: Budimir Arandjelovic <budimir.arandjelovic at htecgroup.com>



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