Skip to content

node-api: format Node-API related code

Format Node-API related source files using Clang Format.

There are no code changes besides the code formatting.

When we work on changes to Node-API it is very difficult to write code that satisfies the lint-cpp requirements because most of code is not formatted correctly. So, we often need to write new code, format file, copy new code, undo formatting, and then paste the new code. Instead, we must simplify the development process by allowing the code formatting that uses Clang Format and the .clang-format specification in the root of the Node.JS project. This PR updates formatting of Node-API related files so that in future developers could simply format the whole file after implementing a change. Ideally, the lint-cpp must verify that all changed files are formatted correctly per .clang-format specification.

Merge request reports

Loading