Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
c5c60c8f
Unverified
Commit
c5c60c8f
authored
Oct 17, 2025
by
Nikita Titov
Committed by
GitHub
Oct 17, 2025
Browse files
[ci][c++] fixed `build/header_guard` errors from cpplint (#7055)
parent
32781bae
Changes
100
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
60 additions
and
60 deletions
+60
-60
include/LightGBM/utils/pipeline_reader.h
include/LightGBM/utils/pipeline_reader.h
+3
-3
include/LightGBM/utils/random.h
include/LightGBM/utils/random.h
+3
-3
include/LightGBM/utils/text_reader.h
include/LightGBM/utils/text_reader.h
+3
-3
include/LightGBM/utils/threading.h
include/LightGBM/utils/threading.h
+3
-3
include/LightGBM/utils/yamc/alternate_shared_mutex.hpp
include/LightGBM/utils/yamc/alternate_shared_mutex.hpp
+3
-3
include/LightGBM/utils/yamc/yamc_rwlock_sched.hpp
include/LightGBM/utils/yamc/yamc_rwlock_sched.hpp
+3
-3
include/LightGBM/utils/yamc/yamc_shared_lock.hpp
include/LightGBM/utils/yamc/yamc_shared_lock.hpp
+3
-3
src/application/predictor.hpp
src/application/predictor.hpp
+3
-3
src/boosting/bagging.hpp
src/boosting/bagging.hpp
+3
-3
src/boosting/cuda/cuda_score_updater.hpp
src/boosting/cuda/cuda_score_updater.hpp
+3
-3
src/boosting/dart.hpp
src/boosting/dart.hpp
+3
-3
src/boosting/gbdt.h
src/boosting/gbdt.h
+3
-3
src/boosting/goss.hpp
src/boosting/goss.hpp
+3
-3
src/boosting/rf.hpp
src/boosting/rf.hpp
+3
-3
src/boosting/score_updater.hpp
src/boosting/score_updater.hpp
+3
-3
src/io/dense_bin.hpp
src/io/dense_bin.hpp
+3
-3
src/io/multi_val_dense_bin.hpp
src/io/multi_val_dense_bin.hpp
+3
-3
src/io/multi_val_sparse_bin.hpp
src/io/multi_val_sparse_bin.hpp
+3
-3
src/io/parser.hpp
src/io/parser.hpp
+3
-3
src/io/sparse_bin.hpp
src/io/sparse_bin.hpp
+3
-3
No files found.
include/LightGBM/utils/pipeline_reader.h
View file @
c5c60c8f
...
...
@@ -2,8 +2,8 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_UTILS_PIPELINE_READER_H_
#define LIGHTGBM_UTILS_PIPELINE_READER_H_
#ifndef
LIGHTGBM_INCLUDE_
LIGHTGBM_UTILS_PIPELINE_READER_H_
#define
LIGHTGBM_INCLUDE_
LIGHTGBM_UTILS_PIPELINE_READER_H_
#include <LightGBM/utils/file_io.h>
#include <LightGBM/utils/log.h>
...
...
@@ -68,4 +68,4 @@ class PipelineReader {
}
// namespace LightGBM
#endif // L
ight
GBM_UTILS_PIPELINE_READER_H_
#endif // L
IGHTGBM_INCLUDE_LIGHT
GBM_UTILS_PIPELINE_READER_H_
include/LightGBM/utils/random.h
View file @
c5c60c8f
...
...
@@ -2,8 +2,8 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_UTILS_RANDOM_H_
#define LIGHTGBM_UTILS_RANDOM_H_
#ifndef
LIGHTGBM_INCLUDE_
LIGHTGBM_UTILS_RANDOM_H_
#define
LIGHTGBM_INCLUDE_
LIGHTGBM_UTILS_RANDOM_H_
#include <cstdint>
#include <random>
...
...
@@ -114,4 +114,4 @@ class Random {
}
// namespace LightGBM
#endif // L
ight
GBM_UTILS_RANDOM_H_
#endif // L
IGHTGBM_INCLUDE_LIGHT
GBM_UTILS_RANDOM_H_
include/LightGBM/utils/text_reader.h
View file @
c5c60c8f
...
...
@@ -2,8 +2,8 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_UTILS_TEXT_READER_H_
#define LIGHTGBM_UTILS_TEXT_READER_H_
#ifndef
LIGHTGBM_INCLUDE_
LIGHTGBM_UTILS_TEXT_READER_H_
#define
LIGHTGBM_INCLUDE_
LIGHTGBM_UTILS_TEXT_READER_H_
#include <LightGBM/utils/log.h>
#include <LightGBM/utils/pipeline_reader.h>
...
...
@@ -356,4 +356,4 @@ class TextReader {
}
// namespace LightGBM
#endif // L
ight
GBM_UTILS_TEXT_READER_H_
#endif // L
IGHTGBM_INCLUDE_LIGHT
GBM_UTILS_TEXT_READER_H_
include/LightGBM/utils/threading.h
View file @
c5c60c8f
...
...
@@ -3,8 +3,8 @@
* Licensed under the MIT License. See LICENSE file in the project root for
* license information.
*/
#ifndef LIGHTGBM_UTILS_THREADING_H_
#define LIGHTGBM_UTILS_THREADING_H_
#ifndef
LIGHTGBM_INCLUDE_
LIGHTGBM_UTILS_THREADING_H_
#define
LIGHTGBM_INCLUDE_
LIGHTGBM_UTILS_THREADING_H_
#include <LightGBM/meta.h>
#include <LightGBM/utils/common.h>
...
...
@@ -197,4 +197,4 @@ class ParallelPartitionRunner {
}
// namespace LightGBM
#endif // L
ight
GBM_UTILS_THREADING_H_
#endif // L
IGHTGBM_INCLUDE_LIGHT
GBM_UTILS_THREADING_H_
include/LightGBM/utils/yamc/alternate_shared_mutex.hpp
View file @
c5c60c8f
...
...
@@ -23,8 +23,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
#ifndef YAMC_ALTERNATE_SHARED_MUTEX_HPP_
#define YAMC_ALTERNATE_SHARED_MUTEX_HPP_
#ifndef
LIGHTGBM_INCLUDE_LIGHTGBM_UTILS_
YAMC_ALTERNATE_SHARED_MUTEX_HPP_
#define
LIGHTGBM_INCLUDE_LIGHTGBM_UTILS_
YAMC_ALTERNATE_SHARED_MUTEX_HPP_
#include <cassert>
#include <chrono>
...
...
@@ -209,4 +209,4 @@ using shared_timed_mutex = basic_shared_timed_mutex<YAMC_RWLOCK_SCHED_DEFAULT>;
}
// namespace alternate
}
// namespace yamc
#endif
#endif
// LIGHTGBM_INCLUDE_LIGHTGBM_UTILS_YAMC_ALTERNATE_SHARED_MUTEX_HPP_
include/LightGBM/utils/yamc/yamc_rwlock_sched.hpp
View file @
c5c60c8f
...
...
@@ -23,8 +23,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
#ifndef YAMC_RWLOCK_SCHED_HPP_
#define YAMC_RWLOCK_SCHED_HPP_
#ifndef
LIGHTGBM_INCLUDE_LIGHTGBM_UTILS_YAMC_
YAMC_RWLOCK_SCHED_HPP_
#define
LIGHTGBM_INCLUDE_LIGHTGBM_UTILS_YAMC_
YAMC_RWLOCK_SCHED_HPP_
#include <cassert>
#include <cstddef>
...
...
@@ -146,4 +146,4 @@ struct WriterPrefer {
}
// namespace rwlock
}
// namespace yamc
#endif
#endif
// LIGHTGBM_INCLUDE_LIGHTGBM_UTILS_YAMC_YAMC_RWLOCK_SCHED_HPP_
include/LightGBM/utils/yamc/yamc_shared_lock.hpp
View file @
c5c60c8f
...
...
@@ -23,8 +23,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
#ifndef YAMC_SHARED_LOCK_HPP_
#define YAMC_SHARED_LOCK_HPP_
#ifndef
LIGHTGBM_INCLUDE_LIGHTGBM_UTILS_YAMC_
YAMC_SHARED_LOCK_HPP_
#define
LIGHTGBM_INCLUDE_LIGHTGBM_UTILS_YAMC_
YAMC_SHARED_LOCK_HPP_
#include <cassert>
#include <chrono>
...
...
@@ -194,4 +194,4 @@ void swap(yamc::shared_lock<Mutex>& lhs,
}
// namespace std
#endif
#endif
// LIGHTGBM_INCLUDE_LIGHTGBM_UTILS_YAMC_YAMC_SHARED_LOCK_HPP_
src/application/predictor.hpp
View file @
c5c60c8f
...
...
@@ -2,8 +2,8 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_PREDICTOR_HPP_
#define LIGHTGBM_PREDICTOR_HPP_
#ifndef LIGHTGBM_
SRC_APPLICATION_
PREDICTOR_HPP_
#define LIGHTGBM_
SRC_APPLICATION_
PREDICTOR_HPP_
#include <LightGBM/boosting.h>
#include <LightGBM/dataset.h>
...
...
@@ -299,4 +299,4 @@ class Predictor {
}
// namespace LightGBM
#endif
// L
ightGBM
_PREDICTOR_HPP_
#endif // L
IGHTGBM_SRC_APPLICATION
_PREDICTOR_HPP_
src/boosting/bagging.hpp
View file @
c5c60c8f
...
...
@@ -3,8 +3,8 @@
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_BOOSTING_BAGGING_HPP_
#define LIGHTGBM_BOOSTING_BAGGING_HPP_
#ifndef LIGHTGBM_
SRC_
BOOSTING_BAGGING_HPP_
#define LIGHTGBM_
SRC_
BOOSTING_BAGGING_HPP_
#include <string>
#include <vector>
...
...
@@ -293,4 +293,4 @@ class BaggingSampleStrategy : public SampleStrategy {
}
// namespace LightGBM
#endif // LIGHTGBM_BOOSTING_BAGGING_HPP_
#endif // LIGHTGBM_
SRC_
BOOSTING_BAGGING_HPP_
src/boosting/cuda/cuda_score_updater.hpp
View file @
c5c60c8f
...
...
@@ -3,8 +3,8 @@
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_BOOSTING_CUDA_CUDA_SCORE_UPDATER_HPP_
#define LIGHTGBM_BOOSTING_CUDA_CUDA_SCORE_UPDATER_HPP_
#ifndef LIGHTGBM_
SRC_
BOOSTING_CUDA_CUDA_SCORE_UPDATER_HPP_
#define LIGHTGBM_
SRC_
BOOSTING_CUDA_CUDA_SCORE_UPDATER_HPP_
#ifdef USE_CUDA
...
...
@@ -62,4 +62,4 @@ class CUDAScoreUpdater: public ScoreUpdater {
#endif // USE_CUDA
#endif // LIGHTGBM_BOOSTING_CUDA_CUDA_SCORE_UPDATER_HPP_
#endif // LIGHTGBM_
SRC_
BOOSTING_CUDA_CUDA_SCORE_UPDATER_HPP_
src/boosting/dart.hpp
View file @
c5c60c8f
...
...
@@ -2,8 +2,8 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_BOOSTING_DART_H_
#define LIGHTGBM_BOOSTING_DART_H_
#ifndef LIGHTGBM_
SRC_
BOOSTING_DART_H
PP
_
#define LIGHTGBM_
SRC_
BOOSTING_DART_H
PP
_
#include <LightGBM/boosting.h>
...
...
@@ -208,4 +208,4 @@ class DART: public GBDT {
};
}
// namespace LightGBM
#endif
// L
ightGBM
_BOOSTING_DART_H_
#endif // L
IGHTGBM_SRC
_BOOSTING_DART_H
PP
_
src/boosting/gbdt.h
View file @
c5c60c8f
...
...
@@ -2,8 +2,8 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_BOOSTING_GBDT_H_
#define LIGHTGBM_BOOSTING_GBDT_H_
#ifndef LIGHTGBM_
SRC_
BOOSTING_GBDT_H_
#define LIGHTGBM_
SRC_
BOOSTING_GBDT_H_
#include <LightGBM/boosting.h>
#include <LightGBM/objective_function.h>
...
...
@@ -621,4 +621,4 @@ class GBDT : public GBDTBase {
};
}
// namespace LightGBM
#endif // L
ightGBM
_BOOSTING_GBDT_H_
#endif // L
IGHTGBM_SRC
_BOOSTING_GBDT_H_
src/boosting/goss.hpp
View file @
c5c60c8f
...
...
@@ -3,8 +3,8 @@
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_BOOSTING_GOSS_HPP_
#define LIGHTGBM_BOOSTING_GOSS_HPP_
#ifndef LIGHTGBM_
SRC_
BOOSTING_GOSS_HPP_
#define LIGHTGBM_
SRC_
BOOSTING_GOSS_HPP_
#include <LightGBM/utils/array_args.h>
#include <LightGBM/sample_strategy.h>
...
...
@@ -169,4 +169,4 @@ class GOSSStrategy : public SampleStrategy {
}
// namespace LightGBM
#endif // LIGHTGBM_BOOSTING_GOSS_HPP_
#endif // LIGHTGBM_
SRC_
BOOSTING_GOSS_HPP_
src/boosting/rf.hpp
View file @
c5c60c8f
...
...
@@ -2,8 +2,8 @@
* Copyright (c) 2017 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_BOOSTING_RF_H_
#define LIGHTGBM_BOOSTING_RF_H_
#ifndef LIGHTGBM_
SRC_
BOOSTING_RF_H
PP
_
#define LIGHTGBM_
SRC_
BOOSTING_RF_H
PP
_
#include <LightGBM/boosting.h>
#include <LightGBM/metric.h>
...
...
@@ -233,4 +233,4 @@ class RF : public GBDT {
};
}
// namespace LightGBM
#endif // LIGHTGBM_BOOSTING_RF_H_
#endif // LIGHTGBM_
SRC_
BOOSTING_RF_H
PP
_
src/boosting/score_updater.hpp
View file @
c5c60c8f
...
...
@@ -2,8 +2,8 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_BOOSTING_SCORE_UPDATER_HPP_
#define LIGHTGBM_BOOSTING_SCORE_UPDATER_HPP_
#ifndef LIGHTGBM_
SRC_
BOOSTING_SCORE_UPDATER_HPP_
#define LIGHTGBM_
SRC_
BOOSTING_SCORE_UPDATER_HPP_
#include <LightGBM/dataset.h>
#include <LightGBM/meta.h>
...
...
@@ -125,4 +125,4 @@ class ScoreUpdater {
};
}
// namespace LightGBM
#endif
// L
ightGBM
_BOOSTING_SCORE_UPDATER_HPP_
#endif // L
IGHTGBM_SRC
_BOOSTING_SCORE_UPDATER_HPP_
src/io/dense_bin.hpp
View file @
c5c60c8f
...
...
@@ -3,8 +3,8 @@
* Licensed under the MIT License. See LICENSE file in the project root for
* license information.
*/
#ifndef LIGHTGBM_IO_DENSE_BIN_HPP_
#define LIGHTGBM_IO_DENSE_BIN_HPP_
#ifndef LIGHTGBM_
SRC_
IO_DENSE_BIN_HPP_
#define LIGHTGBM_
SRC_
IO_DENSE_BIN_HPP_
#include <LightGBM/bin.h>
#include <LightGBM/cuda/vector_cudahost.h>
...
...
@@ -646,4 +646,4 @@ BinIterator* DenseBin<VAL_T, IS_4BIT>::GetIterator(
}
}
// namespace LightGBM
#endif // L
ightGBM
_IO_DENSE_BIN_HPP_
#endif // L
IGHTGBM_SRC
_IO_DENSE_BIN_HPP_
src/io/multi_val_dense_bin.hpp
View file @
c5c60c8f
...
...
@@ -2,8 +2,8 @@
* Copyright (c) 2020 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_IO_MULTI_VAL_DENSE_BIN_HPP_
#define LIGHTGBM_IO_MULTI_VAL_DENSE_BIN_HPP_
#ifndef LIGHTGBM_
SRC_
IO_MULTI_VAL_DENSE_BIN_HPP_
#define LIGHTGBM_
SRC_
IO_MULTI_VAL_DENSE_BIN_HPP_
#include <LightGBM/bin.h>
#include <LightGBM/utils/openmp_wrapper.h>
...
...
@@ -356,4 +356,4 @@ MultiValDenseBin<VAL_T>* MultiValDenseBin<VAL_T>::Clone() {
}
// namespace LightGBM
#endif // LIGHTGBM_IO_MULTI_VAL_DENSE_BIN_HPP_
#endif // LIGHTGBM_
SRC_
IO_MULTI_VAL_DENSE_BIN_HPP_
src/io/multi_val_sparse_bin.hpp
View file @
c5c60c8f
...
...
@@ -2,8 +2,8 @@
* Copyright (c) 2020 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_IO_MULTI_VAL_SPARSE_BIN_HPP_
#define LIGHTGBM_IO_MULTI_VAL_SPARSE_BIN_HPP_
#ifndef LIGHTGBM_
SRC_
IO_MULTI_VAL_SPARSE_BIN_HPP_
#define LIGHTGBM_
SRC_
IO_MULTI_VAL_SPARSE_BIN_HPP_
#include <LightGBM/bin.h>
#include <LightGBM/utils/openmp_wrapper.h>
...
...
@@ -445,4 +445,4 @@ MultiValSparseBin<INDEX_T, VAL_T>* MultiValSparseBin<INDEX_T, VAL_T>::Clone() {
}
// namespace LightGBM
#endif // LIGHTGBM_IO_MULTI_VAL_SPARSE_BIN_HPP_
#endif // LIGHTGBM_
SRC_
IO_MULTI_VAL_SPARSE_BIN_HPP_
src/io/parser.hpp
View file @
c5c60c8f
...
...
@@ -2,8 +2,8 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_IO_PARSER_HPP_
#define LIGHTGBM_IO_PARSER_HPP_
#ifndef LIGHTGBM_
SRC_
IO_PARSER_HPP_
#define LIGHTGBM_
SRC_
IO_PARSER_HPP_
#include <LightGBM/dataset.h>
#include <LightGBM/utils/common.h>
...
...
@@ -132,4 +132,4 @@ class LibSVMParser: public Parser {
};
}
// namespace LightGBM
#endif // L
ightGBM
_IO_PARSER_HPP_
#endif // L
IGHTGBM_SRC
_IO_PARSER_HPP_
src/io/sparse_bin.hpp
View file @
c5c60c8f
...
...
@@ -3,8 +3,8 @@
* Licensed under the MIT License. See LICENSE file in the project root for
* license information.
*/
#ifndef LIGHTGBM_IO_SPARSE_BIN_HPP_
#define LIGHTGBM_IO_SPARSE_BIN_HPP_
#ifndef LIGHTGBM_
SRC_
IO_SPARSE_BIN_HPP_
#define LIGHTGBM_
SRC_
IO_SPARSE_BIN_HPP_
#include <LightGBM/bin.h>
#include <LightGBM/utils/log.h>
...
...
@@ -854,4 +854,4 @@ BinIterator* SparseBin<VAL_T>::GetIterator(uint32_t min_bin, uint32_t max_bin,
}
// namespace LightGBM
#endif // L
ightGBM
_IO_SPARSE_BIN_HPP_
#endif // L
IGHTGBM_SRC
_IO_SPARSE_BIN_HPP_
Prev
1
2
3
4
5
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment