Bytecode: port to C++11 using keyword

Performed using modernize-use-using from clang-tidy.

https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-using.html
time-shift
Sébastien Villemot 2021-02-01 13:54:38 +01:00
parent 47357bb432
commit f9f50ff19a
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
2 changed files with 5 additions and 5 deletions

View File

@ -153,8 +153,8 @@ using namespace std;
const int NO_ERROR_ON_EXIT = 0;
const int ERROR_ON_EXIT = 1;
typedef vector<pair<Tags, void * >> code_liste_type;
typedef code_liste_type::const_iterator it_code_type;
using code_liste_type = vector<pair<Tags, void *>>;
using it_code_type = code_liste_type::const_iterator;
class GeneralExceptionHandling
{
@ -282,8 +282,8 @@ struct table_conditional_local_type
int var_exo, var_endo;
double constrained_value;
};
typedef vector<table_conditional_local_type> vector_table_conditional_local_type;
typedef map< int, vector_table_conditional_local_type > table_conditional_global_type;
using vector_table_conditional_local_type = vector<table_conditional_local_type>;
using table_conditional_global_type = map<int, vector_table_conditional_local_type>;
#ifdef MATLAB_MEX_FILE
extern "C" bool utIsInterruptPending();
#endif

View File

@ -37,7 +37,7 @@ struct NonZeroElem
NonZeroElem *NZE_R_N, *NZE_C_N;
};
typedef vector<NonZeroElem *> v_NonZeroElem;
using v_NonZeroElem = vector<NonZeroElem *>;
class Mem_Mngr
{