[clang] 74734e8 - Fix docs and comments for max_tokens_total pragma
Hans Wennborg via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 7 02:37:34 PST 2020
Author: Hans Wennborg
Date: 2020-02-07T11:37:14+01:00
New Revision: 74734e809ac778beb01776ee207643184c09c2a0
URL: https://github.com/llvm/llvm-project/commit/74734e809ac778beb01776ee207643184c09c2a0
DIFF: https://github.com/llvm/llvm-project/commit/74734e809ac778beb01776ee207643184c09c2a0.diff
LOG: Fix docs and comments for max_tokens_total pragma
Added:
Modified:
clang/include/clang/Basic/DiagnosticGroups.td
clang/lib/Parse/ParsePragma.cpp
Removed:
################################################################################
diff --git a/clang/include/clang/Basic/DiagnosticGroups.td b/clang/include/clang/Basic/DiagnosticGroups.td
index 2dcedcb60340..a2bc29986a07 100644
--- a/clang/include/clang/Basic/DiagnosticGroups.td
+++ b/clang/include/clang/Basic/DiagnosticGroups.td
@@ -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.
diff --git a/clang/lib/Parse/ParsePragma.cpp b/clang/lib/Parse/ParsePragma.cpp
index f2b0d39496d2..34232437528b 100644
--- a/clang/lib/Parse/ParsePragma.cpp
+++ b/clang/lib/Parse/ParsePragma.cpp
@@ -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) {
More information about the cfe-commits
mailing list