[libcamera-devel,1/2] clang-format: Remove space after template

Message ID 20190212222557.8898-1-laurent.pinchart@ideasonboard.com
State Accepted
Commit bc4cace5f32dd28304a25cebd062d31961dfbb3e
Headers show
Series
  • [libcamera-devel,1/2] clang-format: Remove space after template
Related show

Commit Message

Laurent Pinchart Feb. 12, 2019, 10:25 p.m. UTC
Our coding style doesn't require a space after the template keyword.
Adjust .clang-format accordingly.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 .clang-format | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Niklas Söderlund Feb. 13, 2019, 10:23 a.m. UTC | #1
Hi Laurent,

Thanks for your patch.

On 2019-02-13 00:25:56 +0200, Laurent Pinchart wrote:
> Our coding style doesn't require a space after the template keyword.
> Adjust .clang-format accordingly.
> 
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>

> ---
>  .clang-format | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/.clang-format b/.clang-format
> index bed81c58afb5..7c5f7b00b3ee 100644
> --- a/.clang-format
> +++ b/.clang-format
> @@ -100,7 +100,7 @@ ReflowComments: false
>  SortIncludes: false
>  #SortUsingDeclarations: false # Unknown to clang-format-4.0
>  SpaceAfterCStyleCast: false
> -SpaceAfterTemplateKeyword: true
> +SpaceAfterTemplateKeyword: false
>  SpaceBeforeAssignmentOperators: true
>  #SpaceBeforeCtorInitializerColon: true # Unknown to clang-format-5.0
>  #SpaceBeforeInheritanceColon: true # Unknown to clang-format-5.0
> -- 
> Regards,
> 
> Laurent Pinchart
> 
> _______________________________________________
> libcamera-devel mailing list
> libcamera-devel@lists.libcamera.org
> https://lists.libcamera.org/listinfo/libcamera-devel

Patch

diff --git a/.clang-format b/.clang-format
index bed81c58afb5..7c5f7b00b3ee 100644
--- a/.clang-format
+++ b/.clang-format
@@ -100,7 +100,7 @@  ReflowComments: false
 SortIncludes: false
 #SortUsingDeclarations: false # Unknown to clang-format-4.0
 SpaceAfterCStyleCast: false
-SpaceAfterTemplateKeyword: true
+SpaceAfterTemplateKeyword: false
 SpaceBeforeAssignmentOperators: true
 #SpaceBeforeCtorInitializerColon: true # Unknown to clang-format-5.0
 #SpaceBeforeInheritanceColon: true # Unknown to clang-format-5.0