[Bf-blender-cvs] [6c2bea64922] master: Cleanup: Clang-tidy silence readability-non-const-parameter

Ankit Meel noreply at git.blender.org
Tue Oct 20 21:40:13 CEST 2020


Commit: 6c2bea64922160cd863b424d036f2ae167deb6e9
Author: Ankit Meel
Date:   Tue Oct 20 23:40:42 2020 +0530
Branches: master
https://developer.blender.org/rB6c2bea64922160cd863b424d036f2ae167deb6e9

Cleanup: Clang-tidy silence readability-non-const-parameter

This is a false alarm, `getFileSystemRepresentation` changes the
return value argument.
So used `NOLINTNEXTLINE`.

===================================================================

M	source/blender/blenlib/intern/storage_apple.mm

===================================================================

diff --git a/source/blender/blenlib/intern/storage_apple.mm b/source/blender/blenlib/intern/storage_apple.mm
index 16a2fd338fa..564ef5a199a 100644
--- a/source/blender/blenlib/intern/storage_apple.mm
+++ b/source/blender/blenlib/intern/storage_apple.mm
@@ -32,6 +32,8 @@
  * \param r_targetpath Buffer for the target path an alias points to.
  * \return Whether the file at the input path is an alias.
  */
+/* False alarm by clang-tidy: #getFileSystemRepresentation changes the return value argument. */
+/* NOLINTNEXTLINE: readability-non-const-parameter. */
 bool BLI_file_alias_target(const char *filepath, char r_targetpath[FILE_MAXDIR])
 {
   /* clang-format off */



More information about the Bf-blender-cvs mailing list