[PATCH] D64811: Warn when NumParams overflows
Mark de Wever via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 16 11:01:35 PDT 2019
Mordante created this revision.
Mordante added reviewers: rsmith, rjmccall.
Mordante added a project: clang.
Before when the overflow occurred an assertion was triggered. Now check whether the maximum has been reached and warn properly.
This patch fixes bug 33162 which is marked as 'duplicate' of bug 19607. The original part of bug 19607 is fixed by D63975 <https://reviews.llvm.org/D63975>.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D64811
Files:
clang/include/clang/AST/Type.h
clang/include/clang/Basic/DiagnosticParseKinds.td
clang/lib/Parse/ParseDecl.cpp
clang/lib/Parse/ParseExprCXX.cpp
clang/test/Parser/function_parameter_overflow.cpp
clang/test/Parser/lambda_function_parameter_overflow.cpp
clang/test/Parser/parameter_overflow.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64811.210135.patch
Type: text/x-patch
Size: 5329 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190716/194b6f9e/attachment.bin>
More information about the cfe-commits
mailing list