Files
cppdraft_translate/cppdraft/lex/separate.md
2025-10-25 03:02:53 +03:00

1.3 KiB

[lex.separate]

5 Lexical conventions [lex]

5.1 Separate translation [lex.separate]

1

#

The text of the program is kept in units calledsource files in this document.

A source file together with all the and source files included via the preprocessing directive #include, less any source lines skipped by any of the conditional inclusion ([cpp.cond]) preprocessing directives, as modified by the implementation-defined behavior of any conditionally-supported-directives ([cpp.pre]) and pragmas ([cpp.pragma]), if any, is called a preprocessing translation unit.

[Note 1:

A C++ program need not all be translated at the same time.

Translation units can be separately translated and then later linked to produce an executable program ([basic.link]).

— end note]