diff options
author | Chih-Hung Hsieh <chh@google.com> | 2016-11-15 15:14:05 -0800 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2016-11-16 10:29:25 -0800 |
commit | 11496ac131bb691edf5bdcab3029dceef5c1e4e1 (patch) | |
tree | 9961794b45fa6f66d3ba89754ee60372f0719d86 /rsApiContext.cpp | |
parent | 6babd9ca03e1379380af0c1cfde6f6d3e92ccd29 (diff) | |
download | rs-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 'rsApiContext.cpp')
-rw-r--r-- | rsApiContext.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rsApiContext.cpp b/rsApiContext.cpp index 8cb29930..3f350cdc 100644 --- a/rsApiContext.cpp +++ b/rsApiContext.cpp @@ -21,8 +21,9 @@ #include "rsgApiFuncDecl.h" #include "rsFifo.h" -using namespace android; -using namespace android::renderscript; +using android::renderscript::Context; +using android::renderscript::Device; +using android::renderscript::ObjectBase; /* * This global will be found by the debugger and will have its value flipped. |