Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nodejs/node-v0.x-archive
base: 58159e308b23
Choose a base ref
...
head repository: nodejs/node-v0.x-archive
compare: 02cab9749069
Choose a head ref
  • 2 commits
  • 23 files changed
  • 1 contributor

Commits on Jul 31, 2013

  1. tools: cpplint: fix up build/include_order rule

    Change the build/include_order rule to match our preference:
    project headers before system headers.
    
    The rationale is that system headers before project headers makes it
    easy to slip in bugs where a project header that requires a definition
    from a system header, forgets to include the system header but still
    compiles because the source files that include the project header
    coincidentally include the system header too.
    
    A good example is the size_t type. A project header file that needs the
    definition of size_t should include stddef.h but forgetting to do so
    will probably go unnoticed for a long time because almost every other
    system header includes stddef.h (either directly or indirectly) and
    almost every source file includes one or more system headers.
    
    Ergo, project headers before system headers. It's a good thing.
    bnoordhuis committed Jul 31, 2013
    Copy the full SHA
    847c6d9 View commit details
    Browse the repository at this point in the history
  2. src: more lint after cpplint tightening

    Commit 847c6d9 adds a 'project headers before system headers' check
    to cpplint. Update the files in src/ to make the linter pass again.
    bnoordhuis committed Jul 31, 2013
    Copy the full SHA
    02cab97 View commit details
    Browse the repository at this point in the history