mirror of
https://github.com/ETLCPP/etl.git
synced 2026-11-09 14:49:53 +08:00
Make include paths to private files relative (#946)
* Render include paths relative By removing `etl/` from include paths (in `#include` statements), the path to the directory `include/` doesn't need to be provided to the preprocessor as an include path if the files in `include/etl/` are included by other means. This has no disadvantages. Actually the form `#include "..."` is intended to be used for relative paths in the first place. This is relevant if one wants to include the source files from `include/etl` only indirectly. For example we use special generated header files which wrap the include statement of the vanilla header files with diagnostic commands. Those commands allow to disable diagnostic for ETL's files and re-enable them after the file inclusion. Wrapper files are generated for every non-private header file. We provide the directory with the wrapper files as include path to the preprocessor instead of the normal `include/` directory. Thus include statements like `#include "etl/private/..."` are invalid in that case. * Remove "etl/" from include paths in all files in `include/`. 33 findings in 4 files of 375. See 936961949172bca5ba1418054a055e05ecb6d1d4 for explanation.
This commit is contained in:
parent
16cd116055
commit
527359f535
@ -26,13 +26,13 @@ SOFTWARE.
|
||||
#ifndef ETL_BASE64_INCLUDED
|
||||
#define ETL_BASE64_INCLUDED
|
||||
|
||||
#include "etl/platform.h"
|
||||
#include "etl/static_assert.h"
|
||||
#include "etl/exception.h"
|
||||
#include "etl/error_handler.h"
|
||||
#include "etl/type_traits.h"
|
||||
#include "etl/enum_type.h"
|
||||
#include "etl/integral_limits.h"
|
||||
#include "platform.h"
|
||||
#include "static_assert.h"
|
||||
#include "exception.h"
|
||||
#include "error_handler.h"
|
||||
#include "type_traits.h"
|
||||
#include "enum_type.h"
|
||||
#include "integral_limits.h"
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
@ -28,19 +28,19 @@ SOFTWARE.
|
||||
#ifndef ETL_BASE64_DECODER_INCLUDED
|
||||
#define ETL_BASE64_DECODER_INCLUDED
|
||||
|
||||
#include "etl/platform.h"
|
||||
#include "etl/static_assert.h"
|
||||
#include "etl/error_handler.h"
|
||||
#include "etl/type_traits.h"
|
||||
#include "etl/binary.h"
|
||||
#include "etl/algorithm.h"
|
||||
#include "etl/integral_limits.h"
|
||||
#include "etl/iterator.h"
|
||||
#include "etl/enum_type.h"
|
||||
#include "etl/delegate.h"
|
||||
#include "etl/span.h"
|
||||
#include "platform.h"
|
||||
#include "static_assert.h"
|
||||
#include "error_handler.h"
|
||||
#include "type_traits.h"
|
||||
#include "binary.h"
|
||||
#include "algorithm.h"
|
||||
#include "integral_limits.h"
|
||||
#include "iterator.h"
|
||||
#include "enum_type.h"
|
||||
#include "delegate.h"
|
||||
#include "span.h"
|
||||
|
||||
#include "etl/base64.h"
|
||||
#include "base64.h"
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
@ -28,19 +28,19 @@ SOFTWARE.
|
||||
#ifndef ETL_BASE64_ENCODER_INCLUDED
|
||||
#define ETL_BASE64_ENCODER_INCLUDED
|
||||
|
||||
#include "etl/platform.h"
|
||||
#include "etl/static_assert.h"
|
||||
#include "etl/error_handler.h"
|
||||
#include "etl/type_traits.h"
|
||||
#include "etl/binary.h"
|
||||
#include "etl/algorithm.h"
|
||||
#include "etl/integral_limits.h"
|
||||
#include "etl/iterator.h"
|
||||
#include "etl/enum_type.h"
|
||||
#include "etl/delegate.h"
|
||||
#include "etl/span.h"
|
||||
#include "platform.h"
|
||||
#include "static_assert.h"
|
||||
#include "error_handler.h"
|
||||
#include "type_traits.h"
|
||||
#include "binary.h"
|
||||
#include "algorithm.h"
|
||||
#include "integral_limits.h"
|
||||
#include "iterator.h"
|
||||
#include "enum_type.h"
|
||||
#include "delegate.h"
|
||||
#include "span.h"
|
||||
|
||||
#include "etl/base64.h"
|
||||
#include "base64.h"
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
@ -489,9 +489,9 @@ namespace etl
|
||||
|
||||
reference operator *() const
|
||||
{
|
||||
#include "etl/private/diagnostic_null_dereference_push.h"
|
||||
#include "private/diagnostic_null_dereference_push.h"
|
||||
return *static_cast<pointer>(p_value);
|
||||
#include "etl/private/diagnostic_pop.h"
|
||||
#include "private/diagnostic_pop.h"
|
||||
}
|
||||
|
||||
pointer operator &() const
|
||||
|
||||
@ -528,9 +528,9 @@ namespace etl
|
||||
|
||||
reference operator *() const
|
||||
{
|
||||
#include "etl/private/diagnostic_null_dereference_push.h"
|
||||
#include "private/diagnostic_null_dereference_push.h"
|
||||
return *static_cast<pointer>(p_value);
|
||||
#include "etl/private/diagnostic_pop.h"
|
||||
#include "private/diagnostic_pop.h"
|
||||
}
|
||||
|
||||
pointer operator &() const
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user