Skip to content

Commit 1fb9fed

Browse files
committed
Fix clang-tidy issues
1 parent 942d254 commit 1fb9fed

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

test.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
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");

0 commit comments

Comments
 (0)