Skip to content

Commit

Permalink
src,build: add no user defined deduction guides of CTAD check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
legendecas authored and aduh95 committed Dec 13, 2024
1 parent 7bf983e commit 9fcea1b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions node.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@
'-Wno-unused-parameter',
'-Werror=undefined-inline',
'-Werror=extra-semi',
'-Werror=ctad-maybe-unsupported',
],
},

Expand Down
6 changes: 5 additions & 1 deletion node.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -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': {
Expand Down
2 changes: 1 addition & 1 deletion src/quic/session.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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)};
Expand Down

0 comments on commit 9fcea1b

Please sign in to comment.