You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 347c1c2
Browse filesBrowse the repository at this point in the historyBrowse files
A `.cpp2` is emitted as a `.cpp` that contains two parts: Cpp2 declarations in-place interleaved where declared in the Cpp1 source, then all the Cpp2 definitions. This is what gives Cpp2 order-independent semantics.
A `.h2` is emitted the same way, but:
- authoring: split into two files (`.h` for the declarations and Cpp1 source, `.hpp` for the definitions)
- consumption: any `#include "something.h2"` is emitted as an `#include "something.h"` in its original location relative to the Cpp1 source, and an `#include "something.hpp"` at the beginning of the Cpp2 definitions section
0 commit comments