code cleanup: Check all local includes with include-what-you-use

Going through files in src/libespeak-ng/, include-what-you-use removed a
few unnecessary includes and included explanations on why a certain
header should be included. This makes tracking globals and dependencies easier.

Running the codebase through IWYU should be repeated after each major
code restIncludes to standard c library weren't checked to avoid
breaking builds with other platforms.

See https://github.com/include-what-you-use/include-what-you-use
This commit is contained in:
Juho Hiltunen
2020-07-24 07:29:47 +03:00
parent 5e70981884
commit ee944700f8
28 changed files with 140 additions and 166 deletions
+7 -6
View File
@@ -37,12 +37,13 @@
#include "dictionary.h"
#include "readclause.h"
#include "error.h"
#include "speech.h"
#include "phoneme.h"
#include "voice.h"
#include "synthesize.h"
#include "translate.h"
#include "dictionary.h" // for EncodePhonemes, strncpy0, HashDicti...
#include "error.h" // for create_file_error_context
#include "phoneme.h" // for PHONEME_TAB_LIST, phonSWITCH, phone...
#include "readclause.h" // for towlower2
#include "speech.h" // for LookupMnemName, MNEM_TAB, path_home
#include "synthesize.h" // for Write4Bytes
#include "translate.h" // for isspace2, IsDigit09, utf8_in, utf8_out
static FILE *f_log = NULL;