[PATCH] D112024: [clang] diagnose_as attribute for Fortify diagnosing like builtins.

Michael Benfield via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 1 09:54:14 PST 2021


mbenfield updated this revision to Diff 391067.
mbenfield added a comment.

Revert spurious whitespace change.

assert(D)

No else after return.

Allow attribute to be applied to static member functions and test this.

Document that it can't be applied to a non-static member function.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D112024/new/

https://reviews.llvm.org/D112024

Files:
  clang/include/clang/Basic/Attr.td
  clang/include/clang/Basic/AttrDocs.td
  clang/include/clang/Basic/DiagnosticSemaKinds.td
  clang/include/clang/Sema/ParsedAttr.h
  clang/lib/Sema/SemaChecking.cpp
  clang/lib/Sema/SemaDeclAttr.cpp
  clang/test/Sema/attr-diagnose-as-builtin.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112024.391067.patch
Type: text/x-patch
Size: 18593 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211201/2320466d/attachment-0001.bin>


More information about the cfe-commits mailing list