From bb80c1347ccc6317754f80a28d42fa2dbcc66983 Mon Sep 17 00:00:00 2001 From: Yves Gerey Date: Mon, 15 Jul 2019 21:11:27 +0200 Subject: [PATCH] Guard against clang-format wrong behavior. Prevent clang-format to touch these two files, as the result doesn't honor ColumnLimit setting. Bug: webrtc:9340 Change-Id: I9b692a82df5385fa2d1216d915898439234b34b1 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/145720 Reviewed-by: Karl Wiberg Reviewed-by: Oskar Sundbom Commit-Queue: Yves Gerey Cr-Commit-Position: refs/heads/master@{#28577} --- modules/audio_coding/codecs/ilbc/hp_input.h | 3 +++ modules/audio_coding/codecs/ilbc/hp_output.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/modules/audio_coding/codecs/ilbc/hp_input.h b/modules/audio_coding/codecs/ilbc/hp_input.h index ac0d26b6db..682441ac22 100644 --- a/modules/audio_coding/codecs/ilbc/hp_input.h +++ b/modules/audio_coding/codecs/ilbc/hp_input.h @@ -21,6 +21,8 @@ #include "modules/audio_coding/codecs/ilbc/defines.h" +// clang-format off +// Bad job here. https://bugs.llvm.org/show_bug.cgi?id=34274 void WebRtcIlbcfix_HpInput( int16_t* signal, /* (i/o) signal vector */ int16_t* ba, /* (i) B- and A-coefficients (2:nd order) @@ -30,5 +32,6 @@ void WebRtcIlbcfix_HpInput( yhi[n-2] ylow[n-2] */ int16_t* x, /* (i/o) Filter state x[n-1] x[n-2] */ size_t len); /* (i) Number of samples to filter */ +// clang-format on #endif diff --git a/modules/audio_coding/codecs/ilbc/hp_output.h b/modules/audio_coding/codecs/ilbc/hp_output.h index 88ecdb5ba1..54d976309f 100644 --- a/modules/audio_coding/codecs/ilbc/hp_output.h +++ b/modules/audio_coding/codecs/ilbc/hp_output.h @@ -21,6 +21,8 @@ #include "modules/audio_coding/codecs/ilbc/defines.h" +// clang-format off +// Bad job here. https://bugs.llvm.org/show_bug.cgi?id=34274 void WebRtcIlbcfix_HpOutput( int16_t* signal, /* (i/o) signal vector */ int16_t* ba, /* (i) B- and A-coefficients (2:nd order) @@ -30,5 +32,6 @@ void WebRtcIlbcfix_HpOutput( yhi[n-2] ylow[n-2] */ int16_t* x, /* (i/o) Filter state x[n-1] x[n-2] */ size_t len); /* (i) Number of samples to filter */ +// clang-format on #endif