Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src: fix aliased buffer import warning in node_perf_common.h #35436

Closed
wants to merge 0 commits into from

Conversation

yashLadha
Copy link
Contributor

@yashLadha yashLadha commented Oct 1, 2020

Alliased buffer header is not imported in the node_perf_common.h file due to which
the language server is giving an error.

Fixed it via importing the header file for "aliased_buffer.h"

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

@nodejs-github-bot nodejs-github-bot added the c++ Issues and PRs that require attention from people who are familiar with C++. label Oct 1, 2020
@@ -1,6 +1,7 @@
#ifndef SRC_NODE_PERF_COMMON_H_
#define SRC_NODE_PERF_COMMON_H_

#include "aliased_buffer.h"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you put this before the #include "node.h" line below?

Copy link
Contributor Author

@yashLadha yashLadha Oct 1, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, but any particular reason for this changes? Is it because of the NODE_WANT_INTERNALS?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yashLadha Yes in case anyone including this header accidentally include headers they don't want (there aren't any in aliased_buffer.h for now, but it could be if we don't follow this pattern :) like what this PR used to do)

@yashLadha yashLadha changed the title src: fix aliased buffer import warning in env.h src: fix aliased buffer import warning in node_perf_common.h Oct 1, 2020
@lpinca lpinca added the request-ci Add this label to start a Jenkins CI on a PR. label Oct 5, 2020
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Oct 5, 2020
@nodejs-github-bot
Copy link
Collaborator

Trott pushed a commit to Trott/io.js that referenced this pull request Oct 5, 2020
Alliased buffer header is not imported in the `env.h` file due to which
the language server is giving an error.

Fixed it via importing the header file for "aliased_buffer.h"

PR-URL: nodejs#35436
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
@Trott Trott closed this Oct 5, 2020
@Trott
Copy link
Member

Trott commented Oct 5, 2020

Landed in e4dc7f7

@yashLadha yashLadha deleted the fix/aliased_buffer_import branch October 5, 2020 13:07
@danielleadams danielleadams mentioned this pull request Oct 6, 2020
danielleadams pushed a commit that referenced this pull request Oct 6, 2020
Alliased buffer header is not imported in the `env.h` file due to which
the language server is giving an error.

Fixed it via importing the header file for "aliased_buffer.h"

PR-URL: #35436
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
joesepi pushed a commit to joesepi/node that referenced this pull request Jan 8, 2021
Alliased buffer header is not imported in the `env.h` file due to which
the language server is giving an error.

Fixed it via importing the header file for "aliased_buffer.h"

PR-URL: nodejs#35436
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ Issues and PRs that require attention from people who are familiar with C++.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants