[all-commits] [llvm/llvm-project] b9be5c: [Parser] Warn when ScopeDepthOrObjCQuals overflows

mordante via All-commits all-commits at lists.llvm.org
Sat Nov 9 06:33:23 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b9be5ce8f3e0e697a61ad16e2c669de6ea8f8739
      https://github.com/llvm/llvm-project/commit/b9be5ce8f3e0e697a61ad16e2c669de6ea8f8739
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2019-11-09 (Sat, 09 Nov 2019)

  Changed paths:
    M clang/include/clang/AST/Decl.h
    M clang/include/clang/Basic/DiagnosticParseKinds.td
    M clang/lib/Parse/ParseDecl.cpp
    A clang/test/Parser/nested_blocks_overflow.cpp
    A clang/test/Parser/nested_function_prototype_overflow.cpp
    A clang/test/Parser/nested_lambda_overflow.cpp

  Log Message:
  -----------
  [Parser] Warn when ScopeDepthOrObjCQuals overflows

Before when the overflow occured an assertion was triggered. Now check
whether the maximum has been reached and warn properly.

This patch fixes the original submission of PR19607.

Differential Revision: https://reviews.llvm.org/D63975




More information about the All-commits mailing list