Skip to content

Commit 274bb3f

Browse files
committed
Clang release notes: mention the max_tokens_here pragma
1 parent 2ec7739 commit 274bb3f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,10 @@ Modified Compiler Flags
311311
New Pragmas in Clang
312312
--------------------
313313

314-
- ...
314+
- The ``clang max_tokens_here`` pragma can be used together with
315+
`-Wmax-tokens <DiagnosticsReference.html#wmax-tokens>`_ to emit a warning when
316+
the number of preprocessor tokens exceeds a limit. Such limits can be helpful
317+
in limiting code growth and slow compiles due to large header files.
315318

316319
Attribute Changes in Clang
317320
--------------------------

0 commit comments

Comments
 (0)