Skip to content

Commit

Permalink
fixed cpplint error about namespace using-directives (#2836)
Browse files Browse the repository at this point in the history
  • Loading branch information
StrikerRUS authored Feb 28, 2020
1 parent ad83e8f commit 53137e2
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions include/LightGBM/tree_learner.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@

#include <LightGBM/json11.hpp>

using namespace json11;

namespace LightGBM {

using json11::Json;

/*! \brief forward declaration */
class Tree;
class Dataset;
Expand Down
4 changes: 2 additions & 2 deletions src/boosting/gbdt.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
#include <LightGBM/json11.hpp>
#include "score_updater.hpp"

using namespace json11;

namespace LightGBM {

using json11::Json;

/*!
* \brief GBDT algorithm implementation. including Training, prediction, bagging.
*/
Expand Down
4 changes: 2 additions & 2 deletions src/io/dataset_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@

#include <LightGBM/json11.hpp>

using namespace json11;

namespace LightGBM {

using json11::Json;

DatasetLoader::DatasetLoader(const Config& io_config, const PredictFunction& predict_fun, int num_class, const char* filename)
:config_(io_config), random_(config_.data_random_seed), predict_fun_(predict_fun), num_class_(num_class) {
label_idx_ = 0;
Expand Down
4 changes: 2 additions & 2 deletions src/treelearner/gpu_tree_learner.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
#include <boost/compute/container/vector.hpp>
#include <boost/align/aligned_allocator.hpp>

using namespace json11;

namespace LightGBM {

using json11::Json;

/*!
* \brief GPU-based parallel learning algorithm.
*/
Expand Down
5 changes: 3 additions & 2 deletions src/treelearner/serial_tree_learner.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@
#include <boost/align/aligned_allocator.hpp>
#endif

using namespace json11;

namespace LightGBM {

using json11::Json;

/*! \brief forward declaration */
class CostEfficientGradientBoosting;
/*!
Expand Down

0 comments on commit 53137e2

Please sign in to comment.