llvm-project/clang/lib/Sema
George Burgess IV 8d141e0120 [Sema] Make nullness warnings appear in C++.
Given the following code:

    int *_Nullable ptr;
    int *_Nonnull nn = ptr;

...In C, clang will warn you about `nn = ptr`, because you're assigning
a nonnull pointer to a nullable pointer. In C++, clang issues no such
warning. This patch helps ensure that clang doesn't ever miss an
opportunity to complain about C++ code.

N.B. Though this patch has a differential revision link, the actual
review took place over email.

Differential Revision: http://reviews.llvm.org/D14938

llvm-svn: 255556
2015-12-14 22:00:49 +00:00
..
AnalysisBasedWarnings.cpp [Sema] Replace pointer-to-map with a map. NFC. 2015-12-10 19:25:21 +00:00
AttributeList.cpp Roll-back r250822. 2015-10-20 13:23:58 +00:00
CMakeLists.txt [coroutines] Initial stub Sema functionality for handling coroutine await / yield / return. 2015-10-22 06:13:50 +00:00
CodeCompleteConsumer.cpp Roll-back r250822. 2015-10-20 13:23:58 +00:00
DeclSpec.cpp [Sema] Fix filename in header. NFC 2015-11-15 17:27:55 +00:00
DelayedDiagnostic.cpp Add -Wpartial-availability. 2015-03-19 19:18:22 +00:00
IdentifierResolver.cpp [modules] Remove redundant import of lexical decls when building a lookup table 2015-03-23 03:25:59 +00:00
JumpDiagnostics.cpp Some minor ARC diagnostic improvements. 2015-10-21 18:06:38 +00:00
Makefile
MultiplexExternalSemaSource.cpp Roll-back r250822. 2015-10-20 13:23:58 +00:00
Scope.cpp MS ABI: Implement the MSVC 2015 scheme for scope disambiguation 2015-03-19 21:54:30 +00:00
ScopeInfo.cpp Properly clear current coroutine promise on FunctionScopeInfo reuse. Should 2015-10-27 07:47:45 +00:00
Sema.cpp [Sema] Make nullness warnings appear in C++. 2015-12-14 22:00:49 +00:00
SemaAccess.cpp -Wdeprecated: SavedInstanceContext is returned by value but isn't really copyable, but it can be made movable 2015-08-12 22:58:10 +00:00
SemaAttr.cpp Implement section pragma feedback on r205810 2015-03-04 23:39:17 +00:00
SemaCUDA.cpp [CUDA] Allow function overloads in CUDA based on host/device attributes. 2015-09-22 17:22:59 +00:00
SemaCXXScopeSpec.cpp Avoid duplicated diagnostic when lookup for a nested-name-specifier fails due to ambiguity. 2015-11-12 22:40:09 +00:00
SemaCast.cpp Define weak and __weak to mean ARC-style weak references, even in MRC. 2015-10-22 18:38:17 +00:00
SemaChecking.cpp [Sema] Add warning when comparing nonnull and null 2015-12-08 22:02:00 +00:00
SemaCodeComplete.cpp [Sema] Use getLangOpts in Sema instead of Preprocessor. Call getTargetInfo on the AST context instead of Preprocessor. NFC 2015-11-15 17:27:57 +00:00
SemaConsumer.cpp
SemaCoroutine.cpp [coroutines] Build a CoroutineBodyStmt when finishing parsing a coroutine, and form the initial_suspend, final_suspend, and get_return_object calls. 2015-11-24 02:34:39 +00:00
SemaDecl.cpp Allow non-defining declarations of class template partial specializations to 2015-12-11 22:39:52 +00:00
SemaDeclAttr.cpp Revert "Fix for merging decls in pragma weak Calling CheckFunctionDeclaration so that 2 decls for the 'weak' are merged. Differential Revision: http://reviews.llvm.org/D13048" 2015-12-03 11:37:28 +00:00
SemaDeclCXX.cpp Preserve source location information for qualified names used in a constructor 2015-12-12 02:17:54 +00:00
SemaDeclObjC.cpp Remove DataRecursiveASTVisitor; it no longer serves any purpose, since it's just an alias for RecursiveASTVisitor. 2015-11-24 03:55:01 +00:00
SemaExceptionSpec.cpp [MSVC] 'property' with an empty array in array subscript expression. 2015-11-25 12:01:00 +00:00
SemaExpr.cpp [Sema] Add -Wparentheses warnings for '^' in '|' expressions and '&' in '^' expressions to compliment '&' in '|' that is already present. Matches gcc behavior. 2015-12-13 05:41:41 +00:00
SemaExprCXX.cpp [Sema] Make nullness warnings appear in C++. 2015-12-14 22:00:49 +00:00
SemaExprMember.cpp Look through using decls when classifying implicit member access 2015-10-20 18:12:08 +00:00
SemaExprObjC.cpp Use Sema::getLocForEndOfToken instead of Preprocessor::getLocForEndOfToken. NFC 2015-11-15 02:31:46 +00:00
SemaFixItUtils.cpp Use Sema::getLocForEndOfToken instead of Preprocessor::getLocForEndOfToken. NFC 2015-11-15 02:31:46 +00:00
SemaInit.cpp Fix crash on invalid initialization with std::initializer_list 2015-12-09 23:18:38 +00:00
SemaLambda.cpp Add the `pass_object_size` attribute to clang. 2015-12-02 21:58:08 +00:00
SemaLookup.cpp Replace [=] lambda capture with [&] per David Blaikieþ suggestion. 2015-11-24 20:18:24 +00:00
SemaObjCProperty.cpp Objective-C properties: merge attributes when redeclaring 'readonly' as 'readwrite' in an extension. 2015-12-10 23:02:09 +00:00
SemaOpenMP.cpp Add parse and sema of OpenMP distribute directive with all clauses except dist_schedule 2015-12-14 14:51:25 +00:00
SemaOverload.cpp [Sema] Use UnaryOperatorKind and BinaryOperatorKind in parameter lists instead of just unsigned. Removes a few explicit casts. NFC 2015-12-10 08:51:49 +00:00
SemaPseudoObject.cpp [MSVC] Fix for http://llvm.org/PR25636: indexed accessor property not supported correctly. 2015-12-10 04:38:18 +00:00
SemaStmt.cpp [OpenMP] Update target directive codegen to use 4.5 implicit data mappings. 2015-12-02 17:44:43 +00:00
SemaStmtAsm.cpp Use ArrayRef and MutableArrayRef instead of a pointer and size. NFC 2015-10-21 02:34:10 +00:00
SemaStmtAttr.cpp Add new llvm.loop.unroll.enable metadata for use with "#pragma unroll". 2015-08-10 17:29:39 +00:00
SemaTemplate.cpp Add the `pass_object_size` attribute to clang. 2015-12-02 21:58:08 +00:00
SemaTemplateDeduction.cpp [NFC] Improve a comment from my previous commit (r255221) 2015-12-10 12:29:11 +00:00
SemaTemplateInstantiate.cpp Correctly type-check the default arguments of local functions 2015-12-11 01:56:36 +00:00
SemaTemplateInstantiateDecl.cpp [Sema] Implement __make_integer_seq 2015-11-04 03:40:30 +00:00
SemaTemplateVariadic.cpp Add support for GCC's '__auto_type' extension, per the GCC manual: 2015-11-11 02:02:15 +00:00
SemaType.cpp Reordering fields to reduce padding in Clang. NFC 2015-12-14 21:54:11 +00:00
TreeTransform.h Add parse and sema of OpenMP distribute directive with all clauses except dist_schedule 2015-12-14 14:51:25 +00:00
TypeLocBuilder.cpp [C++11] Use 'nullptr'. Sema edition. 2014-05-26 06:22:03 +00:00
TypeLocBuilder.h Revert r240270 ("Fixed/added namespace ending comments using clang-tidy"). 2015-06-22 23:07:51 +00:00