hanchenye-llvm-project/clang/lib
Richard Smith a91de375f2 Promote a warning on ill-formed code (redeclaration missing an exception
specification) to an error. No compiler other than Clang seems to allow this,
and it doesn't seem like a useful thing to accept as an extension in general.

The current behavior was added for PR5957, where the problem was specifically
related to mismatches of the exception specification on the implicitly-declared
global operator new and delete. To retain that workaround, we downgrade the
error to an ExtWarn when the declaration is of a replaceable global allocation
function.

Now that this is an error, stop trying (and failing) to recover from a missing
computed noexcept specification. That recovery didn't work, and led to crashes
in code like the added testcase.

llvm-svn: 248867
2015-09-30 00:48:50 +00:00
..
ARCMigrate Fix a small bug in clang where generating some temporary files would have an extra period before the extension. 2015-09-09 16:48:47 +00:00
AST Move functions declared in ExprObjC.h into ExprObjC.cpp. 2015-09-29 22:28:44 +00:00
ASTMatchers Rename AST node matchers to match the AST node names directly. Part of this rename also splits recordDecl() (which used to match CXXRecordDecl) into recordDecl() (that matches RecordDecl) and cxxRecordDecl (that matches CXXRecordDecl). Also adds isStruct(), isUnion(), and isClass() narrowing matchers for RecordDecl objects. 2015-09-17 13:30:52 +00:00
Analysis Thread Safety Analysis: fix before/after checks so that they work on global 2015-09-29 15:25:51 +00:00
Basic [CUDA] 32-bit NVPTX should have 32-bit long type. 2015-09-28 22:54:08 +00:00
CodeGen Don't crash when a reserved global placement operator new is paired 2015-09-29 23:55:17 +00:00
Driver Driver: support ARM/HF on a single toolchain 2015-09-26 03:26:44 +00:00
Edit [Edit] Fix issue with tracking what macro argument inputs have been edited. 2015-09-11 20:09:11 +00:00
Format clang-format: Add a new brace style "custom" as well as flags to 2015-09-29 14:57:55 +00:00
Frontend Revert "This patch adds missing pieces to clang, including the PS4 toolchain definition, added warnings, PS4 defaults, and Driver changes needed for our compiler." 2015-09-25 16:11:00 +00:00
FrontendTool
Headers Forgot to remove a FIXME that has been fixed. NFC. 2015-09-29 18:20:59 +00:00
Index [OpenCL] Add new types for OpenCL 2.0. 2015-09-15 11:18:52 +00:00
Lex Fix typo. 2015-09-29 16:51:08 +00:00
Parse [OPENMP 4.1] Add 'simd' clause for 'ordered' directive. 2015-09-28 06:39:35 +00:00
Rewrite Make local function isWhitespaceExceptNL static instead of in anonymous namespace 2015-07-28 04:54:03 +00:00
Sema Promote a warning on ill-formed code (redeclaration missing an exception 2015-09-30 00:48:50 +00:00
Serialization Simplify or remove calls to makeArrayRef based on feedback from David Blaikie. NFC. 2015-09-29 04:53:28 +00:00
StaticAnalyzer [analyzer] When memcpy'ing into a fixed-size array, do not invalidate entire region. 2015-09-24 16:52:56 +00:00
Tooling Fix bad iterator access. 2015-09-23 12:47:50 +00:00
CMakeLists.txt
Makefile