Turn -Wmax-tokens off by default
authorHans Wennborg <hans@chromium.org>
Fri, 15 May 2020 15:20:27 +0000 (17:20 +0200)
committerHans Wennborg <hans@chromium.org>
Mon, 18 May 2020 11:21:46 +0000 (13:21 +0200)
commit87b235db63a3d8d5b82d60ef6202b92b94a7d9d2
treefae2101bad072047381b8b63ea3985639e679bd4
parente47c101e35fd8d046f7d4fa296c17db508e8cdc2
Turn -Wmax-tokens off by default

On the one hand, one might interpret the use of the max-token pragmas or
-fmax-tokens flag as an opt-in to the warning. However, in Chromium
we've found it useful to only opt in selected build configurations, even
though we have the pragmas in the code. For that reason, we think it
makes sense to turn it off by default.

Differential revision: https://reviews.llvm.org/D80014
clang/include/clang/Basic/DiagnosticGroups.td
clang/include/clang/Basic/DiagnosticParseKinds.td
clang/test/Parser/max-tokens.cpp