]> granicus.if.org Git - clang/commit
[MS] Add frontend support for __declspec(allocator)
authorReid Kleckner <rnk@google.com>
Mon, 25 Mar 2019 23:20:18 +0000 (23:20 +0000)
committerReid Kleckner <rnk@google.com>
Mon, 25 Mar 2019 23:20:18 +0000 (23:20 +0000)
commit8b0ef00444cbfdd108d9a6136147a104b4e8c5f9
tree13544bd9a4ca58bd6c371cb4770ced1f26678822
parent51c9672078f4ecd63472ef871e969666377263a8
[MS] Add frontend support for __declspec(allocator)

The intention is to add metadata to direct call sites of functions
marked with __declspec(allocator), which will ultimately result in some
S_HEAPALLOCSITE debug info records when emitting codeview.

This is a piece of PR38491

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@356964 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Attr.td
include/clang/Basic/AttrDocs.td
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDeclAttr.cpp
test/SemaCXX/declspec-allocator.cpp [new file with mode: 0644]