Navigation Menu

Skip to content

Commit

Permalink
Fix docs and comments for max_tokens_total pragma
Browse files Browse the repository at this point in the history
  • Loading branch information
zmodem committed Feb 7, 2020
1 parent f6d9842 commit 74734e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clang/include/clang/Basic/DiagnosticGroups.td
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion clang/lib/Parse/ParsePragma.cpp
Expand Up @@ -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) {
Expand Down

0 comments on commit 74734e8

Please sign in to comment.