[config-header] simplify config header file includes (#2255)

This commit simplifies the config header files includes in
OpenThread core and non-public source files. With this change the
"openthread-core-config.h" becomes the main config header file. This
header file includes all other config ones:
1) The `configure` generated `<openthread/config.h>;
2) The project specific one by `OPENTHREAD_PROJECT_CORE_CONFIG_FILE`;
3) The "openthread-core-default-config.h" defining default settings.

With the change in this commit, all header files include "openthread-
core-config.h" as the first `#include`, and in `.cpp` files, the first
`#include` continues to be the unit's corresponding header file. The
new model ensures that the configuration settings are visible and
consistent in all the source files. This commit also updates the
style guide document accordingly.
This commit is contained in:
Abtin Keshavarzian
2017-10-17 09:46:34 -07:00
committed by Jonathan Hui
parent 23f465c681
commit 2ea56446a4
226 changed files with 270 additions and 252 deletions
+1 -1
View File
@@ -33,7 +33,7 @@
#define WPP_NAME "instance_api.tmh"
#include <openthread/config.h>
#include "openthread-core-config.h"
#include <openthread/instance.h>
#include <openthread/platform/misc.h>