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

[c++][ci] fix `include_what_you_use` errors from cpplint (#7052)



* dev

* dev

* dev

* Update static_analysis.yml

* Update .pre-commit-config.yaml

---------
Co-authored-by: default avatarJames Lamb <jaylamb20@gmail.com>
parent 1f3e3837
......@@ -27,6 +27,10 @@
#include <cstdio>
#include <cstdlib>
#include <limits>
#include <memory>
#include <string>
#include <utility>
#include <vector>
namespace json11_internal_lightgbm {
......
......@@ -7,6 +7,7 @@
#include <set>
#include <string>
#include <unordered_map>
#include <vector>
namespace LightGBM {
......
......@@ -4,11 +4,12 @@
*/
#include "parser.hpp"
#include <functional>
#include <string>
#include <algorithm>
#include <functional>
#include <map>
#include <memory>
#include <string>
#include <vector>
namespace LightGBM {
......
......@@ -6,6 +6,10 @@
#include <LightGBM/train_share_states.h>
#include <algorithm>
#include <memory>
#include <vector>
namespace LightGBM {
MultiValBinWrapper::MultiValBinWrapper(MultiValBin* bin, data_size_t num_data,
......
......@@ -8,9 +8,13 @@
#include <LightGBM/utils/common.h>
#include <LightGBM/utils/threading.h>
#include <algorithm>
#include <functional>
#include <iomanip>
#include <sstream>
#include <string>
#include <unordered_map>
#include <vector>
namespace LightGBM {
......
......@@ -5,6 +5,7 @@
#include <LightGBM/application.h>
#include <iostream>
#include <string>
#ifdef USE_MPI
#include "network/linkers.h"
......
......@@ -8,6 +8,8 @@
#include "cuda_binary_metric.hpp"
#include <vector>
namespace LightGBM {
CUDABinaryLoglossMetric::CUDABinaryLoglossMetric(const Config& config):
......
......@@ -4,6 +4,8 @@
*/
#include <LightGBM/metric.h>
#include <string>
#include "binary_metric.hpp"
#include "map_metric.hpp"
#include "multiclass_metric.hpp"
......
......@@ -6,6 +6,8 @@
#include "linkers.h"
#include <iostream>
namespace LightGBM {
Linkers::Linkers(Config) {
......
......@@ -11,6 +11,7 @@
#include <algorithm>
#include <chrono>
#include <cstring>
#include <memory>
#include <string>
#include <thread>
#include <unordered_map>
......
......@@ -6,8 +6,11 @@
#include <LightGBM/utils/common.h>
#include <algorithm>
#include <cstdlib>
#include <cstring>
#include <memory>
#include <vector>
#include "linkers.h"
......
......@@ -4,6 +4,8 @@
*/
#include <LightGBM/objective_function.h>
#include <string>
#include "binary_objective.hpp"
#include "multiclass_objective.hpp"
#include "rank_objective.hpp"
......
......@@ -7,6 +7,7 @@
#ifdef USE_CUDA
#include <algorithm>
#include <vector>
#include "cuda_best_split_finder.hpp"
#include "cuda_leaf_splits.hpp"
......
......@@ -13,6 +13,7 @@
#include <LightGBM/cuda/cuda_rocm_interop.h>
#include <algorithm>
#include <vector>
namespace LightGBM {
......
......@@ -8,6 +8,7 @@
#include <algorithm>
#include <memory>
#include <vector>
#include "cuda_data_partition.hpp"
......
......@@ -9,6 +9,7 @@
#include "cuda_histogram_constructor.hpp"
#include <algorithm>
#include <vector>
namespace LightGBM {
......
......@@ -16,6 +16,7 @@
#include <algorithm>
#include <memory>
#include <vector>
namespace LightGBM {
......
......@@ -2,6 +2,7 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#include <algorithm>
#include <cstring>
#include <tuple>
#include <vector>
......
......@@ -6,6 +6,9 @@
#include "feature_histogram.hpp"
#include <algorithm>
#include <vector>
namespace LightGBM {
void FeatureHistogram::FuncForCategorical() {
......
......@@ -11,6 +11,11 @@
#include <LightGBM/utils/array_args.h>
#include <algorithm>
#include <cstdio>
#include <iostream>
#include <memory>
#include <string>
#include <vector>
#include "../io/dense_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