Skip to content

Commit

Permalink
Document the preference of "#include <cxxx>" over "#include <xxx.h>" …
Browse files Browse the repository at this point in the history
…when including C compatibility headers
  • Loading branch information
practicalswift committed Sep 7, 2017
1 parent 514e62b commit 2942efa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/developer-notes.md
Expand Up @@ -441,6 +441,8 @@ Source code organization
failures when those indirect dependencies change. Furthermore, it obscures what the real code
dependencies are.
- Use `#include <cxxx>` instead of the deprecated form `#include <xxx.h>` when including C compatibility headers (such as `<cstdint>`, `<cstdlib>`, `<cstring>`, etc.).
- Don't import anything into the global namespace (`using namespace ...`). Use
fully specified types such as `std::string`.
Expand Down

0 comments on commit 2942efa

Please sign in to comment.