Fix docs and comments for max_tokens_total pragma

This commit is contained in:
Hans Wennborg 2020-02-07 11:32:24 +01:00
parent f6d98429fc
commit 74734e809a
2 changed files with 2 additions and 2 deletions

View File

@ -1178,7 +1178,7 @@ the token limit, which can be set in three ways:
which works like and overrides the ``-fmax-tokens=`` flag:
.. code-block: c++
#pragma clang max_file_tokens 1234
#pragma clang max_tokens_total 1234
These limits can be helpful in limiting code growth through included files.

View File

@ -3336,7 +3336,7 @@ void PragmaMaxTokensHereHandler::HandlePragma(Preprocessor &PP,
}
}
// Handle '#pragma clang max_file_tokens 12345'.
// Handle '#pragma clang max_tokens_total 12345'.
void PragmaMaxTokensTotalHandler::HandlePragma(Preprocessor &PP,
PragmaIntroducer Introducer,
Token &Tok) {