COMPMID-418 Add check and fix comments after preprocessor conditions

Change-Id: I1353fd652ee180e3931e58b4ce13d651a48c7e2c
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/79567
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Reviewed-by: Moritz Pflanzer <moritz.pflanzer@arm.com>
diff --git a/tests/TensorLibrary.h b/tests/TensorLibrary.h
index 69b2381..6c079b6 100644
--- a/tests/TensorLibrary.h
+++ b/tests/TensorLibrary.h
@@ -45,7 +45,7 @@
 
 #if ARM_COMPUTE_ENABLE_FP16
 #include <arm_fp16.h> // needed for float16_t
-#endif
+#endif                /* ARM_COMPUTE_ENABLE_FP16 */
 
 namespace arm_compute
 {
@@ -370,7 +370,7 @@
     mutable TensorCache             _cache{};
     mutable std::mutex              _format_lock{};
     mutable std::mutex              _channel_lock{};
-    std::string                     _library_path;
+    const std::string               _library_path;
     std::random_device::result_type _seed;
 };
 
@@ -600,7 +600,7 @@
             fill(tensor, distribution_f16, seed_offset);
             break;
         }
-#endif
+#endif /* ARM_COMPUTE_ENABLE_FP16 */
         case DataType::F32:
         {
             ARM_COMPUTE_ERROR_ON(!(std::is_same<float, D>::value));
@@ -632,9 +632,9 @@
 {
 #ifdef _WIN32
     const std::string path_separator("\\");
-#else
+#else  /* _WIN32 */
     const std::string path_separator("/");
-#endif
+#endif /* _WIN32 */
 
     const std::string path = _library_path + path_separator + name;
 
@@ -662,4 +662,4 @@
 }
 } // namespace test
 } // namespace arm_compute
-#endif
+#endif /* __ARM_COMPUTE_TEST_TENSOR_LIBRARY_H__ */