Adding NOLINT for typedefs.h and common_types.h

Now that we have moved WebRTC from src/webrtc to src/, common_types.h
and typedefs.h are triggering a cpplint error.

The cpplint complaint is:
Include the directory when naming .h files  [build/include] [4]

This CL disables the error but we have to remove these two headers
from the root directory.

NOPRESUBMIT=true

Bug: webrtc:5876
Change-Id: I08e1b69aadcc4b28ab83bf25e3819d135d41d333
Reviewed-on: https://webrtc-review.googlesource.com/1577
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Henrik Kjellander <kjellander@google.com>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#19859}
This commit is contained in:
Mirko Bonadei
2017-09-15 13:58:09 +02:00
committed by Commit Bot
parent 563934e726
commit 7120742701
549 changed files with 595 additions and 595 deletions

View File

@ -12,7 +12,7 @@
#define MODULES_AUDIO_CODING_CODECS_AUDIO_FORMAT_CONVERSION_H_
#include "api/audio_codecs/audio_format.h"
#include "common_types.h"
#include "common_types.h" // NOLINT(build/include)
namespace webrtc {

View File

@ -16,7 +16,7 @@
#include "api/array_view.h"
#include "rtc_base/buffer.h"
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
#define WEBRTC_CNG_MAX_LPC_ORDER 12

View File

@ -13,7 +13,7 @@
#include <algorithm>
#include <limits>
#include "common_types.h"
#include "common_types.h" // NOLINT(build/include)
#include "modules/audio_coding/codecs/g711/g711_interface.h"
#include "rtc_base/checks.h"

View File

@ -21,7 +21,7 @@
*/
#include "g711.h"
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
/* Copied from the CCITT G.711 specification */
static const uint8_t ulaw_to_alaw_table[256] = {

View File

@ -49,7 +49,7 @@ specification by other means.
extern "C" {
#endif
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
#if defined(__i386__)
/*! \brief Find the bit position of the highest set bit in a word

View File

@ -10,7 +10,7 @@
#include <string.h>
#include "g711.h"
#include "g711_interface.h"
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
size_t WebRtcG711_EncodeA(const int16_t* speechIn,
size_t len,

View File

@ -11,7 +11,7 @@
#ifndef MODULES_AUDIO_CODING_CODECS_G711_G711_INTERFACE_H_
#define MODULES_AUDIO_CODING_CODECS_G711_G711_INTERFACE_H_
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
// Comfort noise constants
#define G711_WEBRTC_SPEECH 1

View File

@ -13,7 +13,7 @@
#include <algorithm>
#include <limits>
#include "common_types.h"
#include "common_types.h" // NOLINT(build/include)
#include "modules/audio_coding/codecs/g722/g722_interface.h"
#include "rtc_base/checks.h"
#include "rtc_base/safe_conversions.h"

View File

@ -35,7 +35,7 @@
#include <stdlib.h>
#include "g722_enc_dec.h"
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
#if !defined(FALSE)
#define FALSE 0

View File

@ -31,7 +31,7 @@
#if !defined(_G722_ENC_DEC_H_)
#define _G722_ENC_DEC_H_
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
/*! \page g722_page G.722 encoding and decoding
\section g722_page_sec_1 What does it do?

View File

@ -35,7 +35,7 @@
#include <stdlib.h>
#include "g722_enc_dec.h"
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
#if !defined(FALSE)
#define FALSE 0

View File

@ -14,7 +14,7 @@
#include <string.h>
#include "g722_enc_dec.h"
#include "g722_interface.h"
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
int16_t WebRtcG722_CreateEncoder(G722EncInst **G722enc_inst)
{

View File

@ -11,7 +11,7 @@
#ifndef MODULES_AUDIO_CODING_CODECS_G722_G722_INTERFACE_H_
#define MODULES_AUDIO_CODING_CODECS_G722_G722_INTERFACE_H_
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
/*
* Solution to support multiple instances

View File

@ -15,7 +15,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
/* include API */
#include "modules/audio_coding/codecs/g722/g722_interface.h"

View File

@ -12,7 +12,7 @@
#include <algorithm>
#include <limits>
#include "common_types.h"
#include "common_types.h" // NOLINT(build/include)
#include "modules/audio_coding/codecs/ilbc/ilbc.h"
#include "rtc_base/checks.h"
#include "rtc_base/safe_conversions.h"

View File

@ -20,7 +20,7 @@
#define MODULES_AUDIO_CODING_CODECS_ILBC_MAIN_SOURCE_CONSTANTS_H_
#include "defines.h"
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
/* high pass filters */

View File

@ -20,7 +20,7 @@
#include <string.h>
#include "signal_processing_library.h"
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
/* general codec settings */

View File

@ -24,7 +24,7 @@
* Define the fixpoint numeric formats
*/
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
/*
* Solution to support multiple instances

View File

@ -19,7 +19,7 @@
#ifndef MODULES_AUDIO_CODING_CODECS_ILBC_MAIN_SOURCE_VQ3_H_
#define MODULES_AUDIO_CODING_CODECS_ILBC_MAIN_SOURCE_VQ3_H_
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
/*----------------------------------------------------------------*
* Vector quantization of order 3 (based on MSE)

View File

@ -19,7 +19,7 @@
#ifndef MODULES_AUDIO_CODING_CODECS_ILBC_MAIN_SOURCE_VQ4_H_
#define MODULES_AUDIO_CODING_CODECS_ILBC_MAIN_SOURCE_VQ4_H_
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
/*----------------------------------------------------------------*
* Vector quantization of order 4 (based on MSE)

View File

@ -11,7 +11,7 @@
#ifndef MODULES_AUDIO_CODING_CODECS_ISAC_AUDIO_ENCODER_ISAC_T_IMPL_H_
#define MODULES_AUDIO_CODING_CODECS_ISAC_AUDIO_ENCODER_ISAC_T_IMPL_H_
#include "common_types.h"
#include "common_types.h" // NOLINT(build/include)
#include "rtc_base/checks.h"
namespace webrtc {

View File

@ -11,7 +11,7 @@
#ifndef MODULES_AUDIO_CODING_CODECS_ISAC_BANDWIDTH_INFO_H_
#define MODULES_AUDIO_CODING_CODECS_ISAC_BANDWIDTH_INFO_H_
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
typedef struct {
int in_use;

View File

@ -14,7 +14,7 @@
#include <stddef.h>
#include "modules/audio_coding/codecs/isac/bandwidth_info.h"
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
typedef struct {
void *dummy;

View File

@ -11,7 +11,7 @@
#ifndef MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_FILTERBANK_INTERNAL_H_
#define MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_FILTERBANK_INTERNAL_H_
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {

View File

@ -19,7 +19,7 @@
#ifndef MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_FILTERBANK_TABLES_H_
#define MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_FILTERBANK_TABLES_H_
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {

View File

@ -15,7 +15,7 @@
#include "rtc_base/sanitizer.h"
#include "system_wrappers/include/cpu_features_wrapper.h"
#include "test/gtest.h"
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
class FilterBanksTest : public testing::Test {
protected:

View File

@ -11,7 +11,7 @@
#include "modules/audio_coding/codecs/isac/fix/source/codec.h"
#include "system_wrappers/include/cpu_features_wrapper.h"
#include "test/gtest.h"
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
class FiltersTest : public testing::Test {
protected:

View File

@ -16,7 +16,7 @@
#include "settings.h"
#include "signal_processing_library.h"
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
/* Filter ar_g_Q0[] and ar_f_Q0[] through an AR filter with coefficients
* cth_Q15[] and sth_Q15[].

View File

@ -11,7 +11,7 @@
#include <stddef.h>
#include "modules/audio_coding/codecs/isac/fix/source/settings.h"
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
// Filter ar_g_Q0[] and ar_f_Q0[] through an AR filter with coefficients
// cth_Q15[] and sth_Q15[].

View File

@ -11,7 +11,7 @@
#include "modules/audio_coding/codecs/isac/fix/source/lpc_masking_model.h"
#include "system_wrappers/include/cpu_features_wrapper.h"
#include "test/gtest.h"
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
class LpcMaskingModelTest : public testing::Test {
protected:

View File

@ -18,7 +18,7 @@
#ifndef MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_LPC_TABLES_H_
#define MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_LPC_TABLES_H_
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
/* indices of KLT coefficients used */
extern const uint16_t WebRtcIsacfix_kSelIndGain[12];

View File

@ -18,7 +18,7 @@
#ifndef MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_PITCH_GAIN_TABLES_H_
#define MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_PITCH_GAIN_TABLES_H_
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
/********************* Pitch Filter Gain Coefficient Tables ************************/
/* cdf for quantized pitch filter gains */

View File

@ -18,7 +18,7 @@
#ifndef MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_PITCH_LAG_TABLES_H_
#define MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_PITCH_LAG_TABLES_H_
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
/********************* Pitch Filter Lag Coefficient Tables ************************/

View File

@ -20,7 +20,7 @@
#define MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_SPECTRUM_AR_MODEL_TABLES_H_
#include "settings.h"
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
/********************* AR Coefficient Tables ************************/
/* cdf for quantized reflection coefficient 1 */

View File

@ -22,7 +22,7 @@
#include "common_audio/signal_processing/include/signal_processing_library.h"
#include "modules/audio_coding/codecs/isac/bandwidth_info.h"
#include "modules/audio_coding/codecs/isac/fix/source/settings.h"
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
/* Bitstream struct for decoder */
typedef struct Bitstreamstruct_dec {

View File

@ -14,7 +14,7 @@
*/
#include "modules/audio_coding/codecs/isac/fix/source/settings.h"
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
/* Cosine table 1 in Q14. */
const int16_t WebRtcIsacfix_kCosTab1[FRAMESAMPLES/2] = {

View File

@ -14,7 +14,7 @@
#include <stddef.h>
#include "modules/audio_coding/codecs/isac/bandwidth_info.h"
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
typedef struct WebRtcISACStruct ISACStruct;

View File

@ -18,7 +18,7 @@
#ifndef MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_SOURCE_CRC_H_
#define MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_SOURCE_CRC_H_
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
/****************************************************************************
* WebRtcIsac_GetCrc(...)

View File

@ -26,7 +26,7 @@
#include "lpc_shape_swb12_tables.h"
#include "lpc_shape_swb16_tables.h"
#include "settings.h"
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
/******************************************************************************
* WebRtcIsac_RemoveLarMean()

View File

@ -21,7 +21,7 @@
#include "settings.h"
#include "structs.h"
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
/******************************************************************************
* WebRtcIsac_RemoveLarMean()

View File

@ -18,7 +18,7 @@
#include "lpc_gain_swb_tables.h"
#include "settings.h"
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
const double WebRtcIsac_kQSizeLpcGain = 0.100000;

View File

@ -20,7 +20,7 @@
#define MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_SOURCE_LPC_GAIN_SWB_TABLES_H_
#include "settings.h"
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
extern const double WebRtcIsac_kQSizeLpcGain;

View File

@ -18,7 +18,7 @@
#include "lpc_shape_swb12_tables.h"
#include "settings.h"
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
/*
* Mean value of LAR

View File

@ -20,7 +20,7 @@
#define MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_SOURCE_LPC_SHAPE_SWB12_TABLES_H_
#include "settings.h"
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
extern const double WebRtcIsac_kMeanLarUb12[UB_LPC_ORDER];

View File

@ -18,7 +18,7 @@
#include "lpc_shape_swb16_tables.h"
#include "settings.h"
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
/*
* Mean value of LAR

View File

@ -20,7 +20,7 @@
#define MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_SOURCE_LPC_SHAPE_SWB16_TABLES_H_
#include "settings.h"
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
extern const double WebRtcIsac_kMeanLarUb16[UB_LPC_ORDER];

View File

@ -13,7 +13,7 @@
#define MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_SOURCE_OS_SPECIFIC_INLINE_H_
#include <math.h>
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
#if defined(WEBRTC_POSIX)
#define WebRtcIsac_lrint lrint

View File

@ -18,7 +18,7 @@
#ifndef MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_SOURCE_PITCH_GAIN_TABLES_H_
#define MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_SOURCE_PITCH_GAIN_TABLES_H_
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
/* header file for coding tables for the pitch filter side-info in the entropy coder */
/********************* Pitch Filter Gain Coefficient Tables ************************/

View File

@ -18,7 +18,7 @@
#ifndef MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_SOURCE_PITCH_LAG_TABLES_H_
#define MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_SOURCE_PITCH_LAG_TABLES_H_
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
/* header file for coding tables for the pitch filter side-info in the entropy coder */
/********************* Pitch Filter Lag Coefficient Tables ************************/

View File

@ -21,7 +21,7 @@
#include "modules/audio_coding/codecs/isac/bandwidth_info.h"
#include "modules/audio_coding/codecs/isac/main/include/isac.h"
#include "modules/audio_coding/codecs/isac/main/source/settings.h"
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
typedef struct Bitstreamstruct {

View File

@ -14,7 +14,7 @@
#include <iterator>
#include <utility>
#include "common_types.h"
#include "common_types.h" // NOLINT(build/include)
#include "modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.h"
#include "modules/audio_coding/audio_network_adaptor/controller_manager.h"
#include "modules/audio_coding/codecs/opus/opus_interface.h"

View File

@ -13,7 +13,7 @@
#include <utility>
#include "common_audio/mocks/mock_smoothing_filter.h"
#include "common_types.h"
#include "common_types.h" // NOLINT(build/include)
#include "modules/audio_coding/audio_network_adaptor/mock/mock_audio_network_adaptor.h"
#include "modules/audio_coding/codecs/opus/audio_encoder_opus.h"
#include "modules/audio_coding/neteq/tools/audio_loop.h"

View File

@ -13,7 +13,7 @@
#include <stddef.h>
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
#ifdef __cplusplus
extern "C" {

View File

@ -12,7 +12,7 @@
#include <algorithm>
#include "common_types.h"
#include "common_types.h" // NOLINT(build/include)
#include "modules/audio_coding/codecs/pcm16b/pcm16b.h"
#include "rtc_base/checks.h"
#include "rtc_base/safe_conversions.h"

View File

@ -10,7 +10,7 @@
#include "pcm16b.h"
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
size_t WebRtcPcm16b_Encode(const int16_t* speech,
size_t len,

View File

@ -16,7 +16,7 @@
#include <stddef.h>
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
#ifdef __cplusplus
extern "C" {

View File

@ -15,7 +15,7 @@
#include <string>
#include "test/gtest.h"
#include "typedefs.h"
#include "typedefs.h" // NOLINT(build/include)
namespace webrtc {