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
......@@ -7,6 +7,8 @@
#include <Eigen/Dense>
#include <algorithm>
#include <memory>
#include <vector>
namespace LightGBM {
......
......@@ -10,10 +10,13 @@
#include <LightGBM/utils/common.h>
#include <algorithm>
#include <memory>
#include <queue>
#include <set>
#include <string>
#include <unordered_map>
#include <utility>
#include <vector>
#include "cost_effective_gradient_boosting.hpp"
......
......@@ -4,6 +4,8 @@
*/
#include <LightGBM/tree_learner.h>
#include <string>
#include "gpu_tree_learner.h"
#include "linear_tree_learner.h"
#include "parallel_tree_learner.h"
......
......@@ -4,7 +4,9 @@
*/
#include <LightGBM/utils/common.h>
#include <algorithm>
#include <cstring>
#include <functional>
#include <tuple>
#include <vector>
......
......@@ -8,6 +8,7 @@
#include <LightGBM/utils/array_args.h>
#include <random>
#include <vector>
using LightGBM::data_size_t;
using LightGBM::score_t;
......
......@@ -10,6 +10,7 @@
#include <cmath>
#include <cstdlib>
#include <vector>
using LightGBM::ArrowChunkedArray;
using LightGBM::ArrowTable;
......
......@@ -6,6 +6,7 @@
#include <gtest/gtest.h>
#include <LightGBM/utils/byte_buffer.h>
#include <memory>
#include <random>
using LightGBM::ByteBuffer;
......
......@@ -5,6 +5,9 @@
* Author: Alberto Ferreira
*/
#include <gtest/gtest.h>
#include <vector>
#include "../include/LightGBM/utils/chunked_array.hpp"
using LightGBM::ChunkedArray;
......
......@@ -11,6 +11,7 @@
#include <LightGBM/dataset.h>
#include <iostream>
#include <string>
using LightGBM::ByteBuffer;
using LightGBM::Dataset;
......
......@@ -7,8 +7,10 @@
#include <testutils.h>
#include <LightGBM/c_api.h>
#include <iostream>
#include <algorithm>
#include <fstream>
#include <iostream>
#include <vector>
using LightGBM::TestUtils;
......
......@@ -10,6 +10,8 @@
#include <LightGBM/dataset.h>
#include <iostream>
#include <string>
#include <vector>
using LightGBM::Dataset;
using LightGBM::Log;
......
......@@ -3,14 +3,15 @@
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#include <gtest/gtest.h>
#include <testutils.h>
#include <LightGBM/c_api.h>
#include <LightGBM/utils/random.h>
#include <gtest/gtest.h>
#include <string>
#include <thread>
#include <utility>
#include <vector>
using LightGBM::Log;
using LightGBM::Random;
......
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