Move “using namespace std” statement after inclusion of standard headers

Otherwise clang emits this warning:
 using directive refers to implicitly-defined namespace 'std'
last-simulation-period
Sébastien Villemot 2022-01-06 14:54:57 +01:00
parent 75a26b6d11
commit 0db05a886a
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
12 changed files with 36 additions and 36 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright © 2003-2021 Dynare Team
* Copyright © 2003-2022 Dynare Team
*
* This file is part of Dynare.
*
@ -20,8 +20,6 @@
#ifndef _DATATREE_HH
#define _DATATREE_HH
using namespace std;
#include <string>
#include <map>
#include <vector>
@ -36,6 +34,8 @@ using namespace std;
#include "ExprNode.hh"
#include "SubModel.hh"
using namespace std;
class DataTree
{
public:

View File

@ -1,5 +1,5 @@
/*
* Copyright © 2003-2021 Dynare Team
* Copyright © 2003-2022 Dynare Team
*
* This file is part of Dynare.
*
@ -20,13 +20,13 @@
#ifndef _DYNAMICMODEL_HH
#define _DYNAMICMODEL_HH
using namespace std;
#include <fstream>
#include <filesystem>
#include "StaticModel.hh"
using namespace std;
//! Stores a dynamic model
class DynamicModel : public ModelTree
{

View File

@ -1,6 +1,6 @@
/* -*- C++ -*- */
/*
* Copyright © 2003-2021 Dynare Team
* Copyright © 2003-2022 Dynare Team
*
* This file is part of Dynare.
*
@ -20,11 +20,11 @@
%{
using namespace std;
#include <cstring>
#include "ParsingDriver.hh"
using namespace std;
// Announce to Flex the prototype we want for lexing function
#define YY_DECL \
Dynare::parser::token_type \

View File

@ -1,5 +1,5 @@
/*
* Copyright © 2020-2021 Dynare Team
* Copyright © 2020-2022 Dynare Team
*
* This file is part of Dynare.
*
@ -20,12 +20,12 @@
#ifndef _EQUATION_TAGS_HH
#define _EQUATION_TAGS_HH
using namespace std;
#include <map>
#include <set>
#include <string>
using namespace std;
class EquationTags
{
private:

View File

@ -1,5 +1,5 @@
/*
* Copyright © 2010-2019 Dynare Team
* Copyright © 2010-2022 Dynare Team
*
* This file is part of Dynare.
*
@ -20,13 +20,13 @@
#ifndef _EXTERNALFUNCTIONSTABLE_HH
#define _EXTERNALFUNCTIONSTABLE_HH
using namespace std;
#include <iostream>
#include <string>
#include <vector>
#include <map>
using namespace std;
//! Handles external functions
class ExternalFunctionsTable
{

View File

@ -1,5 +1,5 @@
/*
* Copyright © 2006-2021 Dynare Team
* Copyright © 2006-2022 Dynare Team
*
* This file is part of Dynare.
*
@ -20,8 +20,6 @@
#ifndef _MOD_FILE_HH
#define _MOD_FILE_HH
using namespace std;
#include <ostream>
#include <ctime>
#include <iostream>
@ -40,6 +38,8 @@ using namespace std;
#include "ExtendedPreprocessorTypes.hh"
#include "SubModel.hh"
using namespace std;
//! The abstract representation of a "mod" file
class ModFile
{

View File

@ -1,5 +1,5 @@
/*
* Copyright © 2003-2021 Dynare Team
* Copyright © 2003-2022 Dynare Team
*
* This file is part of Dynare.
*
@ -20,8 +20,6 @@
#ifndef _MODELTREE_HH
#define _MODELTREE_HH
using namespace std;
#include <string>
#include <vector>
#include <deque>
@ -34,6 +32,8 @@ using namespace std;
#include "EquationTags.hh"
#include "ExtendedPreprocessorTypes.hh"
using namespace std;
// Helper to convert a vector into a tuple
template<typename T, size_t... Indices>
auto

View File

@ -1,5 +1,5 @@
/*
* Copyright © 2003-2016 Dynare Team
* Copyright © 2003-2022 Dynare Team
*
* This file is part of Dynare.
*
@ -20,12 +20,12 @@
#ifndef _NUMERICALCONSTANTS_HH
#define _NUMERICALCONSTANTS_HH
using namespace std;
#include <string>
#include <vector>
#include <map>
using namespace std;
//! Handles non-negative numerical constants
class NumericalConstants
{

View File

@ -1,5 +1,5 @@
/*
* Copyright © 2003-2021 Dynare Team
* Copyright © 2003-2022 Dynare Team
*
* This file is part of Dynare.
*
@ -20,8 +20,6 @@
#ifndef _NUMERICALINITIALIZATION_HH
#define _NUMERICALINITIALIZATION_HH
using namespace std;
#include <string>
#include <vector>
#include <map>
@ -30,6 +28,8 @@ using namespace std;
#include "ExprNode.hh"
#include "Statement.hh"
using namespace std;
class InitParamStatement : public Statement
{
private:

View File

@ -1,5 +1,5 @@
/*
* Copyright © 2003-2021 Dynare Team
* Copyright © 2003-2022 Dynare Team
*
* This file is part of Dynare.
*
@ -20,8 +20,6 @@
#ifndef _SHOCKS_HH
#define _SHOCKS_HH
using namespace std;
#include <string>
#include <vector>
#include <map>
@ -30,6 +28,8 @@ using namespace std;
#include "SymbolTable.hh"
#include "ExprNode.hh"
using namespace std;
class AbstractShocksStatement : public Statement
{
public:

View File

@ -1,5 +1,5 @@
/*
* Copyright © 2003-2020 Dynare Team
* Copyright © 2003-2022 Dynare Team
*
* This file is part of Dynare.
*
@ -20,13 +20,13 @@
#ifndef _STATIC_MODEL_HH
#define _STATIC_MODEL_HH
using namespace std;
#include <fstream>
#include <filesystem>
#include "ModelTree.hh"
using namespace std;
class DynamicModel;
//! Stores a static model, as derived from the "model" block when leads and lags have been removed

View File

@ -1,5 +1,5 @@
/*
* Copyright © 2003-2021 Dynare Team
* Copyright © 2003-2022 Dynare Team
*
* This file is part of Dynare.
*
@ -20,8 +20,6 @@
#ifndef _SYMBOLTABLE_HH
#define _SYMBOLTABLE_HH
using namespace std;
#include <map>
#include <string>
#include <utility>
@ -32,6 +30,8 @@ using namespace std;
#include "CodeInterpreter.hh"
#include "ExprNode.hh"
using namespace std;
using expr_t = class ExprNode *;
//! Types of auxiliary variables