frameworks/rs: fix typos and clang-tidy warnings

This change fixes a few typos and clang tidy warnings related to the
"llvm-namespace-comment" checks.

Bug: 26936282
Test: WITH_TIDY=1 WITH_TIDY_CHECKS="llvm-namespace-comment" mm
Change-Id: Ic65182e5b4999fbd48d6a8ad7172e4bfeeb541f4
diff --git a/rsov/compiler/GlobalMergePass.cpp b/rsov/compiler/GlobalMergePass.cpp
index e177de8..1570dbc 100644
--- a/rsov/compiler/GlobalMergePass.cpp
+++ b/rsov/compiler/GlobalMergePass.cpp
@@ -134,7 +134,7 @@
     return !Globals.empty();
   }
 };
-}
+} // namespace
 
 char GlobalMergePass::ID = 0;
 
diff --git a/rsov/compiler/GlobalMergePass.h b/rsov/compiler/GlobalMergePass.h
index c402e59..4baaedf 100644
--- a/rsov/compiler/GlobalMergePass.h
+++ b/rsov/compiler/GlobalMergePass.h
@@ -19,7 +19,7 @@
 
 namespace llvm {
 class ModulePass;
-}
+} // namespace llvm
 
 namespace rs2spirv {
 
diff --git a/rsov/compiler/InlinePreparationPass.cpp b/rsov/compiler/InlinePreparationPass.cpp
index 9e016fa..70ff659 100644
--- a/rsov/compiler/InlinePreparationPass.cpp
+++ b/rsov/compiler/InlinePreparationPass.cpp
@@ -75,7 +75,7 @@
     return true;
   }
 };
-}
+} // namespace
 
 char InlinePreparationPass::ID = 0;
 
diff --git a/rsov/compiler/InlinePreparationPass.h b/rsov/compiler/InlinePreparationPass.h
index 28f2a74..aa85c43 100644
--- a/rsov/compiler/InlinePreparationPass.h
+++ b/rsov/compiler/InlinePreparationPass.h
@@ -19,11 +19,11 @@
 
 namespace llvm {
 class ModulePass;
-}
+} // namespace llvm
 
 namespace bcinfo {
 class MetadataExtractor;
-}
+} // namespace bcinfo
 
 namespace rs2spirv {
 
diff --git a/rsov/compiler/KernelSignature.cpp b/rsov/compiler/KernelSignature.cpp
index f9f2480..6367ed4 100644
--- a/rsov/compiler/KernelSignature.cpp
+++ b/rsov/compiler/KernelSignature.cpp
@@ -56,7 +56,7 @@
   badNameStream << ']';
   return badNameStream.str();
 }
-}
+} // namespace
 
 namespace rs2spirv {
 
diff --git a/rsov/compiler/RSAllocationUtils.cpp b/rsov/compiler/RSAllocationUtils.cpp
index dbcb2a8..7676b27 100644
--- a/rsov/compiler/RSAllocationUtils.cpp
+++ b/rsov/compiler/RSAllocationUtils.cpp
@@ -192,4 +192,4 @@
   return true;
 }
 
-} // rs2spirv
+} // namespace rs2spirv
diff --git a/rsov/compiler/RSAllocationUtils.h b/rsov/compiler/RSAllocationUtils.h
index 5b5b818..4eae084 100644
--- a/rsov/compiler/RSAllocationUtils.h
+++ b/rsov/compiler/RSAllocationUtils.h
@@ -26,7 +26,7 @@
 class GlobalVariable;
 class Module;
 class Type;
-}
+} // namespace llvm
 
 namespace rs2spirv {
 
diff --git a/rsov/compiler/RSSPIRVWriter.cpp b/rsov/compiler/RSSPIRVWriter.cpp
index 968828d..1671cee 100644
--- a/rsov/compiler/RSSPIRVWriter.cpp
+++ b/rsov/compiler/RSSPIRVWriter.cpp
@@ -44,7 +44,7 @@
 
 namespace llvm {
 FunctionPass *createPromoteMemoryToRegisterPass();
-}
+} // namespace llvm
 
 namespace rs2spirv {
 
diff --git a/rsov/compiler/RSSPIRVWriter.h b/rsov/compiler/RSSPIRVWriter.h
index 1851ff3..91fe4d0 100644
--- a/rsov/compiler/RSSPIRVWriter.h
+++ b/rsov/compiler/RSSPIRVWriter.h
@@ -22,7 +22,7 @@
 namespace llvm {
 class Module;
 class raw_ostream;
-}
+} // namespace llvm
 
 namespace rs2spirv {
 
diff --git a/rsov/compiler/ReflectionPass.cpp b/rsov/compiler/ReflectionPass.cpp
index f7aabd1..ae0e895 100644
--- a/rsov/compiler/ReflectionPass.cpp
+++ b/rsov/compiler/ReflectionPass.cpp
@@ -287,7 +287,8 @@
     {RSType::rs_uchar4, {RSType::rs_uchar4, true, 4, "%uchar", "Rgba8ui"}},
     {RSType::rs_int4, {RSType::rs_int4, true, 4, "%uint", "Rgba32i"}},
     {RSType::rs_float4, {RSType::rs_float4, true, 4, "%float", "Rgba32f"}}};
-};
+
+} // namespace
 
 char ReflectionPass::ID = 0;
 
diff --git a/rsov/compiler/ReflectionPass.h b/rsov/compiler/ReflectionPass.h
index 6770eaf..3691009 100644
--- a/rsov/compiler/ReflectionPass.h
+++ b/rsov/compiler/ReflectionPass.h
@@ -23,11 +23,11 @@
 
 namespace llvm {
 class ModulePass;
-}
+} // namespace llvm
 
 namespace bcinfo {
 class MetadataExtractor;
-}
+} // namespace bcinfo
 
 namespace rs2spirv {
 
@@ -36,4 +36,4 @@
 
 } // namespace rs2spirv
 
-#endif
\ No newline at end of file
+#endif
diff --git a/rsov/compiler/RemoveNonkernelsPass.cpp b/rsov/compiler/RemoveNonkernelsPass.cpp
index fb2d9ea..1ffe9f1 100644
--- a/rsov/compiler/RemoveNonkernelsPass.cpp
+++ b/rsov/compiler/RemoveNonkernelsPass.cpp
@@ -84,7 +84,7 @@
     return true;
   }
 };
-}
+} // namespace
 
 char RemoveNonkernelsPass::ID = 0;
 
diff --git a/rsov/compiler/RemoveNonkernelsPass.h b/rsov/compiler/RemoveNonkernelsPass.h
index ec2a561..aa91c91 100644
--- a/rsov/compiler/RemoveNonkernelsPass.h
+++ b/rsov/compiler/RemoveNonkernelsPass.h
@@ -19,11 +19,11 @@
 
 namespace llvm {
 class ModulePass;
-}
+} // namespace llvm
 
 namespace bcinfo {
 class MetadataExtractor;
-}
+} // namespace bcinfo
 
 namespace rs2spirv {
 
diff --git a/rsov/compiler/rs2spirv.cpp b/rsov/compiler/rs2spirv.cpp
index b9328ff..c32b7f0 100644
--- a/rsov/compiler/rs2spirv.cpp
+++ b/rsov/compiler/rs2spirv.cpp
@@ -37,7 +37,7 @@
 
 namespace kExt {
 const char SPIRVBinary[] = ".spv";
-}
+} // namespace kExt
 
 using namespace llvm;
 
@@ -74,7 +74,7 @@
 
 namespace SPIRV {
 extern bool SPIRVUseTextFormat;
-}
+} // namespace SPIRV
 
 static std::string removeExt(const std::string &FileName) {
   size_t Pos = FileName.find_last_of(".");