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
diff --git a/rsProgramVertex.cpp b/rsProgramVertex.cpp index 3492f63..933ff22 100644 --- a/rsProgramVertex.cpp +++ b/rsProgramVertex.cpp
@@ -18,9 +18,8 @@ #include "rsProgramVertex.h" #include "rsMatrix4x4.h" -using namespace android; -using namespace android::renderscript; - +using android::renderscript::ProgramVertex; +using android::renderscript::ProgramVertexState; ProgramVertex::ProgramVertex(Context *rsc, const char * shaderText, size_t shaderLength, const char** textureNames, size_t textureNamesCount, const size_t *textureNamesLength,