summaryrefslogtreecommitdiffstats
path: root/include/clang/Basic/XRayLists.h
diff options
context:
space:
mode:
authorDean Michael Berris <dberris@google.com>2017-05-24 05:46:36 +0000
committerDean Michael Berris <dberris@google.com>2017-05-24 05:46:36 +0000
commit4d74a8eaaea0a51e22ef12571059b3684b677090 (patch)
tree553edb39b7139c35d7b59c0c478aa026da24081d /include/clang/Basic/XRayLists.h
parenteb4bbc485efa53f413a482ea7240c4b9918713c3 (diff)
[XRay][clang] Allow imbuing arg1 logging attribute via -fxray-always-instrument=
Summary: This change allows us to add arg1 logging support to functions through the special case list provided through -fxray-always-instrument=. This is useful for adding arg1 logging to functions that are either in headers that users don't have control over (i.e. cannot change the source) or would rather not do. It only takes effect when the pattern is matched through the "fun:" special case, as a category. As in: fun:*pattern=arg1 Reviewers: pelikan, rnk Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D33392 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@303719 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/XRayLists.h')
-rw-r--r--include/clang/Basic/XRayLists.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/clang/Basic/XRayLists.h b/include/clang/Basic/XRayLists.h
index fe538289c3..8cfea70e28 100644
--- a/include/clang/Basic/XRayLists.h
+++ b/include/clang/Basic/XRayLists.h
@@ -37,6 +37,7 @@ public:
NONE,
ALWAYS,
NEVER,
+ ALWAYS_ARG1,
};
ImbueAttribute shouldImbueFunction(StringRef FunctionName) const;