Skip to content
Vladislav Ivanishin edited this page Mar 14, 2016 · 6 revisions

In general, V8 should conform to Google's/Chrome's C++ Style Guide for new code that is written. Your V8 code should conform to them as much as possible. There will always be cases where Google/Chrome Style Guide conformity or Google/Chrome best practices are extremely cumbersome or underspecified for our use cases. We document these exceptions here.

LLV8 also strives to conform to the Style Guide. Any new patches must conform. Some of the older code should be refactored.

You can find the presubmit checks helpful:

tools/presubmit.py

The presubmit script uses a linter from Google, cpplint.py. It can be obtained from here.