aboutsummaryrefslogtreecommitdiff
path: root/slang_rs_export_foreach.h
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2012-12-07 19:19:10 -0800
committerStephen Hines <srhines@google.com>2012-12-10 15:50:56 -0800
commit089cde338148fbb75825aea4539ccdae8211ffef (patch)
tree62484491b69ffc703a879d5655607a9e350c80e5 /slang_rs_export_foreach.h
parent0c8eee443cbdccb1b51d138d19e055bd388707dc (diff)
downloadslang-089cde338148fbb75825aea4539ccdae8211ffef.tar.gz
Forbid non-const static variables in kernels.
Bug: 7688011 Change-Id: If03084a9ece76478e0ed0847b75f09c41b89a500
Diffstat (limited to 'slang_rs_export_foreach.h')
-rw-r--r--slang_rs_export_foreach.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/slang_rs_export_foreach.h b/slang_rs_export_foreach.h
index 9bc185e..6cacc60 100644
--- a/slang_rs_export_foreach.h
+++ b/slang_rs_export_foreach.h
@@ -170,7 +170,9 @@ class RSExportForEach : public RSExportable {
static bool isGraphicsRootRSFunc(int targetAPI,
const clang::FunctionDecl *FD);
- static bool isRSForEachFunc(int targetAPI, const clang::FunctionDecl *FD);
+ static bool isRSForEachFunc(int targetAPI,
+ clang::DiagnosticsEngine *DiagEngine,
+ const clang::FunctionDecl *FD);
inline static bool isSpecialRSFunc(int targetAPI,
const clang::FunctionDecl *FD) {