summaryrefslogtreecommitdiff
path: root/rsScriptC.cpp
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2016-11-15 15:14:05 -0800
committerChih-Hung Hsieh <chh@google.com>2016-11-16 10:29:25 -0800
commit11496ac131bb691edf5bdcab3029dceef5c1e4e1 (patch)
tree9961794b45fa6f66d3ba89754ee60372f0719d86 /rsScriptC.cpp
parent6babd9ca03e1379380af0c1cfde6f6d3e92ccd29 (diff)
downloadrs-11496ac131bb691edf5bdcab3029dceef5c1e4e1.tar.gz
Fix google-build-using-namespace warnings in rs.
* Most files define classes in renderscript namespace. Define them in the namespace instead of "using namespace ...". Some files define global C++ names, and we replace "using namespace ..." with using declarations of the required names. * Add "NOLINT" comment to rsg_generator.c output code to suppress such warnings. Bug: 32670901 Test: build with WITH_TIDY=1 Change-Id: I9b0edcad3e1fb37c79927b05fd58fb1a301bdf22
Diffstat (limited to 'rsScriptC.cpp')
-rw-r--r--rsScriptC.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/rsScriptC.cpp b/rsScriptC.cpp
index 6508e7fd..96ba1923 100644
--- a/rsScriptC.cpp
+++ b/rsScriptC.cpp
@@ -45,8 +45,7 @@
#endif
-using namespace android;
-using namespace android::renderscript;
+using android::renderscript::ScriptC;
#define GET_TLS() Context::ScriptTLSStruct * tls = \
(Context::ScriptTLSStruct *)pthread_getspecific(Context::gThreadTLSKey); \