[PATCH] D17865: Add replacement = "xxx" to DeprecatedAttr.

Manman Ren via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 3 12:34:09 PST 2016


manmanren created this revision.
manmanren added reviewers: dexonsmith, rjmccall.
manmanren added a subscriber: cfe-commits.

This can be used to display Fix-Its.
We only add this to GNU attributes. Since it now has two optional arguments, and the common parsing does not handle "replacement = ", we use custom parsing for DeprecatedAttr.

http://reviews.llvm.org/D17865

Files:
  include/clang/Basic/Attr.td
  include/clang/Parse/Parser.h
  lib/Lex/PPMacroExpansion.cpp
  lib/Parse/ParseDecl.cpp
  lib/Parse/Parser.cpp
  lib/Sema/SemaDeclAttr.cpp
  test/Sema/attr-availability-replacement.c
  test/SemaCXX/cxx11-attr-print.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17865.49768.patch
Type: text/x-patch
Size: 10000 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160303/e6fb074a/attachment.bin>


More information about the cfe-commits mailing list