llvm-project/clang/lib
George Burgess IV ce6284b179 Change how we handle diagnose_if attributes.
This patch changes how we handle argument-dependent `diagnose_if`
attributes. In particular, we now check them in the same place that we
check for things like passing NULL to Nonnull args, etc. This is
basically better in every way than how we were handling them before. :)

This fixes PR31638, PR31639, and PR31640.

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

llvm-svn: 293360
2017-01-28 02:19:40 +00:00
..
ARCMigrate Reapply "IntrusiveRefCntPtr -> std::shared_ptr for CompilerInvocationBase and CodeCompleteConsumer" 2017-01-06 19:49:01 +00:00
AST Fix linkage of static locals in available_externally functions to be DiscardableODR/linkonce_odr 2017-01-27 23:11:10 +00:00
ASTMatchers Move VariantMatcher's Payload to std::shared_ptr rather than IntrusiveRefCntPtr 2017-01-05 18:51:54 +00:00
Analysis [analyzer] Consider function call arguments while building CallGraph. 2017-01-27 12:14:56 +00:00
Basic Remove and replace DiagStatePoint tracking and lookup data structure. 2017-01-26 01:01:01 +00:00
CodeGen [ubsan] Sanity-check shift amounts before truncation (fixes PR27271) 2017-01-27 23:02:44 +00:00
Driver ARM-Darwin: re-enable -momit-leaf-frame-pointer. 2017-01-27 17:53:42 +00:00
Edit Fix problems in "[OpenCL] Enabling the usage of CLK_NULL_QUEUE as compare operand." 2016-12-23 14:55:49 +00:00
Format clang-format: [JS] do not format MPEG transport streams. 2017-01-27 09:09:11 +00:00
Frontend [CodeGen] [CUDA] Add the ability set default attrs on functions in linked modules. 2017-01-25 21:29:48 +00:00
FrontendTool unique_ptrify createDriverOptTable 2017-01-13 17:34:15 +00:00
Headers [OpenCL] Diagnose write_only image3d when extension is disabled 2017-01-25 12:18:50 +00:00
Index [index] When indexing an ObjC method declaration use its base name for the location. 2017-01-26 02:11:50 +00:00
Lex P0426: Make the library implementation of constexpr char_traits a little easier 2017-01-20 00:45:35 +00:00
Parse Support '#pragma clang __debug dump' within C++ classes. 2017-01-28 01:20:57 +00:00
Rewrite [analyzer] Re-apply r283092, attempt no.4, chunk no.4 (last) 2016-10-07 19:25:10 +00:00
Sema Change how we handle diagnose_if attributes. 2017-01-28 02:19:40 +00:00
Serialization [modules] When reading / writing a typedef that is a name for linkage for 2017-01-26 22:39:55 +00:00
StaticAnalyzer [analyzer] Fix MacOSXAPIChecker fp with static locals seen from nested blocks. 2017-01-25 10:21:45 +00:00
Tooling clang-format: Make GetStyle return Expected<FormatStyle> instead of FormatStyle 2017-01-17 00:12:27 +00:00
CMakeLists.txt