llvm-project/clang/lib/Parse
Justin Bogner ab403f463a Parse: Avoid crashing on unterminated top-level asm strings
When parsing invalid top-level asm statements, we were ignoring the
return code of the SkipUntil we used for recovery. This led to crashes
when we hit the end of file and tried to continue parsing anyway.

This fixes the crash and adds a couple of tests for parsing related
problems.

llvm-svn: 196961
2013-12-10 21:29:48 +00:00
..
CMakeLists.txt [CMake] clang/lib: Satisfy dependencies to add *actually used* libraries on target_link_libraries() and LLVM_LINK_COMPONENTS. 2013-12-09 19:04:43 +00:00
Makefile
ParseAST.cpp Use SmallVectorImpl instead of SmallVector for iterators and references to avoid specifying the vector size unnecessarily. 2013-07-04 03:08:24 +00:00
ParseCXXInlineMethods.cpp Generate a marker token when entering or leaving a submodule when building a 2013-11-23 04:06:09 +00:00
ParseDecl.cpp Avoid extra error messages if method definition is inside function. 2013-12-09 05:25:47 +00:00
ParseDeclCXX.cpp Parse: Recover better from bad definitions with base specifiers 2013-12-05 01:36:53 +00:00
ParseExpr.cpp Fix code typos spotted while working on type traits 2013-12-06 17:56:43 +00:00
ParseExprCXX.cpp Fix init-captures for generic lambdas. 2013-12-05 01:40:41 +00:00
ParseInit.cpp Generate a marker token when entering or leaving a submodule when building a 2013-11-23 04:06:09 +00:00
ParseObjc.cpp Fix a tranche of comment, test and doc typos 2013-12-05 16:25:25 +00:00
ParseOpenMP.cpp Replaced bool parameters in SkipUntil function with single bit-based parameter. 2013-11-18 08:17:37 +00:00
ParsePragma.cpp Callback support for OpenCL extension pragmas. 2013-10-12 09:29:48 +00:00
ParsePragma.h Adding support for MSVC #pragma detect_mismatch functionality by emitting a FAILIFMISMATCH linker command into the object file. 2013-06-04 02:07:14 +00:00
ParseStmt.cpp Fix a tranche of comment, test and doc typos 2013-12-05 16:25:25 +00:00
ParseTemplate.cpp Fix PR17637: incorrect calculation of template parameter depth 2013-12-04 03:51:14 +00:00
ParseTentative.cpp Replaced bool parameters in SkipUntil function with single bit-based parameter. 2013-11-18 08:17:37 +00:00
Parser.cpp Parse: Avoid crashing on unterminated top-level asm strings 2013-12-10 21:29:48 +00:00
RAIIObjectsForParser.h OpenMP threadprivate with qualified names. 2013-05-13 04:18:18 +00:00