aboutsummaryrefslogtreecommitdiff
path: root/tests/TensorLibrary.cpp
diff options
context:
space:
mode:
authorAnthony Barbier <anthony.barbier@arm.com>2017-07-03 17:39:37 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-09-17 14:15:39 +0100
commitac69aa137e360340fe9f148f019d93af6c3d8336 (patch)
tree88c2fb6ea8693c69b19d3b7b38fe26cd916303c8 /tests/TensorLibrary.cpp
parent05da6dd102c988081c7d5eccb227f559f740ceef (diff)
downloadComputeLibrary-ac69aa137e360340fe9f148f019d93af6c3d8336.tar.gz
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>
Diffstat (limited to 'tests/TensorLibrary.cpp')
-rw-r--r--tests/TensorLibrary.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/TensorLibrary.cpp b/tests/TensorLibrary.cpp
index 21bb4ecd73..479c3e5f04 100644
--- a/tests/TensorLibrary.cpp
+++ b/tests/TensorLibrary.cpp
@@ -186,13 +186,15 @@ RawTensor load_ppm(const std::string &path)
}
} // namespace
-TensorLibrary::TensorLibrary(std::string path)
- : _library_path(std::move(path)), _seed{ std::random_device()() }
+TensorLibrary::TensorLibrary(std::string path) //NOLINT
+ : _library_path(std::move(path)),
+ _seed{ std::random_device()() }
{
}
-TensorLibrary::TensorLibrary(std::string path, std::random_device::result_type seed)
- : _library_path(std::move(path)), _seed{ seed }
+TensorLibrary::TensorLibrary(std::string path, std::random_device::result_type seed) //NOLINT
+ : _library_path(std::move(path)),
+ _seed{ seed }
{
}
@@ -342,9 +344,9 @@ RawTensor TensorLibrary::load_image(const std::string &name) const
{
#ifdef _WIN32
const std::string image_path = ("\\images\\");
-#else
+#else /* _WIN32 */
const std::string image_path = ("/images/");
-#endif
+#endif /* _WIN32 */
const std::string path = _library_path + image_path + name;
const std::string extension = path.substr(path.find_last_of('.') + 1);