@@ -90,7 +90,7 @@ static void assertThrowFailed(int line)
9090 std::cerr << " exception not thrown" << std::endl;
9191}
9292
93- static void testcase (const std::string &name, void (*f)(), int argc, char * const * argv)
93+ static void testcase (const std::string &name, void (*const f)(), int argc, char *argv[] )
9494{
9595 if (argc == 1 ) {
9696 f ();
@@ -105,7 +105,7 @@ static void testcase(const std::string &name, void (*f)(), int argc, char * cons
105105
106106#define TEST_CASE (F ) (testcase(#F, F, argc, argv))
107107
108- 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)
108+ 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)
109109{
110110 switch (USE_INPUT ) {
111111 case Input::Stringstream: {
@@ -119,24 +119,24 @@ static simplecpp::TokenList makeTokenList(const char code[], std::size_t size, s
119119 return simplecpp::TokenList{filenames}; // unreachable - needed for GCC and Visual Studio
120120}
121121
122- static simplecpp::TokenList makeTokenList (const char code[], std::vector<std::string> &filenames, const std::string &filename=std::string(), simplecpp::OutputList *outputList=nullptr)
122+ static simplecpp::TokenList makeTokenList (const char code[], std::vector<std::string> &filenames, const std::string &filename=std::string(), simplecpp::OutputList * const outputList=nullptr)
123123{
124124 return makeTokenList (code, strlen (code), filenames, filename, outputList);
125125}
126126
127- static std::string readfile (const char code[], simplecpp::OutputList *outputList=nullptr )
127+ static std::string readfile (const char code[], simplecpp::OutputList * const outputList=nullptr )
128128{
129129 std::vector<std::string> files;
130130 return makeTokenList (code,files,std::string (),outputList).stringify ();
131131}
132132
133- static std::string readfile (const char code[], std::size_t size, simplecpp::OutputList *outputList=nullptr )
133+ static std::string readfile (const char code[], std::size_t size, simplecpp::OutputList * const outputList=nullptr )
134134{
135135 std::vector<std::string> files;
136136 return makeTokenList (code,size,files,std::string (),outputList).stringify ();
137137}
138138
139- static std::string preprocess (const char code[], std::size_t size, 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())
139+ static std::string preprocess (const char code[], std::size_t size, 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())
140140{
141141 std::vector<std::string> files;
142142 simplecpp::FileDataCache cache;
@@ -169,7 +169,7 @@ static std::string preprocess(const char code[], const simplecpp::DUI &dui)
169169 return preprocess (code, dui, nullptr );
170170}
171171
172- static std::string preprocess (const char code[], simplecpp::OutputList *outputList)
172+ static std::string preprocess (const char code[], simplecpp::OutputList * const outputList)
173173{
174174 return preprocess (code, simplecpp::DUI (), outputList);
175175}
@@ -179,12 +179,12 @@ static std::string preprocess(const char code[], std::size_t size, simplecpp::Ou
179179 return preprocess (code, size, simplecpp::DUI (), outputList);
180180}
181181
182- static std::string preprocess (const char code[], std::list<simplecpp::IfCond> *ifCond)
182+ static std::string preprocess (const char code[], std::list<simplecpp::IfCond> * const ifCond)
183183{
184184 return preprocess (code, simplecpp::DUI (), nullptr , nullptr , ifCond);
185185}
186186
187- static std::string preprocess (const char code[], std::list<simplecpp::MacroUsage> *macroUsage)
187+ static std::string preprocess (const char code[], std::list<simplecpp::MacroUsage> * const macroUsage)
188188{
189189 return preprocess (code, simplecpp::DUI (), nullptr , macroUsage);
190190}
@@ -4052,7 +4052,7 @@ static void leak()
40524052 }
40534053}
40544054
4055- static void runTests (int argc, char ** argv, Input input)
4055+ static void runTests (int argc, char *argv[] , Input input)
40564056{
40574057 USE_INPUT = input;
40584058
@@ -4360,7 +4360,7 @@ static void runTests(int argc, char **argv, Input input)
43604360 TEST_CASE (leak);
43614361}
43624362
4363- int main (int argc, char ** argv)
4363+ int main (int argc, char *argv[] )
43644364{
43654365 runTests (argc, argv, Input::Stringstream);
43664366 runTests (argc, argv, Input::CharBuffer);
0 commit comments