llvm-project/clang/lib/Parse
Aaron Ballman c671041720 Check for resource exhaustion when recursively parsing declarators
With sufficiently tortured code, it's possible to cause a stack
overflow when parsing declarators. Thus, we now check for resource
exhaustion when recursively parsing declarators so that we can at least
warn the user we're about to crash before we actually crash.

Fixes #51642

Differential Revision: https://reviews.llvm.org/D124915
2022-05-12 13:20:35 -04:00
..
CMakeLists.txt [HLSL] Add Semantic syntax, and SV_GroupIndex 2022-04-14 10:21:58 -05:00
ParseAST.cpp Properly diagnose constant evaluation issues at TU scope 2022-03-08 10:19:15 -05:00
ParseCXXInlineMethods.cpp [clang][parse] Move source range into ParsedAttibutesView 2022-03-24 08:11:57 +01:00
ParseDecl.cpp Check for resource exhaustion when recursively parsing declarators 2022-05-12 13:20:35 -04:00
ParseDeclCXX.cpp [HLSL] Adjust access specifier behavior 2022-04-28 10:37:50 -05:00
ParseExpr.cpp [Clang] Implement __builtin_source_location. 2022-03-28 18:29:02 -04:00
ParseExprCXX.cpp Revert D119136 "[clang] Implement Change scope of lambda trailing-return-type" and its follow-up 2022-04-20 10:57:12 -07:00
ParseHLSL.cpp [HLSL] Add Semantic syntax, and SV_GroupIndex 2022-04-14 10:21:58 -05:00
ParseInit.cpp [clang] Use true/false instead of 1/0 (NFC) 2022-01-09 00:19:47 -08:00
ParseObjc.cpp [clang][NFC] In parts of Objective-C Sema use Obj-C-specific types instead of `Decl`. 2022-05-05 19:19:41 -07:00
ParseOpenMP.cpp [clang][OpenMP5.1] Initial parsing/sema for has_device_addr 2022-04-08 21:19:38 -07:00
ParsePragma.cpp [clang][parse] Move source range into ParsedAttibutesView 2022-03-24 08:11:57 +01:00
ParseStmt.cpp Add some helpers to better check Scope's kind. NFC 2022-04-16 11:31:40 +08:00
ParseStmtAsm.cpp [clang] Fix bugprone argument comments (NFC) 2022-01-09 00:19:49 -08:00
ParseTemplate.cpp [Clang][Sema] Prohibit statement expression in the default argument 2022-04-06 09:28:20 +08:00
ParseTentative.cpp [clang][parse] Move source range into ParsedAttibutesView 2022-03-24 08:11:57 +01:00
Parser.cpp Change the behavior of implicit int diagnostics 2022-05-04 08:35:47 -04:00