]> granicus.if.org Git - clang/commit
[XRay][clang] Support capturing the implicit `this` argument to C++ class member...
authorDean Michael Berris <dberris@google.com>
Fri, 16 Jun 2017 03:22:09 +0000 (03:22 +0000)
committerDean Michael Berris <dberris@google.com>
Fri, 16 Jun 2017 03:22:09 +0000 (03:22 +0000)
commitd9557ee91ddf70e12584f190efb1f1a647f228b7
tree266bf833ae97757ac9502cbaa40e47edd72092c6
parentdd646d623e79ae9d8ec9850f18157bb2d247eb70
[XRay][clang] Support capturing the implicit `this` argument to C++ class member functions

Summary:
Before this change, we couldn't capture the `this` pointer that's
implicitly the first argument of class member functions. There are some
interesting things we can do with capturing even just this single
argument for zero-argument member functions.

Reviewers: rnk, pelikan

Subscribers: cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@305544 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDeclAttr.cpp
test/Sema/xray-log-args-class.cpp [new file with mode: 0644]