Unverified Commit c5c60c8f authored by Nikita Titov's avatar Nikita Titov Committed by GitHub
Browse files

[ci][c++] fixed `build/header_guard` errors from cpplint (#7055)

parent 32781bae
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved. * Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information. * Licensed under the MIT License. See LICENSE file in the project root for license information.
*/ */
#ifndef LIGHTGBM_UTILS_PIPELINE_READER_H_ #ifndef LIGHTGBM_INCLUDE_LIGHTGBM_UTILS_PIPELINE_READER_H_
#define LIGHTGBM_UTILS_PIPELINE_READER_H_ #define LIGHTGBM_INCLUDE_LIGHTGBM_UTILS_PIPELINE_READER_H_
#include <LightGBM/utils/file_io.h> #include <LightGBM/utils/file_io.h>
#include <LightGBM/utils/log.h> #include <LightGBM/utils/log.h>
...@@ -68,4 +68,4 @@ class PipelineReader { ...@@ -68,4 +68,4 @@ class PipelineReader {
} // namespace LightGBM } // namespace LightGBM
#endif // LightGBM_UTILS_PIPELINE_READER_H_ #endif // LIGHTGBM_INCLUDE_LIGHTGBM_UTILS_PIPELINE_READER_H_
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved. * Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information. * Licensed under the MIT License. See LICENSE file in the project root for license information.
*/ */
#ifndef LIGHTGBM_UTILS_RANDOM_H_ #ifndef LIGHTGBM_INCLUDE_LIGHTGBM_UTILS_RANDOM_H_
#define LIGHTGBM_UTILS_RANDOM_H_ #define LIGHTGBM_INCLUDE_LIGHTGBM_UTILS_RANDOM_H_
#include <cstdint> #include <cstdint>
#include <random> #include <random>
...@@ -114,4 +114,4 @@ class Random { ...@@ -114,4 +114,4 @@ class Random {
} // namespace LightGBM } // namespace LightGBM
#endif // LightGBM_UTILS_RANDOM_H_ #endif // LIGHTGBM_INCLUDE_LIGHTGBM_UTILS_RANDOM_H_
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved. * Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information. * Licensed under the MIT License. See LICENSE file in the project root for license information.
*/ */
#ifndef LIGHTGBM_UTILS_TEXT_READER_H_ #ifndef LIGHTGBM_INCLUDE_LIGHTGBM_UTILS_TEXT_READER_H_
#define LIGHTGBM_UTILS_TEXT_READER_H_ #define LIGHTGBM_INCLUDE_LIGHTGBM_UTILS_TEXT_READER_H_
#include <LightGBM/utils/log.h> #include <LightGBM/utils/log.h>
#include <LightGBM/utils/pipeline_reader.h> #include <LightGBM/utils/pipeline_reader.h>
...@@ -356,4 +356,4 @@ class TextReader { ...@@ -356,4 +356,4 @@ class TextReader {
} // namespace LightGBM } // namespace LightGBM
#endif // LightGBM_UTILS_TEXT_READER_H_ #endif // LIGHTGBM_INCLUDE_LIGHTGBM_UTILS_TEXT_READER_H_
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* Licensed under the MIT License. See LICENSE file in the project root for * Licensed under the MIT License. See LICENSE file in the project root for
* license information. * license information.
*/ */
#ifndef LIGHTGBM_UTILS_THREADING_H_ #ifndef LIGHTGBM_INCLUDE_LIGHTGBM_UTILS_THREADING_H_
#define LIGHTGBM_UTILS_THREADING_H_ #define LIGHTGBM_INCLUDE_LIGHTGBM_UTILS_THREADING_H_
#include <LightGBM/meta.h> #include <LightGBM/meta.h>
#include <LightGBM/utils/common.h> #include <LightGBM/utils/common.h>
...@@ -197,4 +197,4 @@ class ParallelPartitionRunner { ...@@ -197,4 +197,4 @@ class ParallelPartitionRunner {
} // namespace LightGBM } // namespace LightGBM
#endif // LightGBM_UTILS_THREADING_H_ #endif // LIGHTGBM_INCLUDE_LIGHTGBM_UTILS_THREADING_H_
...@@ -23,8 +23,8 @@ ...@@ -23,8 +23,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE. * SOFTWARE.
*/ */
#ifndef YAMC_ALTERNATE_SHARED_MUTEX_HPP_ #ifndef LIGHTGBM_INCLUDE_LIGHTGBM_UTILS_YAMC_ALTERNATE_SHARED_MUTEX_HPP_
#define YAMC_ALTERNATE_SHARED_MUTEX_HPP_ #define LIGHTGBM_INCLUDE_LIGHTGBM_UTILS_YAMC_ALTERNATE_SHARED_MUTEX_HPP_
#include <cassert> #include <cassert>
#include <chrono> #include <chrono>
...@@ -209,4 +209,4 @@ using shared_timed_mutex = basic_shared_timed_mutex<YAMC_RWLOCK_SCHED_DEFAULT>; ...@@ -209,4 +209,4 @@ using shared_timed_mutex = basic_shared_timed_mutex<YAMC_RWLOCK_SCHED_DEFAULT>;
} // namespace alternate } // namespace alternate
} // namespace yamc } // namespace yamc
#endif #endif // LIGHTGBM_INCLUDE_LIGHTGBM_UTILS_YAMC_ALTERNATE_SHARED_MUTEX_HPP_
...@@ -23,8 +23,8 @@ ...@@ -23,8 +23,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE. * SOFTWARE.
*/ */
#ifndef YAMC_RWLOCK_SCHED_HPP_ #ifndef LIGHTGBM_INCLUDE_LIGHTGBM_UTILS_YAMC_YAMC_RWLOCK_SCHED_HPP_
#define YAMC_RWLOCK_SCHED_HPP_ #define LIGHTGBM_INCLUDE_LIGHTGBM_UTILS_YAMC_YAMC_RWLOCK_SCHED_HPP_
#include <cassert> #include <cassert>
#include <cstddef> #include <cstddef>
...@@ -146,4 +146,4 @@ struct WriterPrefer { ...@@ -146,4 +146,4 @@ struct WriterPrefer {
} // namespace rwlock } // namespace rwlock
} // namespace yamc } // namespace yamc
#endif #endif // LIGHTGBM_INCLUDE_LIGHTGBM_UTILS_YAMC_YAMC_RWLOCK_SCHED_HPP_
...@@ -23,8 +23,8 @@ ...@@ -23,8 +23,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE. * SOFTWARE.
*/ */
#ifndef YAMC_SHARED_LOCK_HPP_ #ifndef LIGHTGBM_INCLUDE_LIGHTGBM_UTILS_YAMC_YAMC_SHARED_LOCK_HPP_
#define YAMC_SHARED_LOCK_HPP_ #define LIGHTGBM_INCLUDE_LIGHTGBM_UTILS_YAMC_YAMC_SHARED_LOCK_HPP_
#include <cassert> #include <cassert>
#include <chrono> #include <chrono>
...@@ -194,4 +194,4 @@ void swap(yamc::shared_lock<Mutex>& lhs, ...@@ -194,4 +194,4 @@ void swap(yamc::shared_lock<Mutex>& lhs,
} // namespace std } // namespace std
#endif #endif // LIGHTGBM_INCLUDE_LIGHTGBM_UTILS_YAMC_YAMC_SHARED_LOCK_HPP_
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved. * Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information. * Licensed under the MIT License. See LICENSE file in the project root for license information.
*/ */
#ifndef LIGHTGBM_PREDICTOR_HPP_ #ifndef LIGHTGBM_SRC_APPLICATION_PREDICTOR_HPP_
#define LIGHTGBM_PREDICTOR_HPP_ #define LIGHTGBM_SRC_APPLICATION_PREDICTOR_HPP_
#include <LightGBM/boosting.h> #include <LightGBM/boosting.h>
#include <LightGBM/dataset.h> #include <LightGBM/dataset.h>
...@@ -299,4 +299,4 @@ class Predictor { ...@@ -299,4 +299,4 @@ class Predictor {
} // namespace LightGBM } // namespace LightGBM
#endif // LightGBM_PREDICTOR_HPP_ #endif // LIGHTGBM_SRC_APPLICATION_PREDICTOR_HPP_
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* Licensed under the MIT License. See LICENSE file in the project root for license information. * Licensed under the MIT License. See LICENSE file in the project root for license information.
*/ */
#ifndef LIGHTGBM_BOOSTING_BAGGING_HPP_ #ifndef LIGHTGBM_SRC_BOOSTING_BAGGING_HPP_
#define LIGHTGBM_BOOSTING_BAGGING_HPP_ #define LIGHTGBM_SRC_BOOSTING_BAGGING_HPP_
#include <string> #include <string>
#include <vector> #include <vector>
...@@ -293,4 +293,4 @@ class BaggingSampleStrategy : public SampleStrategy { ...@@ -293,4 +293,4 @@ class BaggingSampleStrategy : public SampleStrategy {
} // namespace LightGBM } // namespace LightGBM
#endif // LIGHTGBM_BOOSTING_BAGGING_HPP_ #endif // LIGHTGBM_SRC_BOOSTING_BAGGING_HPP_
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* Licensed under the MIT License. See LICENSE file in the project root for license information. * Licensed under the MIT License. See LICENSE file in the project root for license information.
*/ */
#ifndef LIGHTGBM_BOOSTING_CUDA_CUDA_SCORE_UPDATER_HPP_ #ifndef LIGHTGBM_SRC_BOOSTING_CUDA_CUDA_SCORE_UPDATER_HPP_
#define LIGHTGBM_BOOSTING_CUDA_CUDA_SCORE_UPDATER_HPP_ #define LIGHTGBM_SRC_BOOSTING_CUDA_CUDA_SCORE_UPDATER_HPP_
#ifdef USE_CUDA #ifdef USE_CUDA
...@@ -62,4 +62,4 @@ class CUDAScoreUpdater: public ScoreUpdater { ...@@ -62,4 +62,4 @@ class CUDAScoreUpdater: public ScoreUpdater {
#endif // USE_CUDA #endif // USE_CUDA
#endif // LIGHTGBM_BOOSTING_CUDA_CUDA_SCORE_UPDATER_HPP_ #endif // LIGHTGBM_SRC_BOOSTING_CUDA_CUDA_SCORE_UPDATER_HPP_
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved. * Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information. * Licensed under the MIT License. See LICENSE file in the project root for license information.
*/ */
#ifndef LIGHTGBM_BOOSTING_DART_H_ #ifndef LIGHTGBM_SRC_BOOSTING_DART_HPP_
#define LIGHTGBM_BOOSTING_DART_H_ #define LIGHTGBM_SRC_BOOSTING_DART_HPP_
#include <LightGBM/boosting.h> #include <LightGBM/boosting.h>
...@@ -208,4 +208,4 @@ class DART: public GBDT { ...@@ -208,4 +208,4 @@ class DART: public GBDT {
}; };
} // namespace LightGBM } // namespace LightGBM
#endif // LightGBM_BOOSTING_DART_H_ #endif // LIGHTGBM_SRC_BOOSTING_DART_HPP_
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved. * Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information. * Licensed under the MIT License. See LICENSE file in the project root for license information.
*/ */
#ifndef LIGHTGBM_BOOSTING_GBDT_H_ #ifndef LIGHTGBM_SRC_BOOSTING_GBDT_H_
#define LIGHTGBM_BOOSTING_GBDT_H_ #define LIGHTGBM_SRC_BOOSTING_GBDT_H_
#include <LightGBM/boosting.h> #include <LightGBM/boosting.h>
#include <LightGBM/objective_function.h> #include <LightGBM/objective_function.h>
...@@ -621,4 +621,4 @@ class GBDT : public GBDTBase { ...@@ -621,4 +621,4 @@ class GBDT : public GBDTBase {
}; };
} // namespace LightGBM } // namespace LightGBM
#endif // LightGBM_BOOSTING_GBDT_H_ #endif // LIGHTGBM_SRC_BOOSTING_GBDT_H_
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* Licensed under the MIT License. See LICENSE file in the project root for license information. * Licensed under the MIT License. See LICENSE file in the project root for license information.
*/ */
#ifndef LIGHTGBM_BOOSTING_GOSS_HPP_ #ifndef LIGHTGBM_SRC_BOOSTING_GOSS_HPP_
#define LIGHTGBM_BOOSTING_GOSS_HPP_ #define LIGHTGBM_SRC_BOOSTING_GOSS_HPP_
#include <LightGBM/utils/array_args.h> #include <LightGBM/utils/array_args.h>
#include <LightGBM/sample_strategy.h> #include <LightGBM/sample_strategy.h>
...@@ -169,4 +169,4 @@ class GOSSStrategy : public SampleStrategy { ...@@ -169,4 +169,4 @@ class GOSSStrategy : public SampleStrategy {
} // namespace LightGBM } // namespace LightGBM
#endif // LIGHTGBM_BOOSTING_GOSS_HPP_ #endif // LIGHTGBM_SRC_BOOSTING_GOSS_HPP_
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
* Copyright (c) 2017 Microsoft Corporation. All rights reserved. * Copyright (c) 2017 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information. * Licensed under the MIT License. See LICENSE file in the project root for license information.
*/ */
#ifndef LIGHTGBM_BOOSTING_RF_H_ #ifndef LIGHTGBM_SRC_BOOSTING_RF_HPP_
#define LIGHTGBM_BOOSTING_RF_H_ #define LIGHTGBM_SRC_BOOSTING_RF_HPP_
#include <LightGBM/boosting.h> #include <LightGBM/boosting.h>
#include <LightGBM/metric.h> #include <LightGBM/metric.h>
...@@ -233,4 +233,4 @@ class RF : public GBDT { ...@@ -233,4 +233,4 @@ class RF : public GBDT {
}; };
} // namespace LightGBM } // namespace LightGBM
#endif // LIGHTGBM_BOOSTING_RF_H_ #endif // LIGHTGBM_SRC_BOOSTING_RF_HPP_
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved. * Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information. * Licensed under the MIT License. See LICENSE file in the project root for license information.
*/ */
#ifndef LIGHTGBM_BOOSTING_SCORE_UPDATER_HPP_ #ifndef LIGHTGBM_SRC_BOOSTING_SCORE_UPDATER_HPP_
#define LIGHTGBM_BOOSTING_SCORE_UPDATER_HPP_ #define LIGHTGBM_SRC_BOOSTING_SCORE_UPDATER_HPP_
#include <LightGBM/dataset.h> #include <LightGBM/dataset.h>
#include <LightGBM/meta.h> #include <LightGBM/meta.h>
...@@ -125,4 +125,4 @@ class ScoreUpdater { ...@@ -125,4 +125,4 @@ class ScoreUpdater {
}; };
} // namespace LightGBM } // namespace LightGBM
#endif // LightGBM_BOOSTING_SCORE_UPDATER_HPP_ #endif // LIGHTGBM_SRC_BOOSTING_SCORE_UPDATER_HPP_
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* Licensed under the MIT License. See LICENSE file in the project root for * Licensed under the MIT License. See LICENSE file in the project root for
* license information. * license information.
*/ */
#ifndef LIGHTGBM_IO_DENSE_BIN_HPP_ #ifndef LIGHTGBM_SRC_IO_DENSE_BIN_HPP_
#define LIGHTGBM_IO_DENSE_BIN_HPP_ #define LIGHTGBM_SRC_IO_DENSE_BIN_HPP_
#include <LightGBM/bin.h> #include <LightGBM/bin.h>
#include <LightGBM/cuda/vector_cudahost.h> #include <LightGBM/cuda/vector_cudahost.h>
...@@ -646,4 +646,4 @@ BinIterator* DenseBin<VAL_T, IS_4BIT>::GetIterator( ...@@ -646,4 +646,4 @@ BinIterator* DenseBin<VAL_T, IS_4BIT>::GetIterator(
} }
} // namespace LightGBM } // namespace LightGBM
#endif // LightGBM_IO_DENSE_BIN_HPP_ #endif // LIGHTGBM_SRC_IO_DENSE_BIN_HPP_
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
* Copyright (c) 2020 Microsoft Corporation. All rights reserved. * Copyright (c) 2020 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information. * Licensed under the MIT License. See LICENSE file in the project root for license information.
*/ */
#ifndef LIGHTGBM_IO_MULTI_VAL_DENSE_BIN_HPP_ #ifndef LIGHTGBM_SRC_IO_MULTI_VAL_DENSE_BIN_HPP_
#define LIGHTGBM_IO_MULTI_VAL_DENSE_BIN_HPP_ #define LIGHTGBM_SRC_IO_MULTI_VAL_DENSE_BIN_HPP_
#include <LightGBM/bin.h> #include <LightGBM/bin.h>
#include <LightGBM/utils/openmp_wrapper.h> #include <LightGBM/utils/openmp_wrapper.h>
...@@ -356,4 +356,4 @@ MultiValDenseBin<VAL_T>* MultiValDenseBin<VAL_T>::Clone() { ...@@ -356,4 +356,4 @@ MultiValDenseBin<VAL_T>* MultiValDenseBin<VAL_T>::Clone() {
} // namespace LightGBM } // namespace LightGBM
#endif // LIGHTGBM_IO_MULTI_VAL_DENSE_BIN_HPP_ #endif // LIGHTGBM_SRC_IO_MULTI_VAL_DENSE_BIN_HPP_
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
* Copyright (c) 2020 Microsoft Corporation. All rights reserved. * Copyright (c) 2020 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information. * Licensed under the MIT License. See LICENSE file in the project root for license information.
*/ */
#ifndef LIGHTGBM_IO_MULTI_VAL_SPARSE_BIN_HPP_ #ifndef LIGHTGBM_SRC_IO_MULTI_VAL_SPARSE_BIN_HPP_
#define LIGHTGBM_IO_MULTI_VAL_SPARSE_BIN_HPP_ #define LIGHTGBM_SRC_IO_MULTI_VAL_SPARSE_BIN_HPP_
#include <LightGBM/bin.h> #include <LightGBM/bin.h>
#include <LightGBM/utils/openmp_wrapper.h> #include <LightGBM/utils/openmp_wrapper.h>
...@@ -445,4 +445,4 @@ MultiValSparseBin<INDEX_T, VAL_T>* MultiValSparseBin<INDEX_T, VAL_T>::Clone() { ...@@ -445,4 +445,4 @@ MultiValSparseBin<INDEX_T, VAL_T>* MultiValSparseBin<INDEX_T, VAL_T>::Clone() {
} // namespace LightGBM } // namespace LightGBM
#endif // LIGHTGBM_IO_MULTI_VAL_SPARSE_BIN_HPP_ #endif // LIGHTGBM_SRC_IO_MULTI_VAL_SPARSE_BIN_HPP_
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved. * Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information. * Licensed under the MIT License. See LICENSE file in the project root for license information.
*/ */
#ifndef LIGHTGBM_IO_PARSER_HPP_ #ifndef LIGHTGBM_SRC_IO_PARSER_HPP_
#define LIGHTGBM_IO_PARSER_HPP_ #define LIGHTGBM_SRC_IO_PARSER_HPP_
#include <LightGBM/dataset.h> #include <LightGBM/dataset.h>
#include <LightGBM/utils/common.h> #include <LightGBM/utils/common.h>
...@@ -132,4 +132,4 @@ class LibSVMParser: public Parser { ...@@ -132,4 +132,4 @@ class LibSVMParser: public Parser {
}; };
} // namespace LightGBM } // namespace LightGBM
#endif // LightGBM_IO_PARSER_HPP_ #endif // LIGHTGBM_SRC_IO_PARSER_HPP_
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* Licensed under the MIT License. See LICENSE file in the project root for * Licensed under the MIT License. See LICENSE file in the project root for
* license information. * license information.
*/ */
#ifndef LIGHTGBM_IO_SPARSE_BIN_HPP_ #ifndef LIGHTGBM_SRC_IO_SPARSE_BIN_HPP_
#define LIGHTGBM_IO_SPARSE_BIN_HPP_ #define LIGHTGBM_SRC_IO_SPARSE_BIN_HPP_
#include <LightGBM/bin.h> #include <LightGBM/bin.h>
#include <LightGBM/utils/log.h> #include <LightGBM/utils/log.h>
...@@ -854,4 +854,4 @@ BinIterator* SparseBin<VAL_T>::GetIterator(uint32_t min_bin, uint32_t max_bin, ...@@ -854,4 +854,4 @@ BinIterator* SparseBin<VAL_T>::GetIterator(uint32_t min_bin, uint32_t max_bin,
} // namespace LightGBM } // namespace LightGBM
#endif // LightGBM_IO_SPARSE_BIN_HPP_ #endif // LIGHTGBM_SRC_IO_SPARSE_BIN_HPP_
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment