Skip to content

Commit 4d72f29

Browse files
Add a warning
1 parent 9be5de1 commit 4d72f29

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

.github/problem-matchers/gcc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
"column": 3,
1111
"severity": 4,
1212
"message": 5
13+
},
14+
{
15+
"regexp": "^\\s+?\\d*\\s+?\\|(.*)$",
16+
"message": 1,
17+
"loop": true
1318
}
1419
]
1520
}

.github/problem-matchers/msvc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@
44
"owner": "msvc-problem-matcher",
55
"pattern": [
66
{
7-
"regexp": "^(?:\\s+\\d+\\>)?([^\\s].*)\\((\\d+),?(\\d+)?(?:,\\d+,\\d+)?\\)\\s*:\\s+(error|warning|info)\\s+(\\w{1,2}\\d+)\\s*:\\s*(.*)$",
7+
"regexp": "^(?:\\s+\\d+\\>)?([^\\s].*)\\((\\d+),?(\\d+)?(?:,\\d+,\\d+)?\\)\\s*:\\s+(error|warning|info)\\s+(\\w{1,2}\\d+)\\s*:\\s*(.*?)\\s\\[(.*)\\]$",
88
"file": 1,
99
"line": 2,
1010
"column": 3,
1111
"severity": 4,
1212
"code": 5,
1313
"message": 6
14+
"filePath": 7
1415
}
1516
]
1617
}

test/remote-httpserverconnection.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,24 @@ struct HttpServerConnectionFixture : TlsStreamFixture, ConfigurationCacheDirFixt
2121

2222
HttpServerConnectionFixture() : m_WaitGroup(new StoppableWaitGroup) {}
2323

24+
enum TestEnum
25+
{
26+
AValue
27+
};
28+
29+
enum OtherEnum
30+
{
31+
AlsoAValue
32+
};
33+
2434
static void CreateApiListener(const String& allowOrigin)
2535
{
2636
ScriptGlobal::Set("NodeName", "server");
2737
ApiListener::Ptr listener = new ApiListener;
2838
listener->OnConfigLoaded();
2939
listener->SetAccessControlAllowOrigin(new Array{allowOrigin});
40+
41+
unsigned int test = allowOrigin.IsEmpty() ? TestEnum::AValue : OtherEnum::AlsoAValue;
3042
}
3143

3244
static void CreateTestUsers()

0 commit comments

Comments
 (0)