From bc49aa5530c97ca7cc10f7da4c27e29cb6ee16c9 Mon Sep 17 00:00:00 2001 From: Alexander Taepper Date: Thu, 31 Aug 2023 10:12:23 +0200 Subject: [PATCH] feat: use 'pragma once' as include guards instead of 'ifndef...' --- include/silo/common/aa_symbols.h | 5 +---- include/silo/common/bidirectional_map.h | 5 +---- include/silo/common/block_timer.h | 5 +---- include/silo/common/data_version.h | 5 +---- include/silo/common/date.h | 5 +---- include/silo/common/date_format_exception.h | 5 +---- include/silo/common/fasta_format_exception.h | 5 +---- include/silo/common/fasta_reader.h | 5 +---- include/silo/common/format_number.h | 5 +---- include/silo/common/input_stream_wrapper.h | 5 +---- include/silo/common/log.h | 5 +---- include/silo/common/nucleotide_symbols.h | 5 +---- include/silo/common/pango_lineage.h | 5 +---- include/silo/common/string.h | 5 +---- include/silo/common/string_utils.h | 5 +---- include/silo/common/symbol_map.h | 5 +---- include/silo/common/template_utils.h | 5 +---- include/silo/common/types.h | 5 +---- include/silo/common/zstd_compressor.h | 5 +---- include/silo/common/zstd_decompressor.h | 5 +---- include/silo/common/zstdfasta_reader.h | 5 +---- include/silo/common/zstdfasta_writer.h | 5 +---- include/silo/config/config_exception.h | 5 +---- include/silo/config/config_repository.h | 5 +---- include/silo/config/database_config.h | 5 +---- include/silo/database.h | 5 +---- include/silo/database_info.h | 5 +---- include/silo/persistence/exception.h | 5 +---- include/silo/prepare_dataset.h | 5 +---- include/silo/preprocessing/metadata.h | 5 +---- include/silo/preprocessing/metadata_validator.h | 5 +---- include/silo/preprocessing/pango_lineage_count.h | 4 +--- include/silo/preprocessing/partition.h | 5 +---- include/silo/preprocessing/preprocessing_config.h | 5 +---- include/silo/preprocessing/preprocessing_config_reader.h | 5 +---- include/silo/preprocessing/preprocessing_exception.h | 5 +---- include/silo/query_engine/actions/aa_mutations.h | 5 +---- include/silo/query_engine/actions/action.h | 5 +---- include/silo/query_engine/actions/aggregated.h | 5 +---- include/silo/query_engine/actions/details.h | 5 +---- include/silo/query_engine/actions/fasta.h | 5 +---- include/silo/query_engine/actions/fasta_aligned.h | 5 +---- include/silo/query_engine/actions/insertions.h | 5 +---- include/silo/query_engine/actions/nuc_mutations.h | 5 +---- include/silo/query_engine/actions/tuple.h | 5 +---- .../silo/query_engine/filter_expressions/aa_symbol_equals.h | 5 +---- include/silo/query_engine/filter_expressions/and.h | 5 +---- include/silo/query_engine/filter_expressions/date_between.h | 5 +---- include/silo/query_engine/filter_expressions/exact.h | 5 +---- include/silo/query_engine/filter_expressions/expression.h | 5 +---- include/silo/query_engine/filter_expressions/false.h | 5 +---- .../silo/query_engine/filter_expressions/float_between.h | 5 +---- include/silo/query_engine/filter_expressions/float_equals.h | 5 +---- .../silo/query_engine/filter_expressions/has_aa_mutation.h | 5 +---- include/silo/query_engine/filter_expressions/has_mutation.h | 5 +---- .../query_engine/filter_expressions/insertion_contains.h | 5 +---- include/silo/query_engine/filter_expressions/int_between.h | 5 +---- include/silo/query_engine/filter_expressions/int_equals.h | 5 +---- include/silo/query_engine/filter_expressions/maybe.h | 5 +---- include/silo/query_engine/filter_expressions/negation.h | 5 +---- include/silo/query_engine/filter_expressions/nof.h | 5 +---- .../filter_expressions/nucleotide_symbol_equals.h | 5 +---- include/silo/query_engine/filter_expressions/or.h | 5 +---- .../query_engine/filter_expressions/pango_lineage_filter.h | 5 +---- .../silo/query_engine/filter_expressions/string_equals.h | 5 +---- include/silo/query_engine/filter_expressions/true.h | 5 +---- include/silo/query_engine/operator_result.h | 5 +---- include/silo/query_engine/operators/bitmap_producer.h | 5 +---- include/silo/query_engine/operators/bitmap_selection.h | 5 +---- include/silo/query_engine/operators/complement.h | 5 +---- include/silo/query_engine/operators/empty.h | 5 +---- include/silo/query_engine/operators/full.h | 5 +---- include/silo/query_engine/operators/index_scan.h | 5 +---- include/silo/query_engine/operators/intersection.h | 5 +---- include/silo/query_engine/operators/operator.h | 5 +---- include/silo/query_engine/operators/range_selection.h | 5 +---- include/silo/query_engine/operators/selection.h | 5 +---- include/silo/query_engine/operators/threshold.h | 5 +---- include/silo/query_engine/operators/union.h | 5 +---- include/silo/query_engine/query.h | 5 +---- include/silo/query_engine/query_compilation_exception.h | 5 +---- include/silo/query_engine/query_engine.h | 5 +---- include/silo/query_engine/query_parse_exception.h | 5 +---- include/silo/query_engine/query_result.h | 5 +---- include/silo/roaring/roaring_serialize.h | 5 +---- include/silo/storage/column/date_column.h | 5 +---- include/silo/storage/column/float_column.h | 5 +---- include/silo/storage/column/indexed_string_column.h | 5 +---- include/silo/storage/column/insertion_column.h | 5 +---- include/silo/storage/column/insertion_index.h | 5 +---- include/silo/storage/column/int_column.h | 5 +---- include/silo/storage/column/pango_lineage_column.h | 5 +---- include/silo/storage/column/string_column.h | 5 +---- include/silo/storage/column_group.h | 5 +---- include/silo/storage/database_partition.h | 5 +---- include/silo/storage/pango_lineage_alias.h | 5 +---- include/silo/storage/reference_genomes.h | 5 +---- include/silo/storage/sequence_store.h | 6 +----- include/silo/storage/serialize_optional.h | 5 +---- include/silo_api/database_directory_watcher.h | 5 +---- include/silo_api/database_mutex.h | 5 +---- include/silo_api/error_request_handler.h | 5 +---- include/silo_api/info_handler.h | 5 +---- include/silo_api/logging.h | 5 +---- include/silo_api/logging_request_handler.h | 5 +---- include/silo_api/manual_poco_mocks.test.h | 5 +---- include/silo_api/not_found_handler.h | 5 +---- include/silo_api/query_handler.h | 5 +---- include/silo_api/request_handler_factory.h | 5 +---- include/silo_api/rest_resource.h | 5 +---- include/silo_api/runtime_config.h | 5 +---- include/silo_api/variant_json_serializer.h | 4 +--- 112 files changed, 112 insertions(+), 447 deletions(-) diff --git a/include/silo/common/aa_symbols.h b/include/silo/common/aa_symbols.h index 12ca60351..9a9352bcf 100644 --- a/include/silo/common/aa_symbols.h +++ b/include/silo/common/aa_symbols.h @@ -1,5 +1,4 @@ -#ifndef SILO_SymbolS_H -#define SILO_SymbolS_H +#pragma once #include #include @@ -64,5 +63,3 @@ class AminoAcid { }; } // namespace silo // namespace silo - -#endif // SILO_SymbolS_H diff --git a/include/silo/common/bidirectional_map.h b/include/silo/common/bidirectional_map.h index 46fceb6a8..92af4f3ef 100644 --- a/include/silo/common/bidirectional_map.h +++ b/include/silo/common/bidirectional_map.h @@ -1,5 +1,4 @@ -#ifndef SILO_BIDIRECTIONAL_MAP_H -#define SILO_BIDIRECTIONAL_MAP_H +#pragma once #include #include @@ -45,5 +44,3 @@ class BidirectionalMap { }; } // namespace silo::common - -#endif // SILO_BIDIRECTIONAL_MAP_H diff --git a/include/silo/common/block_timer.h b/include/silo/common/block_timer.h index 26604e286..83fe88651 100644 --- a/include/silo/common/block_timer.h +++ b/include/silo/common/block_timer.h @@ -1,5 +1,4 @@ -#ifndef SILO_BLOCK_TIMER_H -#define SILO_BLOCK_TIMER_H +#pragma once #include @@ -22,5 +21,3 @@ struct [[nodiscard]] BlockTimer { output_t untilNow() { return std::chrono::duration_cast(Clock::now() - start).count(); } }; - -#endif // SILO_BLOCK_TIMER_H diff --git a/include/silo/common/data_version.h b/include/silo/common/data_version.h index d93d75989..c545199b5 100644 --- a/include/silo/common/data_version.h +++ b/include/silo/common/data_version.h @@ -1,5 +1,4 @@ -#ifndef SILO_INCLUDE_SILO_COMMON_DATAVERSION_H_ -#define SILO_INCLUDE_SILO_COMMON_DATAVERSION_H_ +#pragma once #include #include @@ -30,5 +29,3 @@ class DataVersion { }; } // namespace silo - -#endif // SILO_INCLUDE_SILO_COMMON_DATAVERSION_H_ diff --git a/include/silo/common/date.h b/include/silo/common/date.h index 20348a7c5..131805f5e 100644 --- a/include/silo/common/date.h +++ b/include/silo/common/date.h @@ -1,5 +1,4 @@ -#ifndef SILO_DATE_H -#define SILO_DATE_H +#pragma once #include #include @@ -14,5 +13,3 @@ silo::common::Date stringToDate(const std::string& value); std::optional dateToString(silo::common::Date date); } // namespace silo::common - -#endif // SILO_DATE_H diff --git a/include/silo/common/date_format_exception.h b/include/silo/common/date_format_exception.h index 7ec219667..64c588fe7 100644 --- a/include/silo/common/date_format_exception.h +++ b/include/silo/common/date_format_exception.h @@ -1,5 +1,4 @@ -#ifndef SILO_DATE_FORMAT_EXCEPTION_H -#define SILO_DATE_FORMAT_EXCEPTION_H +#pragma once #include #include @@ -12,5 +11,3 @@ class DateFormatException : public std::runtime_error { }; } // namespace silo::common - -#endif // SILO_DATE_FORMAT_EXCEPTION_H diff --git a/include/silo/common/fasta_format_exception.h b/include/silo/common/fasta_format_exception.h index 9aeb96b6e..c7b7afb80 100644 --- a/include/silo/common/fasta_format_exception.h +++ b/include/silo/common/fasta_format_exception.h @@ -1,5 +1,4 @@ -#ifndef SILO_FASTA_FORMAT_EXCEPTION_H -#define SILO_FASTA_FORMAT_EXCEPTION_H +#pragma once #include #include @@ -12,5 +11,3 @@ class FastaFormatException : public std::runtime_error { }; } // namespace silo - -#endif // SILO_FASTA_FORMAT_EXCEPTION_H diff --git a/include/silo/common/fasta_reader.h b/include/silo/common/fasta_reader.h index c31f9f5b6..a0d194b28 100644 --- a/include/silo/common/fasta_reader.h +++ b/include/silo/common/fasta_reader.h @@ -1,5 +1,4 @@ -#ifndef SILO_FASTA_READER_H -#define SILO_FASTA_READER_H +#pragma once #include #include @@ -25,5 +24,3 @@ class FastaReader { void reset(); }; } // namespace silo - -#endif // SILO_FASTA_READER_H diff --git a/include/silo/common/format_number.h b/include/silo/common/format_number.h index e7bba7fbb..58adfba4d 100644 --- a/include/silo/common/format_number.h +++ b/include/silo/common/format_number.h @@ -1,5 +1,4 @@ -#ifndef SILO_FORMAT_NUMBER_H -#define SILO_FORMAT_NUMBER_H +#pragma once #include #include @@ -9,5 +8,3 @@ namespace silo { std::string formatNumber(uint64_t number); } - -#endif // SILO_FORMAT_NUMBER_H diff --git a/include/silo/common/input_stream_wrapper.h b/include/silo/common/input_stream_wrapper.h index 7ecee7694..7ef14e80f 100644 --- a/include/silo/common/input_stream_wrapper.h +++ b/include/silo/common/input_stream_wrapper.h @@ -1,5 +1,4 @@ -#ifndef SILO_ISTREAM_WRAPPER_H -#define SILO_ISTREAM_WRAPPER_H +#pragma once #include #include @@ -20,5 +19,3 @@ struct InputStreamWrapper { [[nodiscard]] std::istream& getInputStream() const; }; } // namespace silo - -#endif // SILO_ISTREAM_WRAPPER_H diff --git a/include/silo/common/log.h b/include/silo/common/log.h index 7bdcd9db9..e3109185f 100644 --- a/include/silo/common/log.h +++ b/include/silo/common/log.h @@ -1,5 +1,4 @@ -#ifndef SILO_LOG_H -#define SILO_LOG_H +#pragma once #include @@ -10,5 +9,3 @@ static const std::string PERFORMANCE_LOGGER_NAME = "performance_logger"; } #define LOG_PERFORMANCE(...) SPDLOG_LOGGER_INFO(spdlog::get(PERFORMANCE_LOGGER_NAME), __VA_ARGS__) - -#endif // SILO_LOG_H diff --git a/include/silo/common/nucleotide_symbols.h b/include/silo/common/nucleotide_symbols.h index 7b7b87c7c..f2d341718 100644 --- a/include/silo/common/nucleotide_symbols.h +++ b/include/silo/common/nucleotide_symbols.h @@ -1,5 +1,4 @@ -#ifndef SILO_NUCLEOTIDE_SYMBOLS_H -#define SILO_NUCLEOTIDE_SYMBOLS_H +#pragma once #include #include @@ -71,5 +70,3 @@ class Nucleotide { }; } // namespace silo - -#endif // SILO_NUCLEOTIDE_SYMBOLS_H diff --git a/include/silo/common/pango_lineage.h b/include/silo/common/pango_lineage.h index a350f6e3b..61493d3c8 100644 --- a/include/silo/common/pango_lineage.h +++ b/include/silo/common/pango_lineage.h @@ -1,5 +1,4 @@ -#ifndef SILO_PANGO_LINEAGE_H -#define SILO_PANGO_LINEAGE_H +#pragma once #include #include @@ -38,5 +37,3 @@ template <> struct std::hash { std::size_t operator()(const silo::common::UnaliasedPangoLineage& pango_lineage) const; }; - -#endif // SILO_PANGO_LINEAGE_H diff --git a/include/silo/common/string.h b/include/silo/common/string.h index 32d5cc828..512929894 100644 --- a/include/silo/common/string.h +++ b/include/silo/common/string.h @@ -1,5 +1,4 @@ -#ifndef SILO_STRING_H -#define SILO_STRING_H +#pragma once #include #include @@ -69,5 +68,3 @@ template struct std::hash> { std::size_t operator()(const silo::common::String& str) const; }; - -#endif // SILO_STRING_H diff --git a/include/silo/common/string_utils.h b/include/silo/common/string_utils.h index 0cca97c48..f46f9f2a5 100644 --- a/include/silo/common/string_utils.h +++ b/include/silo/common/string_utils.h @@ -1,5 +1,4 @@ -#ifndef SILO_STRING_UTILS_H -#define SILO_STRING_UTILS_H +#pragma once #include #include @@ -10,5 +9,3 @@ namespace silo { std::vector splitBy(const std::string& value, const std::string_view delimiter); } // namespace silo - -#endif // SILO_STRING_UTILS_H diff --git a/include/silo/common/symbol_map.h b/include/silo/common/symbol_map.h index 78b75d703..7e71fbc5b 100644 --- a/include/silo/common/symbol_map.h +++ b/include/silo/common/symbol_map.h @@ -1,5 +1,4 @@ -#ifndef SILO_SYMBOL_MAP_H -#define SILO_SYMBOL_MAP_H +#pragma once #include @@ -35,5 +34,3 @@ class SymbolMap { }; } // namespace silo - -#endif // SILO_SYMBOL_MAP_H diff --git a/include/silo/common/template_utils.h b/include/silo/common/template_utils.h index 665a12893..116c12f96 100644 --- a/include/silo/common/template_utils.h +++ b/include/silo/common/template_utils.h @@ -1,5 +1,4 @@ -#ifndef SILO_TEMPLATE_UTILS_H -#define SILO_TEMPLATE_UTILS_H +#pragma once #include @@ -22,5 +21,3 @@ struct NestedContainer<1, Container, ContainerArg, Base> { }; } // namespace silo - -#endif // SILO_TEMPLATE_UTILS_H diff --git a/include/silo/common/types.h b/include/silo/common/types.h index eaa486c1e..d3354a9d7 100644 --- a/include/silo/common/types.h +++ b/include/silo/common/types.h @@ -1,5 +1,4 @@ -#ifndef SILO_TYPES_H -#define SILO_TYPES_H +#pragma once #include #include @@ -8,5 +7,3 @@ namespace silo { // Referencing to silo internal pointers typedef uint32_t Idx; } // namespace silo - -#endif // SILO_TYPES_H diff --git a/include/silo/common/zstd_compressor.h b/include/silo/common/zstd_compressor.h index fc8bf6539..c69e28117 100644 --- a/include/silo/common/zstd_compressor.h +++ b/include/silo/common/zstd_compressor.h @@ -1,5 +1,4 @@ -#ifndef SILO_ZSTD_COMPRESSOR_H -#define SILO_ZSTD_COMPRESSOR_H +#pragma once #include #include @@ -28,5 +27,3 @@ class ZstdCompressor { }; } // namespace silo - -#endif // SILO_ZSTD_COMPRESSOR_H diff --git a/include/silo/common/zstd_decompressor.h b/include/silo/common/zstd_decompressor.h index 51654a3c4..dcc2e8b76 100644 --- a/include/silo/common/zstd_decompressor.h +++ b/include/silo/common/zstd_decompressor.h @@ -1,5 +1,4 @@ -#ifndef SILO_ZSTD_DECOMPRESSOR_H -#define SILO_ZSTD_DECOMPRESSOR_H +#pragma once #include @@ -24,5 +23,3 @@ class ZstdDecompressor { }; } // namespace silo - -#endif // SILO_ZSTD_DECOMPRESSOR_H diff --git a/include/silo/common/zstdfasta_reader.h b/include/silo/common/zstdfasta_reader.h index c02517427..0e9a66ab9 100644 --- a/include/silo/common/zstdfasta_reader.h +++ b/include/silo/common/zstdfasta_reader.h @@ -1,5 +1,4 @@ -#ifndef SILO_ZSTDFASTA_READER_H -#define SILO_ZSTDFASTA_READER_H +#pragma once #include #include @@ -34,5 +33,3 @@ class ZstdFastaReader { void reset(); }; } // namespace silo - -#endif // SILO_ZSTDFASTA_READER_H diff --git a/include/silo/common/zstdfasta_writer.h b/include/silo/common/zstdfasta_writer.h index f5c6c2142..cf8fca249 100644 --- a/include/silo/common/zstdfasta_writer.h +++ b/include/silo/common/zstdfasta_writer.h @@ -1,5 +1,4 @@ -#ifndef SILO_ZSTDFASTA_WRITER_H -#define SILO_ZSTDFASTA_WRITER_H +#pragma once #include #include @@ -39,5 +38,3 @@ class ZstdFastaWriter { void writeDefault(const std::string& key); }; } // namespace silo - -#endif // SILO_ZSTDFASTA_WRITER_H diff --git a/include/silo/config/config_exception.h b/include/silo/config/config_exception.h index c94fd4c66..5f8d9fa44 100644 --- a/include/silo/config/config_exception.h +++ b/include/silo/config/config_exception.h @@ -1,5 +1,4 @@ -#ifndef SILO_INCLUDE_SILO_CONFIG_CONFIG_EXCEPTION_H_ -#define SILO_INCLUDE_SILO_CONFIG_CONFIG_EXCEPTION_H_ +#pragma once #include #include @@ -13,5 +12,3 @@ class ConfigException : public std::runtime_error { }; } // namespace silo::config - -#endif // SILO_INCLUDE_SILO_CONFIG_CONFIG_EXCEPTION_H_ diff --git a/include/silo/config/config_repository.h b/include/silo/config/config_repository.h index e51d3cef6..bbeb187ca 100644 --- a/include/silo/config/config_repository.h +++ b/include/silo/config/config_repository.h @@ -1,5 +1,4 @@ -#ifndef SILO_INCLUDE_SILO_CONFIG_CONFIG_REPOSITORY_H_ -#define SILO_INCLUDE_SILO_CONFIG_CONFIG_REPOSITORY_H_ +#pragma once #include @@ -19,5 +18,3 @@ class ConfigRepository { }; } // namespace silo::config - -#endif // SILO_INCLUDE_SILO_CONFIG_CONFIG_REPOSITORY_H_ diff --git a/include/silo/config/database_config.h b/include/silo/config/database_config.h index 4c03af553..33e00df82 100644 --- a/include/silo/config/database_config.h +++ b/include/silo/config/database_config.h @@ -1,5 +1,4 @@ -#ifndef SILO_INCLUDE_SILO_CONFIG_DATABASECONFIG_H_ -#define SILO_INCLUDE_SILO_CONFIG_DATABASECONFIG_H_ +#pragma once #include #include @@ -88,5 +87,3 @@ struct [[maybe_unused]] fmt::formatter : fmt::formatter format_context& ctx ) -> decltype(ctx.out()); }; - -#endif // SILO_INCLUDE_SILO_CONFIG_DATABASECONFIG_H_ diff --git a/include/silo/database.h b/include/silo/database.h index 215c3e01f..8bc337265 100644 --- a/include/silo/database.h +++ b/include/silo/database.h @@ -1,5 +1,4 @@ -#ifndef SILO_DATABASE_H -#define SILO_DATABASE_H +#pragma once #include #include @@ -108,5 +107,3 @@ class Database { }; } // namespace silo - -#endif // SILO_DATABASE_H diff --git a/include/silo/database_info.h b/include/silo/database_info.h index f1b646e57..134ad18e1 100644 --- a/include/silo/database_info.h +++ b/include/silo/database_info.h @@ -1,5 +1,4 @@ -#ifndef SILO_INCLUDE_SILO_API_DATABASE_INFO_H_ -#define SILO_INCLUDE_SILO_API_DATABASE_INFO_H_ +#pragma once #include #include @@ -59,5 +58,3 @@ struct DetailedDatabaseInfo { }; } // namespace silo - -#endif // SILO_INCLUDE_SILO_API_DATABASE_INFO_H_ diff --git a/include/silo/persistence/exception.h b/include/silo/persistence/exception.h index 818eb15d6..600ea7bc9 100644 --- a/include/silo/persistence/exception.h +++ b/include/silo/persistence/exception.h @@ -1,5 +1,4 @@ -#ifndef SILO_LOADDATABASEEXCEPTION_H -#define SILO_LOADDATABASEEXCEPTION_H +#pragma once #include #include @@ -18,5 +17,3 @@ class SaveDatabaseException : public std::runtime_error { }; } // namespace silo::persistence - -#endif // SILO_LOADDATABASEEXCEPTION_H diff --git a/include/silo/prepare_dataset.h b/include/silo/prepare_dataset.h index 0f07c28a5..ea65aa535 100644 --- a/include/silo/prepare_dataset.h +++ b/include/silo/prepare_dataset.h @@ -1,5 +1,4 @@ -#ifndef SILO_PREPARE_DATASET_H -#define SILO_PREPARE_DATASET_H +#pragma once #include #include @@ -50,5 +49,3 @@ void sortChunks( ); } // namespace silo - -#endif // SILO_PREPARE_DATASET_H diff --git a/include/silo/preprocessing/metadata.h b/include/silo/preprocessing/metadata.h index 8946de2c5..28b7c9714 100644 --- a/include/silo/preprocessing/metadata.h +++ b/include/silo/preprocessing/metadata.h @@ -1,5 +1,4 @@ -#ifndef SILO_SRC_SILO_STORAGE_CSV_READER_H_ -#define SILO_SRC_SILO_STORAGE_CSV_READER_H_ +#pragma once #include #include @@ -32,5 +31,3 @@ class MetadataWriter { }; } // namespace silo::preprocessing - -#endif // SILO_SRC_SILO_STORAGE_CSV_READER_H_ diff --git a/include/silo/preprocessing/metadata_validator.h b/include/silo/preprocessing/metadata_validator.h index 0a38bf30c..d0e562bb2 100644 --- a/include/silo/preprocessing/metadata_validator.h +++ b/include/silo/preprocessing/metadata_validator.h @@ -1,5 +1,4 @@ -#ifndef SILO_INCLUDE_SILO_PREPROCESSING_METADATA_VALIDATOR_H_ -#define SILO_INCLUDE_SILO_PREPROCESSING_METADATA_VALIDATOR_H_ +#pragma once #include @@ -21,5 +20,3 @@ class MetadataValidator { }; } // namespace silo::preprocessing - -#endif // SILO_INCLUDE_SILO_PREPROCESSING_METADATA_VALIDATOR_H_ diff --git a/include/silo/preprocessing/pango_lineage_count.h b/include/silo/preprocessing/pango_lineage_count.h index 8cad1fa77..33f738b11 100644 --- a/include/silo/preprocessing/pango_lineage_count.h +++ b/include/silo/preprocessing/pango_lineage_count.h @@ -1,5 +1,4 @@ -#ifndef SILO_PANGO_LINEAGE_COUNT_H -#define SILO_PANGO_LINEAGE_COUNT_H +#pragma once #include #include @@ -39,4 +38,3 @@ PangoLineageCounts buildPangoLineageCounts( } // namespace preprocessing } // namespace silo -#endif // SILO_PANGO_LINEAGE_COUNT_H diff --git a/include/silo/preprocessing/partition.h b/include/silo/preprocessing/partition.h index c4b2e99f6..6e2edaa9e 100644 --- a/include/silo/preprocessing/partition.h +++ b/include/silo/preprocessing/partition.h @@ -1,5 +1,4 @@ -#ifndef SILO_PARTITION_H -#define SILO_PARTITION_H +#pragma once #include #include @@ -121,5 +120,3 @@ template <> struct std::hash { std::size_t operator()(const silo::preprocessing::PartitionChunk& partition_chunk) const; }; - -#endif // SILO_PARTITION_H diff --git a/include/silo/preprocessing/preprocessing_config.h b/include/silo/preprocessing/preprocessing_config.h index 8025acac9..937194440 100644 --- a/include/silo/preprocessing/preprocessing_config.h +++ b/include/silo/preprocessing/preprocessing_config.h @@ -1,5 +1,4 @@ -#ifndef SILO_PREPROCESSING_CONFIG_H -#define SILO_PREPROCESSING_CONFIG_H +#pragma once #include #include @@ -167,5 +166,3 @@ struct [[maybe_unused]] fmt::formatter format_context& ctx ) -> decltype(ctx.out()); }; - -#endif // SILO_PREPROCESSING_CONFIG_H diff --git a/include/silo/preprocessing/preprocessing_config_reader.h b/include/silo/preprocessing/preprocessing_config_reader.h index 769d36ab0..01791aa18 100644 --- a/include/silo/preprocessing/preprocessing_config_reader.h +++ b/include/silo/preprocessing/preprocessing_config_reader.h @@ -1,5 +1,4 @@ -#ifndef SILO_INCLUDE_SILO_API_PREPROCESSING_CONFIG_READER_H_ -#define SILO_INCLUDE_SILO_API_PREPROCESSING_CONFIG_READER_H_ +#pragma once #include #include @@ -58,5 +57,3 @@ class PreprocessingConfigReader { virtual OptionalPreprocessingConfig readConfig(const std::filesystem::path& config_path) const; }; } // namespace silo::preprocessing - -#endif // SILO_INCLUDE_SILO_API_PREPROCESSING_CONFIG_READER_H_ diff --git a/include/silo/preprocessing/preprocessing_exception.h b/include/silo/preprocessing/preprocessing_exception.h index fb8dc2e3d..833053fe0 100644 --- a/include/silo/preprocessing/preprocessing_exception.h +++ b/include/silo/preprocessing/preprocessing_exception.h @@ -1,5 +1,4 @@ -#ifndef SILO_INCLUDE_SILO_PREPROCESSING_PREPROCESSING_EXCEPTION_H_ -#define SILO_INCLUDE_SILO_PREPROCESSING_PREPROCESSING_EXCEPTION_H_ +#pragma once #include #include @@ -12,5 +11,3 @@ class PreprocessingException : public std::runtime_error { }; } // namespace silo - -#endif // SILO_INCLUDE_SILO_PREPROCESSING_PREPROCESSING_EXCEPTION_H_ diff --git a/include/silo/query_engine/actions/aa_mutations.h b/include/silo/query_engine/actions/aa_mutations.h index 726b0dae8..bd8c674e7 100644 --- a/include/silo/query_engine/actions/aa_mutations.h +++ b/include/silo/query_engine/actions/aa_mutations.h @@ -1,5 +1,4 @@ -#ifndef SILO_AA_MUTATIONS_H -#define SILO_AA_MUTATIONS_H +#pragma once #include #include @@ -107,5 +106,3 @@ class AAMutations : public Action { void from_json(const nlohmann::json& json, std::unique_ptr& action); } // namespace silo::query_engine::actions - -#endif // SILO_AA_MUTATIONS_H diff --git a/include/silo/query_engine/actions/action.h b/include/silo/query_engine/actions/action.h index a1d0aeead..71cab6609 100644 --- a/include/silo/query_engine/actions/action.h +++ b/include/silo/query_engine/actions/action.h @@ -1,5 +1,4 @@ -#ifndef SILO_ACTION_H -#define SILO_ACTION_H +#pragma once #include #include @@ -63,5 +62,3 @@ class Action { void from_json(const nlohmann::json& json, std::unique_ptr& action); } // namespace silo::query_engine::actions - -#endif // SILO_ACTION_H diff --git a/include/silo/query_engine/actions/aggregated.h b/include/silo/query_engine/actions/aggregated.h index 83367bf24..7ed04c75d 100644 --- a/include/silo/query_engine/actions/aggregated.h +++ b/include/silo/query_engine/actions/aggregated.h @@ -1,5 +1,4 @@ -#ifndef SILO_AGGREGATED_H -#define SILO_AGGREGATED_H +#pragma once #include #include @@ -40,5 +39,3 @@ class Aggregated : public Action { void from_json(const nlohmann::json& json, std::unique_ptr& action); } // namespace silo::query_engine::actions - -#endif // SILO_AGGREGATED_H diff --git a/include/silo/query_engine/actions/details.h b/include/silo/query_engine/actions/details.h index de4ef99f0..aaeec3326 100644 --- a/include/silo/query_engine/actions/details.h +++ b/include/silo/query_engine/actions/details.h @@ -1,5 +1,4 @@ -#ifndef SILO_DETAILS_H -#define SILO_DETAILS_H +#pragma once #include #include @@ -38,5 +37,3 @@ class Details : public Action { void from_json(const nlohmann::json& json, std::unique_ptr
& action); } // namespace silo::query_engine::actions - -#endif // SILO_DETAILS_H diff --git a/include/silo/query_engine/actions/fasta.h b/include/silo/query_engine/actions/fasta.h index 03d6c5e8e..f26e38c9a 100644 --- a/include/silo/query_engine/actions/fasta.h +++ b/include/silo/query_engine/actions/fasta.h @@ -1,5 +1,4 @@ -#ifndef SILO_FASTA_H -#define SILO_FASTA_H +#pragma once #include #include @@ -32,5 +31,3 @@ class Fasta : public Action { void from_json(const nlohmann::json& json, std::unique_ptr& action); } // namespace silo::query_engine::actions - -#endif // SILO_FASTA_H diff --git a/include/silo/query_engine/actions/fasta_aligned.h b/include/silo/query_engine/actions/fasta_aligned.h index aa884e544..607b124b7 100644 --- a/include/silo/query_engine/actions/fasta_aligned.h +++ b/include/silo/query_engine/actions/fasta_aligned.h @@ -1,5 +1,4 @@ -#ifndef SILO_FASTA_ALIGNED_H -#define SILO_FASTA_ALIGNED_H +#pragma once #include #include @@ -34,5 +33,3 @@ class FastaAligned : public Action { void from_json(const nlohmann::json& json, std::unique_ptr& action); } // namespace silo::query_engine::actions - -#endif // SILO_FASTA_ALIGNED_H diff --git a/include/silo/query_engine/actions/insertions.h b/include/silo/query_engine/actions/insertions.h index a640de055..e77925fba 100644 --- a/include/silo/query_engine/actions/insertions.h +++ b/include/silo/query_engine/actions/insertions.h @@ -1,5 +1,4 @@ -#ifndef SILO_INSERTIONS_H -#define SILO_INSERTIONS_H +#pragma once #include "silo/query_engine/actions/action.h" #include "silo/storage/column/insertion_column.h" @@ -74,5 +73,3 @@ void from_json( } // namespace actions } // namespace silo::query_engine - -#endif // SILO_INSERTIONS_H diff --git a/include/silo/query_engine/actions/nuc_mutations.h b/include/silo/query_engine/actions/nuc_mutations.h index b6758a6f2..31cd6a0ae 100644 --- a/include/silo/query_engine/actions/nuc_mutations.h +++ b/include/silo/query_engine/actions/nuc_mutations.h @@ -1,5 +1,4 @@ -#ifndef SILO_NUC_MUTATIONS_H -#define SILO_NUC_MUTATIONS_H +#pragma once #include #include @@ -84,5 +83,3 @@ class NucMutations : public Action { void from_json(const nlohmann::json& json, std::unique_ptr& action); } // namespace silo::query_engine::actions - -#endif // SILO_NUC_MUTATIONS_H diff --git a/include/silo/query_engine/actions/tuple.h b/include/silo/query_engine/actions/tuple.h index d99348b2e..e5673ba0e 100644 --- a/include/silo/query_engine/actions/tuple.h +++ b/include/silo/query_engine/actions/tuple.h @@ -1,5 +1,4 @@ -#ifndef SILO_TUPLE_H -#define SILO_TUPLE_H +#pragma once #include #include @@ -96,5 +95,3 @@ class TupleFactory { }; } // namespace silo::query_engine::actions - -#endif // SILO_TUPLE_H diff --git a/include/silo/query_engine/filter_expressions/aa_symbol_equals.h b/include/silo/query_engine/filter_expressions/aa_symbol_equals.h index a4aebaf82..e7c154378 100644 --- a/include/silo/query_engine/filter_expressions/aa_symbol_equals.h +++ b/include/silo/query_engine/filter_expressions/aa_symbol_equals.h @@ -1,5 +1,4 @@ -#ifndef SILO_AA_SYMBOL_EQUALS_H -#define SILO_AA_SYMBOL_EQUALS_H +#pragma once #include #include @@ -46,5 +45,3 @@ struct AASymbolEquals : public Expression { void from_json(const nlohmann::json& json, std::unique_ptr& filter); } // namespace silo::query_engine::filter_expressions - -#endif // SILO_AA_SYMBOL_EQUALS_H diff --git a/include/silo/query_engine/filter_expressions/and.h b/include/silo/query_engine/filter_expressions/and.h index fecdd6e12..05ccef32a 100644 --- a/include/silo/query_engine/filter_expressions/and.h +++ b/include/silo/query_engine/filter_expressions/and.h @@ -1,5 +1,4 @@ -#ifndef SILO_AND_H -#define SILO_AND_H +#pragma once #include #include @@ -54,5 +53,3 @@ struct And : public Expression { void from_json(const nlohmann::json& json, std::unique_ptr& filter); } // namespace silo::query_engine::filter_expressions - -#endif // SILO_AND_H diff --git a/include/silo/query_engine/filter_expressions/date_between.h b/include/silo/query_engine/filter_expressions/date_between.h index 0b284bff7..76b50dda5 100644 --- a/include/silo/query_engine/filter_expressions/date_between.h +++ b/include/silo/query_engine/filter_expressions/date_between.h @@ -1,5 +1,4 @@ -#ifndef SILO_DATE_BETWEEN_H -#define SILO_DATE_BETWEEN_H +#pragma once #include #include @@ -65,5 +64,3 @@ struct DateBetween : public Expression { void from_json(const nlohmann::json& json, std::unique_ptr& filter); } // namespace silo::query_engine::filter_expressions - -#endif // SILO_DATE_BETWEEN_H diff --git a/include/silo/query_engine/filter_expressions/exact.h b/include/silo/query_engine/filter_expressions/exact.h index 2e9ad07c4..f05a30051 100644 --- a/include/silo/query_engine/filter_expressions/exact.h +++ b/include/silo/query_engine/filter_expressions/exact.h @@ -1,5 +1,4 @@ -#ifndef SILO_EXACT_H -#define SILO_EXACT_H +#pragma once #include #include @@ -37,5 +36,3 @@ class Exact : public Expression { void from_json(const nlohmann::json& json, std::unique_ptr& filter); } // namespace silo::query_engine::filter_expressions - -#endif // SILO_EXACT_H diff --git a/include/silo/query_engine/filter_expressions/expression.h b/include/silo/query_engine/filter_expressions/expression.h index a02a322ef..0ab39aa48 100644 --- a/include/silo/query_engine/filter_expressions/expression.h +++ b/include/silo/query_engine/filter_expressions/expression.h @@ -1,5 +1,4 @@ -#ifndef SILO_EXPRESSION_H -#define SILO_EXPRESSION_H +#pragma once #include #include @@ -41,5 +40,3 @@ void from_json(const nlohmann::json& json, std::unique_ptr& filter); Expression::AmbiguityMode invertMode(Expression::AmbiguityMode mode); } // namespace silo::query_engine::filter_expressions - -#endif // SILO_EXPRESSION_H diff --git a/include/silo/query_engine/filter_expressions/false.h b/include/silo/query_engine/filter_expressions/false.h index 0bee8bb8d..606c91e45 100644 --- a/include/silo/query_engine/filter_expressions/false.h +++ b/include/silo/query_engine/filter_expressions/false.h @@ -1,5 +1,4 @@ -#ifndef SILO_FALSE_H -#define SILO_FALSE_H +#pragma once #include #include @@ -37,5 +36,3 @@ struct False : public Expression { void from_json(const nlohmann::json& json, std::unique_ptr& filter); } // namespace silo::query_engine::filter_expressions - -#endif // SILO_FALSE_H diff --git a/include/silo/query_engine/filter_expressions/float_between.h b/include/silo/query_engine/filter_expressions/float_between.h index 2f2ab56e8..1918d45b8 100644 --- a/include/silo/query_engine/filter_expressions/float_between.h +++ b/include/silo/query_engine/filter_expressions/float_between.h @@ -1,5 +1,4 @@ -#ifndef SILO_FLOAT_BETWEEN_H -#define SILO_FLOAT_BETWEEN_H +#pragma once #include #include @@ -44,5 +43,3 @@ class FloatBetween : public Expression { void from_json(const nlohmann::json& json, std::unique_ptr& filter); } // namespace silo::query_engine::filter_expressions - -#endif // SILO_FLOAT_BETWEEN_H diff --git a/include/silo/query_engine/filter_expressions/float_equals.h b/include/silo/query_engine/filter_expressions/float_equals.h index 9f8a315a0..3685664a9 100644 --- a/include/silo/query_engine/filter_expressions/float_equals.h +++ b/include/silo/query_engine/filter_expressions/float_equals.h @@ -1,5 +1,4 @@ -#ifndef SILO_FLOAT_EQUALS_H -#define SILO_FLOAT_EQUALS_H +#pragma once #include #include @@ -43,5 +42,3 @@ class FloatEquals : public Expression { void from_json(const nlohmann::json& json, std::unique_ptr& filter); } // namespace silo::query_engine::filter_expressions - -#endif // SILO_FLOAT_EQUALS_H diff --git a/include/silo/query_engine/filter_expressions/has_aa_mutation.h b/include/silo/query_engine/filter_expressions/has_aa_mutation.h index 4f9ae0372..b7fd6d0dc 100644 --- a/include/silo/query_engine/filter_expressions/has_aa_mutation.h +++ b/include/silo/query_engine/filter_expressions/has_aa_mutation.h @@ -1,5 +1,4 @@ -#ifndef SILO_HAS_AA_MUTATION_H -#define SILO_HAS_AA_MUTATION_H +#pragma once #include #include @@ -43,5 +42,3 @@ struct HasAAMutation : public Expression { void from_json(const nlohmann::json& json, std::unique_ptr& filter); } // namespace silo::query_engine::filter_expressions - -#endif // SILO_HAS_AA_MUTATION_H diff --git a/include/silo/query_engine/filter_expressions/has_mutation.h b/include/silo/query_engine/filter_expressions/has_mutation.h index fcaa5b58e..effc72929 100644 --- a/include/silo/query_engine/filter_expressions/has_mutation.h +++ b/include/silo/query_engine/filter_expressions/has_mutation.h @@ -1,5 +1,4 @@ -#ifndef SILO_HAS_MUTATION_H -#define SILO_HAS_MUTATION_H +#pragma once #include #include @@ -43,5 +42,3 @@ struct HasMutation : public Expression { void from_json(const nlohmann::json& json, std::unique_ptr& filter); } // namespace silo::query_engine::filter_expressions - -#endif // SILO_HAS_MUTATION_H diff --git a/include/silo/query_engine/filter_expressions/insertion_contains.h b/include/silo/query_engine/filter_expressions/insertion_contains.h index b6bd07dad..2fb6cc427 100644 --- a/include/silo/query_engine/filter_expressions/insertion_contains.h +++ b/include/silo/query_engine/filter_expressions/insertion_contains.h @@ -1,5 +1,4 @@ -#ifndef SILO_INSERTION_CONTAINS_H -#define SILO_INSERTION_CONTAINS_H +#pragma once #include #include @@ -49,5 +48,3 @@ template void from_json(const nlohmann::json& json, std::unique_ptr>& filter); } // namespace silo::query_engine::filter_expressions - -#endif // SILO_INSERTION_CONTAINS_H diff --git a/include/silo/query_engine/filter_expressions/int_between.h b/include/silo/query_engine/filter_expressions/int_between.h index ffcf364da..69a776c6b 100644 --- a/include/silo/query_engine/filter_expressions/int_between.h +++ b/include/silo/query_engine/filter_expressions/int_between.h @@ -1,5 +1,4 @@ -#ifndef SILO_INT_BETWEEN_H -#define SILO_INT_BETWEEN_H +#pragma once #include #include @@ -49,5 +48,3 @@ struct IntBetween : public Expression { void from_json(const nlohmann::json& json, std::unique_ptr& filter); } // namespace silo::query_engine::filter_expressions - -#endif // SILO_INT_BETWEEN_H diff --git a/include/silo/query_engine/filter_expressions/int_equals.h b/include/silo/query_engine/filter_expressions/int_equals.h index 726f48935..997f601d3 100644 --- a/include/silo/query_engine/filter_expressions/int_equals.h +++ b/include/silo/query_engine/filter_expressions/int_equals.h @@ -1,5 +1,4 @@ -#ifndef SILO_INT_EQUALS_H -#define SILO_INT_EQUALS_H +#pragma once #include #include @@ -42,5 +41,3 @@ struct IntEquals : public Expression { void from_json(const nlohmann::json& json, std::unique_ptr& filter); } // namespace silo::query_engine::filter_expressions - -#endif // SILO_INT_EQUALS_H diff --git a/include/silo/query_engine/filter_expressions/maybe.h b/include/silo/query_engine/filter_expressions/maybe.h index ba4b68168..07856aa83 100644 --- a/include/silo/query_engine/filter_expressions/maybe.h +++ b/include/silo/query_engine/filter_expressions/maybe.h @@ -1,5 +1,4 @@ -#ifndef SILO_MAYBE_H -#define SILO_MAYBE_H +#pragma once #include #include @@ -36,5 +35,3 @@ struct Maybe : public Expression { void from_json(const nlohmann::json& json, std::unique_ptr& filter); } // namespace silo::query_engine::filter_expressions - -#endif // SILO_MAYBE_H diff --git a/include/silo/query_engine/filter_expressions/negation.h b/include/silo/query_engine/filter_expressions/negation.h index 9e9c39199..b81c68ed9 100644 --- a/include/silo/query_engine/filter_expressions/negation.h +++ b/include/silo/query_engine/filter_expressions/negation.h @@ -1,5 +1,4 @@ -#ifndef SILO_NEGATION_H -#define SILO_NEGATION_H +#pragma once #include #include @@ -41,5 +40,3 @@ class Negation : public Expression { void from_json(const nlohmann::json& json, std::unique_ptr& filter); } // namespace silo::query_engine::filter_expressions - -#endif // SILO_NEGATION_H diff --git a/include/silo/query_engine/filter_expressions/nof.h b/include/silo/query_engine/filter_expressions/nof.h index fe7b3b51e..e1bd195ee 100644 --- a/include/silo/query_engine/filter_expressions/nof.h +++ b/include/silo/query_engine/filter_expressions/nof.h @@ -1,5 +1,4 @@ -#ifndef SILO_NOF_H -#define SILO_NOF_H +#pragma once #include #include @@ -65,5 +64,3 @@ struct NOf : public Expression { void from_json(const nlohmann::json& json, std::unique_ptr& filter); } // namespace silo::query_engine::filter_expressions - -#endif // SILO_NOF_H diff --git a/include/silo/query_engine/filter_expressions/nucleotide_symbol_equals.h b/include/silo/query_engine/filter_expressions/nucleotide_symbol_equals.h index eeedfaf44..a73a5338e 100644 --- a/include/silo/query_engine/filter_expressions/nucleotide_symbol_equals.h +++ b/include/silo/query_engine/filter_expressions/nucleotide_symbol_equals.h @@ -1,5 +1,4 @@ -#ifndef SILO_NUCLEOTIDE_SYMBOL_EQUALS_H -#define SILO_NUCLEOTIDE_SYMBOL_EQUALS_H +#pragma once #include #include @@ -48,5 +47,3 @@ struct NucleotideSymbolEquals : public Expression { void from_json(const nlohmann::json& json, std::unique_ptr& filter); } // namespace silo::query_engine::filter_expressions - -#endif // SILO_NUCLEOTIDE_SYMBOL_EQUALS_H diff --git a/include/silo/query_engine/filter_expressions/or.h b/include/silo/query_engine/filter_expressions/or.h index 75f736a7e..adad21f5e 100644 --- a/include/silo/query_engine/filter_expressions/or.h +++ b/include/silo/query_engine/filter_expressions/or.h @@ -1,5 +1,4 @@ -#ifndef SILO_OR_H -#define SILO_OR_H +#pragma once #include #include @@ -39,5 +38,3 @@ struct Or : public Expression { void from_json(const nlohmann::json& json, std::unique_ptr& filter); } // namespace silo::query_engine::filter_expressions - -#endif // SILO_OR_H diff --git a/include/silo/query_engine/filter_expressions/pango_lineage_filter.h b/include/silo/query_engine/filter_expressions/pango_lineage_filter.h index b8669827a..578945d32 100644 --- a/include/silo/query_engine/filter_expressions/pango_lineage_filter.h +++ b/include/silo/query_engine/filter_expressions/pango_lineage_filter.h @@ -1,5 +1,4 @@ -#ifndef SILO_PANGO_LINEAGE_FILTER_H -#define SILO_PANGO_LINEAGE_FILTER_H +#pragma once #include #include @@ -45,5 +44,3 @@ struct PangoLineageFilter : public Expression { void from_json(const nlohmann::json& json, std::unique_ptr& filter); } // namespace silo::query_engine::filter_expressions - -#endif // SILO_PANGO_LINEAGE_FILTER_H diff --git a/include/silo/query_engine/filter_expressions/string_equals.h b/include/silo/query_engine/filter_expressions/string_equals.h index 1201176da..5c064a681 100644 --- a/include/silo/query_engine/filter_expressions/string_equals.h +++ b/include/silo/query_engine/filter_expressions/string_equals.h @@ -1,5 +1,4 @@ -#ifndef SILO_STRING_EQUALS_H -#define SILO_STRING_EQUALS_H +#pragma once #include #include @@ -41,5 +40,3 @@ struct StringEquals : public Expression { void from_json(const nlohmann::json& json, std::unique_ptr& filter); } // namespace silo::query_engine::filter_expressions - -#endif // SILO_STRING_EQUALS_H diff --git a/include/silo/query_engine/filter_expressions/true.h b/include/silo/query_engine/filter_expressions/true.h index d982b4381..653d344df 100644 --- a/include/silo/query_engine/filter_expressions/true.h +++ b/include/silo/query_engine/filter_expressions/true.h @@ -1,5 +1,4 @@ -#ifndef SILO_TRUE_H -#define SILO_TRUE_H +#pragma once #include #include @@ -36,5 +35,3 @@ struct True : public Expression { void from_json(const nlohmann::json& json, std::unique_ptr& filter); } // namespace silo::query_engine::filter_expressions - -#endif // SILO_TRUE_H diff --git a/include/silo/query_engine/operator_result.h b/include/silo/query_engine/operator_result.h index ffca320ca..e702b17ec 100644 --- a/include/silo/query_engine/operator_result.h +++ b/include/silo/query_engine/operator_result.h @@ -1,5 +1,4 @@ -#ifndef SILO_OPERATOR_RESULT_H -#define SILO_OPERATOR_RESULT_H +#pragma once #include @@ -35,5 +34,3 @@ struct OperatorResult { }; } // namespace silo::query_engine - -#endif // SILO_OPERATOR_RESULT_H diff --git a/include/silo/query_engine/operators/bitmap_producer.h b/include/silo/query_engine/operators/bitmap_producer.h index 92239ed9c..4c5e9c21a 100644 --- a/include/silo/query_engine/operators/bitmap_producer.h +++ b/include/silo/query_engine/operators/bitmap_producer.h @@ -1,5 +1,4 @@ -#ifndef SILO_BITMAP_PRODUCER_H -#define SILO_BITMAP_PRODUCER_H +#pragma once #include #include @@ -37,5 +36,3 @@ class BitmapProducer : public Operator { }; } // namespace silo::query_engine::operators - -#endif // SILO_BITMAP_PRODUCER_H diff --git a/include/silo/query_engine/operators/bitmap_selection.h b/include/silo/query_engine/operators/bitmap_selection.h index 47242c3e1..9ddf515ab 100644 --- a/include/silo/query_engine/operators/bitmap_selection.h +++ b/include/silo/query_engine/operators/bitmap_selection.h @@ -1,5 +1,4 @@ -#ifndef SILO_SEQUENCE_SELECTION_H -#define SILO_SEQUENCE_SELECTION_H +#pragma once #include #include @@ -46,5 +45,3 @@ class BitmapSelection : public Operator { }; } // namespace silo::query_engine::operators - -#endif // SILO_SEQUENCE_SELECTION_H diff --git a/include/silo/query_engine/operators/complement.h b/include/silo/query_engine/operators/complement.h index f4837a5fb..17f8132ec 100644 --- a/include/silo/query_engine/operators/complement.h +++ b/include/silo/query_engine/operators/complement.h @@ -1,5 +1,4 @@ -#ifndef SILO_COMPLEMENT_H -#define SILO_COMPLEMENT_H +#pragma once #include #include @@ -44,5 +43,3 @@ class Complement : public Operator { }; } // namespace silo::query_engine::operators - -#endif // SILO_COMPLEMENT_H diff --git a/include/silo/query_engine/operators/empty.h b/include/silo/query_engine/operators/empty.h index 058d6cce6..82b02af44 100644 --- a/include/silo/query_engine/operators/empty.h +++ b/include/silo/query_engine/operators/empty.h @@ -1,5 +1,4 @@ -#ifndef SILO_EMPTY_H -#define SILO_EMPTY_H +#pragma once #include #include @@ -30,5 +29,3 @@ class Empty : public Operator { }; } // namespace silo::query_engine::operators - -#endif // SILO_EMPTY_H diff --git a/include/silo/query_engine/operators/full.h b/include/silo/query_engine/operators/full.h index 4e832d0cf..78d5c560b 100644 --- a/include/silo/query_engine/operators/full.h +++ b/include/silo/query_engine/operators/full.h @@ -1,5 +1,4 @@ -#ifndef SILO_FULL_H -#define SILO_FULL_H +#pragma once #include #include @@ -29,5 +28,3 @@ class Full : public Operator { }; } // namespace silo::query_engine::operators - -#endif // SILO_FULL_H diff --git a/include/silo/query_engine/operators/index_scan.h b/include/silo/query_engine/operators/index_scan.h index 4a7354700..accb6e942 100644 --- a/include/silo/query_engine/operators/index_scan.h +++ b/include/silo/query_engine/operators/index_scan.h @@ -1,5 +1,4 @@ -#ifndef SILO_INDEX_SCAN_H -#define SILO_INDEX_SCAN_H +#pragma once #include #include @@ -35,5 +34,3 @@ class IndexScan : public Operator { }; } // namespace silo::query_engine::operators - -#endif // SILO_INDEX_SCAN_H diff --git a/include/silo/query_engine/operators/intersection.h b/include/silo/query_engine/operators/intersection.h index dd53e55ba..1d17fbcb3 100644 --- a/include/silo/query_engine/operators/intersection.h +++ b/include/silo/query_engine/operators/intersection.h @@ -1,5 +1,4 @@ -#ifndef SILO_INTERSECTION_H -#define SILO_INTERSECTION_H +#pragma once #include #include @@ -42,5 +41,3 @@ class Intersection : public Operator { }; } // namespace silo::query_engine::operators - -#endif // SILO_INTERSECTION_H diff --git a/include/silo/query_engine/operators/operator.h b/include/silo/query_engine/operators/operator.h index 60cb9ead4..31eca9ebc 100644 --- a/include/silo/query_engine/operators/operator.h +++ b/include/silo/query_engine/operators/operator.h @@ -1,5 +1,4 @@ -#ifndef SILO_OPERATOR_H -#define SILO_OPERATOR_H +#pragma once #include #include @@ -40,5 +39,3 @@ class Operator { }; } // namespace silo::query_engine::operators - -#endif // SILO_OPERATOR_H diff --git a/include/silo/query_engine/operators/range_selection.h b/include/silo/query_engine/operators/range_selection.h index 2274fe19f..08cf035ff 100644 --- a/include/silo/query_engine/operators/range_selection.h +++ b/include/silo/query_engine/operators/range_selection.h @@ -1,5 +1,4 @@ -#ifndef SILO_RANGE_SELECTION_H -#define SILO_RANGE_SELECTION_H +#pragma once #include #include @@ -40,5 +39,3 @@ class RangeSelection : public Operator { }; } // namespace silo::query_engine::operators - -#endif // SILO_RANGE_SELECTION_H diff --git a/include/silo/query_engine/operators/selection.h b/include/silo/query_engine/operators/selection.h index 68b01d3a3..b750058d9 100644 --- a/include/silo/query_engine/operators/selection.h +++ b/include/silo/query_engine/operators/selection.h @@ -1,5 +1,4 @@ -#ifndef SILO_SELECTION_H -#define SILO_SELECTION_H +#pragma once #include #include @@ -85,5 +84,3 @@ class Selection : public Operator { }; } // namespace silo::query_engine::operators - -#endif // SILO_SELECTION_H diff --git a/include/silo/query_engine/operators/threshold.h b/include/silo/query_engine/operators/threshold.h index 5690bac11..ee1a7c2bb 100644 --- a/include/silo/query_engine/operators/threshold.h +++ b/include/silo/query_engine/operators/threshold.h @@ -1,5 +1,4 @@ -#ifndef SILO_THRESHOLD_H -#define SILO_THRESHOLD_H +#pragma once #include #include @@ -41,5 +40,3 @@ class Threshold : public Operator { }; } // namespace silo::query_engine::operators - -#endif // SILO_THRESHOLD_H diff --git a/include/silo/query_engine/operators/union.h b/include/silo/query_engine/operators/union.h index f9e882ba8..9bcc9c1f3 100644 --- a/include/silo/query_engine/operators/union.h +++ b/include/silo/query_engine/operators/union.h @@ -1,5 +1,4 @@ -#ifndef SILO_UNION_H -#define SILO_UNION_H +#pragma once #include #include @@ -36,5 +35,3 @@ class Union : public Operator { }; } // namespace silo::query_engine::operators - -#endif // SILO_UNION_H diff --git a/include/silo/query_engine/query.h b/include/silo/query_engine/query.h index 1b97a0d71..78054808d 100644 --- a/include/silo/query_engine/query.h +++ b/include/silo/query_engine/query.h @@ -1,5 +1,4 @@ -#ifndef SILO_QUERY_H -#define SILO_QUERY_H +#pragma once #include @@ -23,5 +22,3 @@ struct Query { }; } // namespace silo::query_engine - -#endif // SILO_QUERY_H diff --git a/include/silo/query_engine/query_compilation_exception.h b/include/silo/query_engine/query_compilation_exception.h index 44fcbe45b..bcbcfa2a0 100644 --- a/include/silo/query_engine/query_compilation_exception.h +++ b/include/silo/query_engine/query_compilation_exception.h @@ -1,5 +1,4 @@ -#ifndef SILO_INCLUDE_SILO_QUERY_ENGINE_QUERY_COMPILATION_EXCEPTION_H_ -#define SILO_INCLUDE_SILO_QUERY_ENGINE_QUERY_COMPILATION_EXCEPTION_H_ +#pragma once #include #include @@ -12,5 +11,3 @@ class [[maybe_unused]] QueryCompilationException : public std::runtime_error { [[maybe_unused]] QueryCompilationException(const std::string& error_message); }; } // namespace silo - -#endif // SILO_INCLUDE_SILO_QUERY_ENGINE_QUERY_COMPILATION_EXCEPTION_H_ diff --git a/include/silo/query_engine/query_engine.h b/include/silo/query_engine/query_engine.h index f65bf0589..2314d8069 100644 --- a/include/silo/query_engine/query_engine.h +++ b/include/silo/query_engine/query_engine.h @@ -1,5 +1,4 @@ -#ifndef SILO_QUERY_ENGINE_H -#define SILO_QUERY_ENGINE_H +#pragma once #include #include @@ -32,5 +31,3 @@ class QueryEngine { QueryResult executeQuery(const Database& database, const std::string& query); } // namespace silo::query_engine - -#endif // SILO_QUERY_ENGINE_H diff --git a/include/silo/query_engine/query_parse_exception.h b/include/silo/query_engine/query_parse_exception.h index 62f7c86ff..9d822e05c 100644 --- a/include/silo/query_engine/query_parse_exception.h +++ b/include/silo/query_engine/query_parse_exception.h @@ -1,5 +1,4 @@ -#ifndef SILO_INCLUDE_SILO_QUERY_ENGINE_QUERY_PARSE_EXCEPTION_H_ -#define SILO_INCLUDE_SILO_QUERY_ENGINE_QUERY_PARSE_EXCEPTION_H_ +#pragma once #include #include @@ -17,5 +16,3 @@ class [[maybe_unused]] QueryParseException : public std::runtime_error { [[maybe_unused]] QueryParseException(const std::string& error_message); }; } // namespace silo - -#endif // SILO_INCLUDE_SILO_QUERY_ENGINE_QUERY_PARSE_EXCEPTION_H_ diff --git a/include/silo/query_engine/query_result.h b/include/silo/query_engine/query_result.h index cce1786ac..e862eb470 100644 --- a/include/silo/query_engine/query_result.h +++ b/include/silo/query_engine/query_result.h @@ -1,5 +1,4 @@ -#ifndef SILO_QUERY_ENGINE_RESULT_H -#define SILO_QUERY_ENGINE_RESULT_H +#pragma once #include #include @@ -26,5 +25,3 @@ void to_json(nlohmann::json& json, const QueryResult& query_result); // NOLINTEND(readability-identifier-naming) } // namespace silo::query_engine - -#endif // SILO_QUERY_ENGINE_RESULT_H diff --git a/include/silo/roaring/roaring_serialize.h b/include/silo/roaring/roaring_serialize.h index 5e72957b5..121e5b763 100644 --- a/include/silo/roaring/roaring_serialize.h +++ b/include/silo/roaring/roaring_serialize.h @@ -1,5 +1,4 @@ -#ifndef SILO_ROARING_SERIALIZE_H -#define SILO_ROARING_SERIALIZE_H +#pragma once #include #include @@ -45,5 +44,3 @@ template } } // namespace boost::serialization // NOLINTEND - -#endif // SILO_ROARING_SERIALIZE_H diff --git a/include/silo/storage/column/date_column.h b/include/silo/storage/column/date_column.h index f51c93d61..bbf25ad90 100644 --- a/include/silo/storage/column/date_column.h +++ b/include/silo/storage/column/date_column.h @@ -1,5 +1,4 @@ -#ifndef SILO_DATE_COLUMN_H -#define SILO_DATE_COLUMN_H +#pragma once #include #include @@ -62,5 +61,3 @@ class DateColumn { }; } // namespace silo::storage::column - -#endif // SILO_DATE_COLUMN_H diff --git a/include/silo/storage/column/float_column.h b/include/silo/storage/column/float_column.h index 5a096c099..d0654861f 100644 --- a/include/silo/storage/column/float_column.h +++ b/include/silo/storage/column/float_column.h @@ -1,5 +1,4 @@ -#ifndef SILO_FLOAT_COLUMN_H -#define SILO_FLOAT_COLUMN_H +#pragma once #include #include @@ -51,5 +50,3 @@ class FloatColumn { }; } // namespace silo::storage::column - -#endif // SILO_FLOAT_COLUMN_H diff --git a/include/silo/storage/column/indexed_string_column.h b/include/silo/storage/column/indexed_string_column.h index e33171147..32eb11d1f 100644 --- a/include/silo/storage/column/indexed_string_column.h +++ b/include/silo/storage/column/indexed_string_column.h @@ -1,5 +1,4 @@ -#ifndef SILO_INDEXED_STRING_COLUMN_H -#define SILO_INDEXED_STRING_COLUMN_H +#pragma once #include #include @@ -69,5 +68,3 @@ class IndexedStringColumn { }; } // namespace silo::storage::column - -#endif // SILO_INDEXED_STRING_COLUMN_H diff --git a/include/silo/storage/column/insertion_column.h b/include/silo/storage/column/insertion_column.h index aa4722ad0..4311ce22c 100644 --- a/include/silo/storage/column/insertion_column.h +++ b/include/silo/storage/column/insertion_column.h @@ -1,5 +1,4 @@ -#ifndef SILO_INSERTION_COLUMN_H -#define SILO_INSERTION_COLUMN_H +#pragma once #include #include @@ -89,5 +88,3 @@ class InsertionColumn { }; } // namespace silo::storage::column - -#endif // SILO_INSERTION_COLUMN_H diff --git a/include/silo/storage/column/insertion_index.h b/include/silo/storage/column/insertion_index.h index 84bd46513..4a49bdd3f 100644 --- a/include/silo/storage/column/insertion_index.h +++ b/include/silo/storage/column/insertion_index.h @@ -1,5 +1,4 @@ -#ifndef SILO_INSERTION_INDEX_H -#define SILO_INSERTION_INDEX_H +#pragma once #include #include @@ -111,5 +110,3 @@ class InsertionIndex { }; } // namespace silo::storage::column::insertion - -#endif // SILO_INSERTION_INDEX_H diff --git a/include/silo/storage/column/int_column.h b/include/silo/storage/column/int_column.h index 6e730dda0..9505dc479 100644 --- a/include/silo/storage/column/int_column.h +++ b/include/silo/storage/column/int_column.h @@ -1,5 +1,4 @@ -#ifndef SILO_INT_COLUMN_H -#define SILO_INT_COLUMN_H +#pragma once #include #include @@ -55,5 +54,3 @@ class IntColumn { }; } // namespace silo::storage::column - -#endif // SILO_INT_COLUMN_H diff --git a/include/silo/storage/column/pango_lineage_column.h b/include/silo/storage/column/pango_lineage_column.h index ac4192ddf..f021ac3a9 100644 --- a/include/silo/storage/column/pango_lineage_column.h +++ b/include/silo/storage/column/pango_lineage_column.h @@ -1,5 +1,4 @@ -#ifndef SILO_PANGO_LINEAGE_COLUMN_H -#define SILO_PANGO_LINEAGE_COLUMN_H +#pragma once #include #include @@ -84,5 +83,3 @@ class PangoLineageColumn { }; } // namespace silo::storage::column - -#endif // SILO_PANGO_LINEAGE_COLUMN_H diff --git a/include/silo/storage/column/string_column.h b/include/silo/storage/column/string_column.h index 5f2964b95..7898c2142 100644 --- a/include/silo/storage/column/string_column.h +++ b/include/silo/storage/column/string_column.h @@ -1,5 +1,4 @@ -#ifndef SILO_STRING_COLUMN_H -#define SILO_STRING_COLUMN_H +#pragma once #include #include @@ -75,5 +74,3 @@ class StringColumn { }; } // namespace silo::storage::column - -#endif // SILO_STRING_COLUMN_H diff --git a/include/silo/storage/column_group.h b/include/silo/storage/column_group.h index 770fd7be6..16bcc975f 100644 --- a/include/silo/storage/column_group.h +++ b/include/silo/storage/column_group.h @@ -1,5 +1,4 @@ -#ifndef SILO_COLUMN_GROUP_H -#define SILO_COLUMN_GROUP_H +#pragma once #include #include @@ -155,5 +154,3 @@ class ColumnGroup { }; } // namespace silo::storage - -#endif // SILO_COLUMN_GROUP_H diff --git a/include/silo/storage/database_partition.h b/include/silo/storage/database_partition.h index 676c973e2..d23214c8c 100644 --- a/include/silo/storage/database_partition.h +++ b/include/silo/storage/database_partition.h @@ -1,5 +1,4 @@ -#ifndef SILO_DATABASE_PARTITION_H -#define SILO_DATABASE_PARTITION_H +#pragma once #include #include @@ -88,5 +87,3 @@ class DatabasePartition { }; } // namespace silo - -#endif // SILO_DATABASE_PARTITION_H diff --git a/include/silo/storage/pango_lineage_alias.h b/include/silo/storage/pango_lineage_alias.h index 4ad6a85df..af6643fd5 100644 --- a/include/silo/storage/pango_lineage_alias.h +++ b/include/silo/storage/pango_lineage_alias.h @@ -1,5 +1,4 @@ -#ifndef SILO_PANGO_LINEAGE_ALIAS_H -#define SILO_PANGO_LINEAGE_ALIAS_H +#pragma once #include #include @@ -48,5 +47,3 @@ class PangoLineageAliasLookup { }; } // namespace silo - -#endif // SILO_PANGO_LINEAGE_ALIAS_H diff --git a/include/silo/storage/reference_genomes.h b/include/silo/storage/reference_genomes.h index 5ab9e1da9..c8ff8375b 100644 --- a/include/silo/storage/reference_genomes.h +++ b/include/silo/storage/reference_genomes.h @@ -1,5 +1,4 @@ -#ifndef SILO_INCLUDE_SILO_STORAGE_REFERENCE_GENOME_H_ -#define SILO_INCLUDE_SILO_STORAGE_REFERENCE_GENOME_H_ +#pragma once #include #include @@ -30,5 +29,3 @@ struct ReferenceGenomes { }; } // namespace silo - -#endif // SILO_INCLUDE_SILO_STORAGE_REFERENCE_GENOME_H_ diff --git a/include/silo/storage/sequence_store.h b/include/silo/storage/sequence_store.h index 38d872b28..98795d63b 100644 --- a/include/silo/storage/sequence_store.h +++ b/include/silo/storage/sequence_store.h @@ -1,6 +1,4 @@ - -#ifndef SILO_SEQUENCE_STORE_H -#define SILO_SEQUENCE_STORE_H +#pragma once #include #include @@ -123,5 +121,3 @@ struct [[maybe_unused]] fmt::formatter : fmt::formatter format_context& ctx ) -> decltype(ctx.out()); }; - -#endif // SILO_SEQUENCE_STORE_H diff --git a/include/silo/storage/serialize_optional.h b/include/silo/storage/serialize_optional.h index 31f0a3334..b8a91dbf1 100644 --- a/include/silo/storage/serialize_optional.h +++ b/include/silo/storage/serialize_optional.h @@ -1,5 +1,4 @@ -#ifndef SILO_INCLUDE_SILO_STORAGE_SERIALIZE_OPTIONAL_H_ -#define SILO_INCLUDE_SILO_STORAGE_SERIALIZE_OPTIONAL_H_ +#pragma once #include #include @@ -43,5 +42,3 @@ void serialize(Archive& archive, std::optional& optional, const uint32_t vers } } // namespace boost::serialization - -#endif // SILO_INCLUDE_SILO_STORAGE_SERIALIZE_OPTIONAL_H_ diff --git a/include/silo_api/database_directory_watcher.h b/include/silo_api/database_directory_watcher.h index 0ad8747bf..8f2b8abe4 100644 --- a/include/silo_api/database_directory_watcher.h +++ b/include/silo_api/database_directory_watcher.h @@ -1,5 +1,4 @@ -#ifndef SILO_DATABASE_DIRECTORY_WATCHER_H -#define SILO_DATABASE_DIRECTORY_WATCHER_H +#pragma once #include @@ -22,5 +21,3 @@ class DatabaseDirectoryWatcher { void checkDirectoryForData(Poco::Timer& timer); }; } // namespace silo_api - -#endif // SILO_DATABASE_DIRECTORY_WATCHER_H diff --git a/include/silo_api/database_mutex.h b/include/silo_api/database_mutex.h index 0e744cc78..c6d9472a6 100644 --- a/include/silo_api/database_mutex.h +++ b/include/silo_api/database_mutex.h @@ -1,5 +1,4 @@ -#ifndef SILO_DATABASE_MUTEX_H -#define SILO_DATABASE_MUTEX_H +#pragma once #include #include @@ -29,5 +28,3 @@ class DatabaseMutex { virtual FixedDatabase getDatabase(); }; } // namespace silo_api - -#endif // SILO_DATABASE_MUTEX_H diff --git a/include/silo_api/error_request_handler.h b/include/silo_api/error_request_handler.h index 4c59be4c1..d68948ad3 100644 --- a/include/silo_api/error_request_handler.h +++ b/include/silo_api/error_request_handler.h @@ -1,5 +1,4 @@ -#ifndef SILO_INCLUDE_SILO_API_ERRORREQUESTHANDLER_H_ -#define SILO_INCLUDE_SILO_API_ERRORREQUESTHANDLER_H_ +#pragma once #include #include @@ -30,5 +29,3 @@ class ErrorRequestHandler : public Poco::Net::HTTPRequestHandler { }; }; // namespace silo_api - -#endif // SILO_INCLUDE_SILO_API_ERRORREQUESTHANDLER_H_ diff --git a/include/silo_api/info_handler.h b/include/silo_api/info_handler.h index 0e24937fd..32b6bd3cb 100644 --- a/include/silo_api/info_handler.h +++ b/include/silo_api/info_handler.h @@ -1,5 +1,4 @@ -#ifndef SILO_INFOHANDLER_H -#define SILO_INFOHANDLER_H +#pragma once #include #include @@ -20,5 +19,3 @@ class InfoHandler : public RestResource { override; }; } // namespace silo_api - -#endif // SILO_INFOHANDLER_H diff --git a/include/silo_api/logging.h b/include/silo_api/logging.h index f7c1c5bb9..c8795ceb3 100644 --- a/include/silo_api/logging.h +++ b/include/silo_api/logging.h @@ -1,6 +1,3 @@ -#ifndef SILO_LOGGING_H -#define SILO_LOGGING_H +#pragma once void setupLogger(); - -#endif // SILO_LOGGING_H diff --git a/include/silo_api/logging_request_handler.h b/include/silo_api/logging_request_handler.h index 05b522320..dece757d6 100644 --- a/include/silo_api/logging_request_handler.h +++ b/include/silo_api/logging_request_handler.h @@ -1,5 +1,4 @@ -#ifndef SILO_INCLUDE_SILO_API_LOGGING_REQUEST_HANDLER_H_ -#define SILO_INCLUDE_SILO_API_LOGGING_REQUEST_HANDLER_H_ +#pragma once #include @@ -22,5 +21,3 @@ class LoggingRequestHandler : public Poco::Net::HTTPRequestHandler { ) override; }; } // namespace silo_api - -#endif // SILO_INCLUDE_SILO_API_LOGGING_REQUEST_HANDLER_H_ diff --git a/include/silo_api/manual_poco_mocks.test.h b/include/silo_api/manual_poco_mocks.test.h index dc476a04f..8c501079a 100644 --- a/include/silo_api/manual_poco_mocks.test.h +++ b/include/silo_api/manual_poco_mocks.test.h @@ -1,5 +1,4 @@ -#ifndef SILO_MANUAL_POCO_MOCKS_TEST_H -#define SILO_MANUAL_POCO_MOCKS_TEST_H +#pragma once #include @@ -54,5 +53,3 @@ class MockRequest : public Poco::Net::HTTPServerRequest { }; } // namespace silo_api::test - -#endif // SILO_MANUAL_POCO_MOCKS_TEST_H diff --git a/include/silo_api/not_found_handler.h b/include/silo_api/not_found_handler.h index e9a9d4ca9..c501cf3a8 100644 --- a/include/silo_api/not_found_handler.h +++ b/include/silo_api/not_found_handler.h @@ -1,5 +1,4 @@ -#ifndef SILO_ERROR_H -#define SILO_ERROR_H +#pragma once #include #include @@ -16,5 +15,3 @@ class NotFoundHandler : public Poco::Net::HTTPRequestHandler { }; } // namespace silo_api - -#endif // SILO_ERROR_H diff --git a/include/silo_api/query_handler.h b/include/silo_api/query_handler.h index a95e90949..5d4c2ca09 100644 --- a/include/silo_api/query_handler.h +++ b/include/silo_api/query_handler.h @@ -1,5 +1,4 @@ -#ifndef SILO_QUERYREQUESTHANDLER_H -#define SILO_QUERYREQUESTHANDLER_H +#pragma once #include #include @@ -22,5 +21,3 @@ class QueryHandler : public RestResource { override; }; } // namespace silo_api - -#endif // SILO_QUERYREQUESTHANDLER_H diff --git a/include/silo_api/request_handler_factory.h b/include/silo_api/request_handler_factory.h index 11a6882c8..29ce65916 100644 --- a/include/silo_api/request_handler_factory.h +++ b/include/silo_api/request_handler_factory.h @@ -1,5 +1,4 @@ -#ifndef SILO_REQUEST_HANDLER_FACTORY_H -#define SILO_REQUEST_HANDLER_FACTORY_H +#pragma once #include #include @@ -25,5 +24,3 @@ class SiloRequestHandlerFactory : public Poco::Net::HTTPRequestHandlerFactory { }; } // namespace silo_api - -#endif // SILO_REQUEST_HANDLER_FACTORY_H diff --git a/include/silo_api/rest_resource.h b/include/silo_api/rest_resource.h index 55d4a1fba..4359ff920 100644 --- a/include/silo_api/rest_resource.h +++ b/include/silo_api/rest_resource.h @@ -1,5 +1,4 @@ -#ifndef SILO_INCLUDE_SILO_API_REST_RESOURCE_H_ -#define SILO_INCLUDE_SILO_API_REST_RESOURCE_H_ +#pragma once #include #include @@ -25,5 +24,3 @@ class RestResource : public Poco::Net::HTTPRequestHandler { }; }; // namespace silo_api - -#endif // SILO_INCLUDE_SILO_API_REST_RESOURCE_H_ diff --git a/include/silo_api/runtime_config.h b/include/silo_api/runtime_config.h index 2da9735cf..55fd7fa50 100644 --- a/include/silo_api/runtime_config.h +++ b/include/silo_api/runtime_config.h @@ -1,5 +1,4 @@ -#ifndef SILO_RUNTIME_CONFIG_H -#define SILO_RUNTIME_CONFIG_H +#pragma once #include #include @@ -13,5 +12,3 @@ struct RuntimeConfig { }; } // namespace silo_api - -#endif // SILO_RUNTIME_CONFIG_H diff --git a/include/silo_api/variant_json_serializer.h b/include/silo_api/variant_json_serializer.h index e1064086a..23171072f 100644 --- a/include/silo_api/variant_json_serializer.h +++ b/include/silo_api/variant_json_serializer.h @@ -1,5 +1,4 @@ -#ifndef SILO_VARIANT_JSON_SERIALIZER_H -#define SILO_VARIANT_JSON_SERIALIZER_H +#pragma once #include #include @@ -26,4 +25,3 @@ struct [[maybe_unused]] adl_serializer> { }; } // namespace nlohmann // NOLINTEND -#endif // SILO_VARIANT_JSON_SERIALIZER_H