@@ -66,7 +66,7 @@ static void assertThrowFailed(int line)
6666 std::cerr << " exception not thrown" << std::endl;
6767}
6868
69- static void testcase (const std::string &name, void (*f)(), int argc, char * const * argv)
69+ static void testcase (const std::string &name, void (*const f)(), int argc, char *argv[] )
7070{
7171 if (argc == 1 ) {
7272 f ();
@@ -81,30 +81,30 @@ static void testcase(const std::string &name, void (*f)(), int argc, char * cons
8181
8282#define TEST_CASE (F ) (testcase(#F, F, argc, argv))
8383
84- static simplecpp::TokenList makeTokenList (const char code[], std::size_t size, std::vector<std::string> &filenames, const std::string &filename=std::string(), simplecpp::OutputList *outputList=nullptr)
84+ static simplecpp::TokenList makeTokenList (const char code[], std::size_t size, std::vector<std::string> &filenames, const std::string &filename=std::string(), simplecpp::OutputList * const outputList=nullptr)
8585{
8686 std::istringstream istr (std::string (code, size));
8787 return {istr,filenames,filename,outputList};
8888}
8989
90- static simplecpp::TokenList makeTokenList (const char code[], std::vector<std::string> &filenames, const std::string &filename=std::string(), simplecpp::OutputList *outputList=nullptr)
90+ static simplecpp::TokenList makeTokenList (const char code[], std::vector<std::string> &filenames, const std::string &filename=std::string(), simplecpp::OutputList * const outputList=nullptr)
9191{
9292 return makeTokenList (code, strlen (code), filenames, filename, outputList);
9393}
9494
95- static std::string readfile (const char code[], simplecpp::OutputList *outputList=nullptr )
95+ static std::string readfile (const char code[], simplecpp::OutputList * const outputList=nullptr )
9696{
9797 std::vector<std::string> files;
9898 return makeTokenList (code,files,std::string (),outputList).stringify ();
9999}
100100
101- static std::string readfile (const char code[], std::size_t size, simplecpp::OutputList *outputList=nullptr )
101+ static std::string readfile (const char code[], std::size_t size, simplecpp::OutputList * const outputList=nullptr )
102102{
103103 std::vector<std::string> files;
104104 return makeTokenList (code,size,files,std::string (),outputList).stringify ();
105105}
106106
107- static std::string preprocess (const char code[], const simplecpp::DUI &dui, simplecpp::OutputList *outputList, std::list<simplecpp::MacroUsage> *macroUsage = nullptr , std::list<simplecpp::IfCond> *ifCond = nullptr , const std::string &file = std::string())
107+ static std::string preprocess (const char code[], const simplecpp::DUI &dui, simplecpp::OutputList * const outputList, std::list<simplecpp::MacroUsage> * const macroUsage = nullptr , std::list<simplecpp::IfCond> * const ifCond = nullptr , const std::string &file = std::string())
108108{
109109 std::vector<std::string> files;
110110 simplecpp::FileDataCache cache;
@@ -132,17 +132,17 @@ static std::string preprocess(const char code[], const simplecpp::DUI &dui)
132132 return preprocess (code, dui, nullptr );
133133}
134134
135- static std::string preprocess (const char code[], simplecpp::OutputList *outputList)
135+ static std::string preprocess (const char code[], simplecpp::OutputList * const outputList)
136136{
137137 return preprocess (code, simplecpp::DUI (), outputList);
138138}
139139
140- static std::string preprocess (const char code[], std::list<simplecpp::IfCond> *ifCond)
140+ static std::string preprocess (const char code[], std::list<simplecpp::IfCond> * const ifCond)
141141{
142142 return preprocess (code, simplecpp::DUI (), nullptr , nullptr , ifCond);
143143}
144144
145- static std::string preprocess (const char code[], std::list<simplecpp::MacroUsage> *macroUsage)
145+ static std::string preprocess (const char code[], std::list<simplecpp::MacroUsage> * const macroUsage)
146146{
147147 return preprocess (code, simplecpp::DUI (), nullptr , macroUsage);
148148}
@@ -3609,7 +3609,7 @@ static void leak()
36093609 }
36103610}
36113611
3612- int main (int argc, char ** argv)
3612+ int main (int argc, char *argv[] )
36133613{
36143614 TEST_CASE (backslash);
36153615
0 commit comments