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

fixed cpplint error about namespace using-directives (#2836)

parent ad83e8f4
...@@ -13,10 +13,10 @@ ...@@ -13,10 +13,10 @@
#include <LightGBM/json11.hpp> #include <LightGBM/json11.hpp>
using namespace json11;
namespace LightGBM { namespace LightGBM {
using json11::Json;
/*! \brief forward declaration */ /*! \brief forward declaration */
class Tree; class Tree;
class Dataset; class Dataset;
......
...@@ -24,10 +24,10 @@ ...@@ -24,10 +24,10 @@
#include <LightGBM/json11.hpp> #include <LightGBM/json11.hpp>
#include "score_updater.hpp" #include "score_updater.hpp"
using namespace json11;
namespace LightGBM { namespace LightGBM {
using json11::Json;
/*! /*!
* \brief GBDT algorithm implementation. including Training, prediction, bagging. * \brief GBDT algorithm implementation. including Training, prediction, bagging.
*/ */
......
...@@ -13,10 +13,10 @@ ...@@ -13,10 +13,10 @@
#include <LightGBM/json11.hpp> #include <LightGBM/json11.hpp>
using namespace json11;
namespace LightGBM { namespace LightGBM {
using json11::Json;
DatasetLoader::DatasetLoader(const Config& io_config, const PredictFunction& predict_fun, int num_class, const char* filename) 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) { :config_(io_config), random_(config_.data_random_seed), predict_fun_(predict_fun), num_class_(num_class) {
label_idx_ = 0; label_idx_ = 0;
......
...@@ -34,10 +34,10 @@ ...@@ -34,10 +34,10 @@
#include <boost/compute/container/vector.hpp> #include <boost/compute/container/vector.hpp>
#include <boost/align/aligned_allocator.hpp> #include <boost/align/aligned_allocator.hpp>
using namespace json11;
namespace LightGBM { namespace LightGBM {
using json11::Json;
/*! /*!
* \brief GPU-based parallel learning algorithm. * \brief GPU-based parallel learning algorithm.
*/ */
......
...@@ -30,9 +30,10 @@ ...@@ -30,9 +30,10 @@
#include <boost/align/aligned_allocator.hpp> #include <boost/align/aligned_allocator.hpp>
#endif #endif
using namespace json11;
namespace LightGBM { namespace LightGBM {
using json11::Json;
/*! \brief forward declaration */ /*! \brief forward declaration */
class CostEfficientGradientBoosting; class CostEfficientGradientBoosting;
/*! /*!
......
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