Skip to content

Commit 4211ab5

Browse files
authored
src,build: add no user defined deduction guides of CTAD check
PR-URL: #56071 Refs: https://google.github.io/styleguide/cppguide.html#CTAD Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 9cd9f43 commit 4211ab5

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

node.gyp

+1
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,7 @@
482482
'-Wno-unused-parameter',
483483
'-Werror=undefined-inline',
484484
'-Werror=extra-semi',
485+
'-Werror=ctad-maybe-unsupported',
485486
],
486487
},
487488

node.gypi

+5-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@
2727

2828
'conditions': [
2929
[ 'clang==1', {
30-
'cflags': [ '-Werror=undefined-inline', '-Werror=extra-semi']
30+
'cflags': [
31+
'-Werror=undefined-inline',
32+
'-Werror=extra-semi',
33+
'-Werror=ctad-maybe-unsupported',
34+
],
3135
}],
3236
[ '"<(_type)"=="executable"', {
3337
'msvs_settings': {

src/quic/session.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1531,7 +1531,7 @@ void Session::EmitDatagram(Store&& datagram, DatagramReceivedFlags flag) {
15311531
DCHECK(!is_destroyed());
15321532
if (!env()->can_call_into_js()) return;
15331533

1534-
CallbackScope cbv_scope(this);
1534+
CallbackScope<Session> cbv_scope(this);
15351535

15361536
Local<Value> argv[] = {datagram.ToUint8Array(env()),
15371537
v8::Boolean::New(env()->isolate(), flag.early)};

0 commit comments

Comments
 (0)