Commit 74734e80 authored by Hans Wennborg's avatar Hans Wennborg
Browse files

Fix docs and comments for max_tokens_total pragma

parent f6d98429
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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.

+1 −1
Original line number Diff line number Diff line
@@ -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) {