Skip to content

Commit

Permalink
[code style] Align header guards in "sources/c_api" and "sources/midd…
Browse files Browse the repository at this point in the history
…le-layer" folders (#1144)
  • Loading branch information
kiselik authored Jan 29, 2025
1 parent b6dc3c4 commit 48c2c07
Show file tree
Hide file tree
Showing 99 changed files with 294 additions and 298 deletions.
6 changes: 3 additions & 3 deletions sources/c_api/compression_operations/arguments_check.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
* Job API (public C API)
*/

#ifndef QPL_SOURCES_C_API_COMPRESSION_OPERATIONS_ARGUMENTS_CHECK_HPP_
#define QPL_SOURCES_C_API_COMPRESSION_OPERATIONS_ARGUMENTS_CHECK_HPP_
#ifndef QPL_SOURCES_C_API_COMPRESSION_OPERATIONS_ARGUMENTS_CHECK_HPP
#define QPL_SOURCES_C_API_COMPRESSION_OPERATIONS_ARGUMENTS_CHECK_HPP

#include "compression_state_t.h"
#include "job.hpp"
Expand Down Expand Up @@ -206,4 +206,4 @@ inline qpl_status validate_operation<qpl_op_decompress>(const qpl_job* const job

} // namespace qpl::job

#endif //QPL_SOURCES_C_API_COMPRESSION_OPERATIONS_ARGUMENTS_CHECK_HPP_
#endif //QPL_SOURCES_C_API_COMPRESSION_OPERATIONS_ARGUMENTS_CHECK_HPP
6 changes: 3 additions & 3 deletions sources/c_api/compression_operations/bit_writer.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
*
*/

#ifndef OWN_BIT_WRITER_H_
#define OWN_BIT_WRITER_H_
#ifndef QPL_SOURCES_C_API_COMPRESSION_OPERATIONS_BIT_WRITER_H
#define QPL_SOURCES_C_API_COMPRESSION_OPERATIONS_BIT_WRITER_H

#include "stdint.h"

Expand Down Expand Up @@ -50,4 +50,4 @@ uint8_t bit_writer_available(bit_writer_t* const bit_writer_ptr);
}
#endif

#endif // OWN_BIT_WRITER_H_
#endif //QPL_SOURCES_C_API_COMPRESSION_OPERATIONS_BIT_WRITER_H
6 changes: 3 additions & 3 deletions sources/c_api/compression_operations/compression_state_t.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* SPDX-License-Identifier: MIT
******************************************************************************/

#ifndef QPL_OWN_QPL_STRUCTURES_H_
#define QPL_OWN_QPL_STRUCTURES_H_
#ifndef QPL_SOURCES_C_API_COMPRESSION_OPERATIONS_COMPRESSION_STATE_T_H
#define QPL_SOURCES_C_API_COMPRESSION_OPERATIONS_COMPRESSION_STATE_T_H

#ifdef __cplusplus
extern "C" {
Expand All @@ -30,4 +30,4 @@ typedef struct {
}
#endif

#endif //QPL_SOURCES_INCLUDE_OWN_QPL_STRUCTURES_H_
#endif //QPL_SOURCES_C_API_COMPRESSION_OPERATIONS_COMPRESSION_STATE_T_H
6 changes: 3 additions & 3 deletions sources/c_api/compression_operations/compressor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
* Job API (private C++ API)
*/

#ifndef QPL_SOURCES_C_API_COMPRESSION_OPERATIONS_COMPRESSOR_HPP_
#define QPL_SOURCES_C_API_COMPRESSION_OPERATIONS_COMPRESSOR_HPP_
#ifndef QPL_SOURCES_C_API_COMPRESSION_OPERATIONS_COMPRESSOR_HPP
#define QPL_SOURCES_C_API_COMPRESSION_OPERATIONS_COMPRESSOR_HPP

#include "qpl/c_api/job.h"

Expand Down Expand Up @@ -243,4 +243,4 @@ uint32_t perform_decompress(qpl_job* const job_ptr) noexcept;

/** @} */

#endif //QPL_SOURCES_C_API_COMPRESSION_OPERATIONS_COMPRESSOR_HPP_
#endif //QPL_SOURCES_C_API_COMPRESSION_OPERATIONS_COMPRESSOR_HPP
6 changes: 3 additions & 3 deletions sources/c_api/compression_operations/huffman_table.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
* Job API (private C API)
*/

#ifndef QPL_STATISTICS__HPP_
#define QPL_STATISTICS__HPP_
#ifndef QPL_SOURCES_C_API_COMPRESSION_OPERATIONS_HEFFMAN_TABLE_HPP
#define QPL_SOURCES_C_API_COMPRESSION_OPERATIONS_HEFFMAN_TABLE_HPP

#include "qpl/c_api/huffman_table.h"

Expand All @@ -33,4 +33,4 @@ auto use_as_huffman_table(qpl_huffman_table_t table) {
return reinterpret_cast<qpl::ml::compression::huffman_table_t<algorithm>*>(table);
}

#endif //QPL_STATISTICS__HPP_
#endif //QPL_SOURCES_C_API_COMPRESSION_OPERATIONS_HEFFMAN_TABLE_HPP
8 changes: 4 additions & 4 deletions sources/c_api/compression_operations/own_deflate_job.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
* @brief service functions for @link own_deflate_job @endlink internal structure
*/

#ifndef QPL_PROJECT_OWN_DEFLATE_JOB_H
#define QPL_PROJECT_OWN_DEFLATE_JOB_H
#ifndef QPL_SOURCES_C_API_COMPRESSION_OPERATIONS_OWN_DEFLATE_JOB_H
#define QPL_SOURCES_C_API_COMPRESSION_OPERATIONS_OWN_DEFLATE_JOB_H

#include "qpl/c_api/statistics.h"

Expand Down Expand Up @@ -185,7 +185,7 @@ void own_deflate_job_process_literals_no_instructions(own_deflate_job* const job
/**
* @brief Performs statistics gathering for the found match could be actually discovered using "lazy" logic
* so it also has to know what to do with missed literals.
*
*
* This functions does everything pretty much the same as @link own_deflate_job_process_match @endlink,
* but doesn't update instructions logic field
*
Expand Down Expand Up @@ -234,4 +234,4 @@ void own_update_deflate_histogram_high_level(own_deflate_job* deflate_job_ptr);
}
#endif

#endif // QPL_PROJECT_OWN_DEFLATE_JOB_H
#endif //QPL_SOURCES_C_API_COMPRESSION_OPERATIONS_OWN_DEFLATE_JOB_H
6 changes: 3 additions & 3 deletions sources/c_api/filter_operations/analytics_state_t.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
* Own Includes
*/

#ifndef OWN_ANALITICS_H_
#define OWN_ANALITICS_H_
#ifndef QPL_SOURCES_C_API_FILTER_OPERATIONS_ANALITICS_STATE_T_H
#define QPL_SOURCES_C_API_FILTER_OPERATIONS_ANALITICS_STATE_T_H

#ifdef __cplusplus
extern "C" {
Expand Down Expand Up @@ -87,5 +87,5 @@ typedef struct {
}
#endif

#endif // OWN_ANALITICS_H_
#endif //QPL_SOURCES_C_API_FILTER_OPERATIONS_ANALITICS_STATE_T_H
/** @} */
6 changes: 3 additions & 3 deletions sources/c_api/filter_operations/arguments_check.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* SPDX-License-Identifier: MIT
******************************************************************************/

#ifndef QPL_SOURCES_MIDDLE_LAYER_C_WRAPPER_ARGUMENTS_CHECK_HPP_
#define QPL_SOURCES_MIDDLE_LAYER_C_WRAPPER_ARGUMENTS_CHECK_HPP_
#ifndef QPL_SOURCES_C_API_FILTER_OPERATIONS_ARGUMENTS_CHECK_HPP
#define QPL_SOURCES_C_API_FILTER_OPERATIONS_ARGUMENTS_CHECK_HPP

#include "analytics/analytics_defs.hpp"
#include "analytics/input_stream.hpp"
Expand Down Expand Up @@ -282,4 +282,4 @@ static inline auto update_job(qpl_job* job_ptr, const analytic_operation_result_
}
} // namespace qpl::ml::analytics

#endif //QPL_SOURCES_MIDDLE_LAYER_C_WRAPPER_ARGUMENTS_CHECK_HPP_
#endif //QPL_SOURCES_C_API_FILTER_OPERATIONS_ARGUMENTS_CHECK_HPP
6 changes: 3 additions & 3 deletions sources/c_api/filter_operations/filter_operations.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* SPDX-License-Identifier: MIT
******************************************************************************/

#ifndef JOB_PARSER_H
#define JOB_PARSER_H
#ifndef QPL_SOURCES_C_API_FILTER_OPERATIONS_FILTER_OPERATIONS_HPP
#define QPL_SOURCES_C_API_FILTER_OPERATIONS_FILTER_OPERATIONS_HPP

#include "qpl/c_api/job.h"

Expand Down Expand Up @@ -332,4 +332,4 @@ uint32_t perform_select(qpl_job* job_ptr, uint8_t* unpack_buffer_ptr, uint32_t u

/** @} */

#endif // JOB_PARSER_H
#endif //QPL_SOURCES_C_API_FILTER_OPERATIONS_FILTER_OPERATIONS_HPP
6 changes: 3 additions & 3 deletions sources/c_api/job.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
* Job API (public C API)
*/

#ifndef QPL_UTIL_JOB_API_SERVICE_H_
#define QPL_UTIL_JOB_API_SERVICE_H_
#ifndef QPL_SOURCES_C_API_JOB_H
#define QPL_SOURCES_C_API_JOB_H

#include "qpl/c_api/job.h"
#include "qpl/c_api/status.h"
Expand Down Expand Up @@ -328,4 +328,4 @@ template <class result_t>
void inline update(qpl_job* job_ptr, result_t& result) noexcept;
} // namespace qpl::job

#endif //QPL_UTIL_JOB_API_SERVICE_H_
#endif //QPL_SOURCES_C_API_JOB_H
6 changes: 3 additions & 3 deletions sources/c_api/legacy_hw_path/async_hw_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* SPDX-License-Identifier: MIT
******************************************************************************/

#ifndef HW_PATH_ML_HW_API_H_
#define HW_PATH_ML_HW_API_H_
#ifndef QPL_SOURCES_C_API_LEGACY_HW_PATH_ASYNK_HW_API_H
#define QPL_SOURCES_C_API_LEGACY_HW_PATH_ASYNK_HW_API_H

// middle-layer
#include "accelerator/hw_accelerator_api.h"
Expand All @@ -24,4 +24,4 @@ QPL_API(uint32_t, hw_get_job_size, ());
}
#endif

#endif //HW_PATH_ML_HW_API_H_
#endif //QPL_SOURCES_C_API_LEGACY_HW_PATH_ASYNK_HW_API_H
6 changes: 3 additions & 3 deletions sources/c_api/legacy_hw_path/hardware_state.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
* @brief Types and Macro Definitions for Intel(R) Query Processing Library (Intel(R) QPL) Hardware Path.
*/

#ifndef HW_PATH_ML_HW_DEFINITIONS_H_
#define HW_PATH_ML_HW_DEFINITIONS_H_
#ifndef QPL_SOURCES_C_API_LEGACY_HW_PATH_HARDWARE_STATE_H
#define QPL_SOURCES_C_API_LEGACY_HW_PATH_HARDWARE_STATE_H

#include "qpl/c_api/defs.h"
#include "qpl/c_api/status.h"
Expand Down Expand Up @@ -91,4 +91,4 @@ typedef struct {
}
#endif

#endif // HW_PATH_ML_HW_DEFINITIONS_H_
#endif //QPL_SOURCES_C_API_LEGACY_HW_PATH_HARDWARE_STATE_H
6 changes: 3 additions & 3 deletions sources/c_api/legacy_hw_path/own_ml_buffer_api.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* SPDX-License-Identifier: MIT
******************************************************************************/

#ifndef QPL_SOURCES_HW_PATH_SOURCES_OWN_ML_QPL_BUFFER_API_H_
#define QPL_SOURCES_HW_PATH_SOURCES_OWN_ML_QPL_BUFFER_API_H_
#ifndef QPL_SOURCES_C_API_LEGACY_HW_PATH_OWN_ML_BUFFER_API_HPP
#define QPL_SOURCES_C_API_LEGACY_HW_PATH_OWN_ML_BUFFER_API_HPP

#include "hardware_state.h"

Expand Down Expand Up @@ -47,4 +47,4 @@ static inline bool own_qpl_buffer_touch(const qpl_buffer* const buffer_ptr, cons
}
#endif

#endif //QPL_SOURCES_HW_PATH_SOURCES_OWN_ML_QPL_BUFFER_API_H_
#endif //QPL_SOURCES_C_API_LEGACY_HW_PATH_OWN_ML_BUFFER_API_HPP
6 changes: 3 additions & 3 deletions sources/c_api/legacy_hw_path/own_ml_submit_operation_api.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* SPDX-License-Identifier: MIT
******************************************************************************/

#ifndef HW_PATH_ML_OWN_SUBMIT_OPERATION_API_H_
#define HW_PATH_ML_OWN_SUBMIT_OPERATION_API_H_
#ifndef QPL_SOURCES_C_API_LEGACY_HW_PATH_OWN_ML_SUBMIT_OPERATION_API_HPP
#define QPL_SOURCES_C_API_LEGACY_HW_PATH_OWN_ML_SUBMIT_OPERATION_API_HPP

#include "qpl/c_api/job.h"

Expand Down Expand Up @@ -47,4 +47,4 @@ qpl_status hw_descriptor_decompress_init_inflate_body(hw_descriptor* const descr
}
#endif

#endif //HW_PATH_ML_OWN_SUBMIT_OPERATION_API_H_
#endif //QPL_SOURCES_C_API_LEGACY_HW_PATH_OWN_ML_SUBMIT_OPERATION_API_HPP
6 changes: 3 additions & 3 deletions sources/c_api/other_operations/arguments_check.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
* Job API (public C API)
*/

#ifndef QPL_SOURCES_C_API_OTHER_OPERATIONS_ARGUMENTS_CHECK_HPP_
#define QPL_SOURCES_C_API_OTHER_OPERATIONS_ARGUMENTS_CHECK_HPP_
#ifndef QPL_SOURCES_C_API_OTHER_OPERATIONS_ARGUMENTS_CHECK_HPP
#define QPL_SOURCES_C_API_OTHER_OPERATIONS_ARGUMENTS_CHECK_HPP

#include "job.hpp"
#include "own_checkers.h"
Expand All @@ -30,4 +30,4 @@ inline qpl_status validate_operation<qpl_op_crc64>(const qpl_job* const job_ptr)

} // namespace qpl::job

#endif //QPL_SOURCES_C_API_OTHER_OPERATIONS_ARGUMENTS_CHECK_HPP_
#endif //QPL_SOURCES_C_API_OTHER_OPERATIONS_ARGUMENTS_CHECK_HPP
6 changes: 3 additions & 3 deletions sources/c_api/other_operations/crc64.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
* Job API (private C++ API)
*/

#ifndef QPL_SOURCES_C_API_OTHER_OPERATIONS_CRC64_HPP_
#define QPL_SOURCES_C_API_OTHER_OPERATIONS_CRC64_HPP_
#ifndef QPL_SOURCES_C_API_OTHER_OPERATIONS_CRC64_HPP
#define QPL_SOURCES_C_API_OTHER_OPERATIONS_CRC64_HPP

#include "qpl/c_api/defs.h"
#include "qpl/c_api/job.h"
Expand Down Expand Up @@ -43,4 +43,4 @@
*/
uint32_t perform_crc64(qpl_job* const job_ptr) noexcept;

#endif //QPL_SOURCES_C_API_OTHER_OPERATIONS_CRC64_HPP_
#endif //QPL_SOURCES_C_API_OTHER_OPERATIONS_CRC64_HPP
6 changes: 3 additions & 3 deletions sources/c_api/own_checkers.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* SPDX-License-Identifier: MIT
******************************************************************************/

#ifndef QPL_SOURCES_INCLUDE_OWN_QPL_CHECKERS_H_
#define QPL_SOURCES_INCLUDE_OWN_QPL_CHECKERS_H_
#ifndef QPL_SOURCES_C_API_OWN_CHECKERS_H
#define QPL_SOURCES_C_API_OWN_CHECKERS_H

#include "qpl/c_api/status.h"

Expand Down Expand Up @@ -60,4 +60,4 @@ extern "C" {
}
#endif

#endif //QPL_SOURCES_INCLUDE_OWN_QPL_CHECKERS_H_
#endif //QPL_SOURCES_C_API_OWN_CHECKERS_H
6 changes: 3 additions & 3 deletions sources/c_api/own_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* SPDX-License-Identifier: MIT
******************************************************************************/

#ifndef OWN_DEFS_H__
#define OWN_DEFS_H__
#ifndef QPL_SOURCES_C_API_OWN_DEFS_H
#define QPL_SOURCES_C_API_OWN_DEFS_H

#ifdef __cplusplus
extern "C" {
Expand Down Expand Up @@ -65,4 +65,4 @@ QPL_INLINE int64_t QPL_INT_PTR(const void* ptr) {
}
#endif

#endif // OWN_DEFS_H__
#endif //QPL_SOURCES_C_API_OWN_DEFS_H
6 changes: 3 additions & 3 deletions sources/middle-layer/accelerator/hw_accelerator_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
* @{
*/

#ifndef HW_PATH_ACCELERATOR_API_H_
#define HW_PATH_ACCELERATOR_API_H_
#ifndef QPL_SOURCES_MIDDLE_LAYER_ACCELERATOR_HW_ACCELERATOR_API_H
#define QPL_SOURCES_MIDDLE_LAYER_ACCELERATOR_HW_ACCELERATOR_API_H

#include "hw_definitions.h"
#include "hw_descriptors_api.h"
Expand Down Expand Up @@ -67,6 +67,6 @@ hw_accelerator_status hw_enqueue_descriptor(void* desc_ptr, int32_t device_numa_
}
#endif

#endif // HW_PATH_ACCELERATOR_API_H_
#endif //QPL_SOURCES_MIDDLE_LAYER_ACCELERATOR_HW_ACCELERATOR_API_H

/** @} */
6 changes: 3 additions & 3 deletions sources/middle-layer/analytics/analytics_defs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* SPDX-License-Identifier: MIT
******************************************************************************/

#ifndef ANALYTIC_DEFS_HPP
#define ANALYTIC_DEFS_HPP
#ifndef QPL_SOURCES_MIDDLE_LAYER_ANALYTICS_ANALYTICS_DEFS_HPP
#define QPL_SOURCES_MIDDLE_LAYER_ANALYTICS_ANALYTICS_DEFS_HPP

#include <climits>
#include <cstdint>
Expand Down Expand Up @@ -45,4 +45,4 @@ void inline aggregates_empty_callback(const uint8_t* UNREFERENCED_PARAMETER(src_

} // namespace qpl::ml::analytics

#endif // ANALYTIC_DEFS_HPP
#endif //QPL_SOURCES_MIDDLE_LAYER_ANALYTICS_ANALYTICS_DEFS_HPP
6 changes: 3 additions & 3 deletions sources/middle-layer/analytics/descriptor_builder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* SPDX-License-Identifier: MIT
******************************************************************************/

#ifndef QPL_SOURCES_MIDDLE_LAYER_ANALYTICS_HW_ANALYTIC_DEFINITIONS_H_
#define QPL_SOURCES_MIDDLE_LAYER_ANALYTICS_HW_ANALYTIC_DEFINITIONS_H_
#ifndef QPL_SOURCES_MIDDLE_LAYER_ANALYTICS_DESCRIPTOR_BUILDER_HPP
#define QPL_SOURCES_MIDDLE_LAYER_ANALYTICS_DESCRIPTOR_BUILDER_HPP

#include "qpl/c_api/defs.h"

Expand Down Expand Up @@ -141,4 +141,4 @@ inline auto descriptor_builder<qpl_op_select>::operation(const input_stream_t& m

} // namespace qpl::ml::analytics

#endif //QPL_SOURCES_MIDDLE_LAYER_ANALYTICS_HW_ANALYTIC_DEFINITIONS_H_
#endif //QPL_SOURCES_MIDDLE_LAYER_ANALYTICS_DESCRIPTOR_BUILDER_HPP
6 changes: 3 additions & 3 deletions sources/middle-layer/analytics/expand.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* SPDX-License-Identifier: MIT
******************************************************************************/

#ifndef QPL_SOURCES_MIDDLE_LAYER_ANALYTICS_EXPAND_HPP_
#define QPL_SOURCES_MIDDLE_LAYER_ANALYTICS_EXPAND_HPP_
#ifndef QPL_SOURCES_MIDDLE_LAYER_ANALYTICS_EXPAND_HPP
#define QPL_SOURCES_MIDDLE_LAYER_ANALYTICS_EXPAND_HPP

#include "input_stream.hpp"
#include "output_stream.hpp"
Expand All @@ -20,4 +20,4 @@ auto call_expand(input_stream_t& input_stream, input_stream_t& mask_stream,

} // namespace qpl::ml::analytics

#endif //QPL_SOURCES_MIDDLE_LAYER_ANALYTICS_EXPAND_HPP_
#endif //QPL_SOURCES_MIDDLE_LAYER_ANALYTICS_EXPAND_HPP
Loading

0 comments on commit 48c2c07

Please sign in to comment.