File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313#include < sstream>
1414#include < stdexcept>
1515#include < string>
16+ #include < utility>
1617#include < vector>
1718
1819#define STRINGIZE_ (x ) #x
@@ -2093,7 +2094,7 @@ static void circularInclude()
20932094 simplecpp::FileDataCache cache;
20942095
20952096 {
2096- const char *path = " test.h" ;
2097+ const char *const path = " test.h" ;
20972098 const char code[] =
20982099 " #ifndef TEST_H\n "
20992100 " #define TEST_H\n "
@@ -2104,7 +2105,7 @@ static void circularInclude()
21042105 }
21052106
21062107 {
2107- const char *path = " a/a.h" ;
2108+ const char *const path = " a/a.h" ;
21082109 const char code[] =
21092110 " #ifndef A_H\n "
21102111 " #define A_H\n "
@@ -2117,7 +2118,7 @@ static void circularInclude()
21172118 simplecpp::OutputList outputList;
21182119 {
21192120 std::vector<std::string> filenames;
2120- simplecpp::DUI dui;
2121+ const simplecpp::DUI dui;
21212122
21222123 const char code[] = " #include \" test.h\"\n " ;
21232124 const simplecpp::TokenList rawtokens = makeTokenList (code, files, " test.cpp" );
You can’t perform that action at this time.
0 commit comments