src,build: add no user defined deduction guides of CTAD check

PR-URL: https://github.com/nodejs/node/pull/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>
pull/56123/head
Chengzhong Wu 2024-12-06 09:44:11 +00:00 committed by GitHub
parent 9cd9f43460
commit 4211ab56cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 2 deletions

View File

@ -482,6 +482,7 @@
'-Wno-unused-parameter',
'-Werror=undefined-inline',
'-Werror=extra-semi',
'-Werror=ctad-maybe-unsupported',
],
},

View File

@ -27,7 +27,11 @@
'conditions': [
[ 'clang==1', {
'cflags': [ '-Werror=undefined-inline', '-Werror=extra-semi']
'cflags': [
'-Werror=undefined-inline',
'-Werror=extra-semi',
'-Werror=ctad-maybe-unsupported',
],
}],
[ '"<(_type)"=="executable"', {
'msvs_settings': {

View File

@ -1531,7 +1531,7 @@ void Session::EmitDatagram(Store&& datagram, DatagramReceivedFlags flag) {
DCHECK(!is_destroyed());
if (!env()->can_call_into_js()) return;
CallbackScope cbv_scope(this);
CallbackScope<Session> cbv_scope(this);
Local<Value> argv[] = {datagram.ToUint8Array(env()),
v8::Boolean::New(env()->isolate(), flag.early)};