Author: Hans Wennborg Date: 2020-09-15T15:45:33+02:00 New Revision: 274bb3fdddf8fe692fa13f4b3ccb06df8a72b388
URL: https://github.com/llvm/llvm-project/commit/274bb3fdddf8fe692fa13f4b3ccb06df8a72b388 DIFF: https://github.com/llvm/llvm-project/commit/274bb3fdddf8fe692fa13f4b3ccb06df8a72b388.diff LOG: Clang release notes: mention the max_tokens_here pragma Added: Modified: clang/docs/ReleaseNotes.rst Removed: ################################################################################ diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst index ba0e15deb389..c39be709d86c 100644 --- a/clang/docs/ReleaseNotes.rst +++ b/clang/docs/ReleaseNotes.rst @@ -311,7 +311,10 @@ Modified Compiler Flags New Pragmas in Clang -------------------- -- ... +- The ``clang max_tokens_here`` pragma can be used together with + `-Wmax-tokens <DiagnosticsReference.html#wmax-tokens>`_ to emit a warning when + the number of preprocessor tokens exceeds a limit. Such limits can be helpful + in limiting code growth and slow compiles due to large header files. Attribute Changes in Clang -------------------------- _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits