hanchenye-llvm-project/clang/test/SemaCXX
Richard Trieu 3bb8b56a5d PR16074, implement warnings to catch pointer to boolean true and pointer to
null comparison when the pointer is known to be non-null.

This catches the array to pointer decay, function to pointer decay and
address of variables.  This does not catch address of function since this
has been previously used to silence a warning.

Pointer to bool conversion is under -Wbool-conversion.
Pointer to null comparison is under -Wtautological-pointer-compare, a sub-group
of -Wtautological-compare.

void foo() {
  int arr[5];
  int x;
  // warn on these conditionals
  if (foo);
  if (arr);
  if (&x);
  if (foo == null);
  if (arr == null);
  if (&x == null);

  if (&foo);  // no warning
}

llvm-svn: 202216
2014-02-26 02:36:06 +00:00
..
Inputs Ignore test Inputs globally and remove redundant lit.local.cfg files 2013-11-15 13:37:49 +00:00
2008-01-11-BadWarning.cpp
MicrosoftCompatibility-cxx98.cpp
MicrosoftCompatibility.cpp Move the -fms-compatibility using decl check after real access checking 2014-02-08 02:40:20 +00:00
MicrosoftCompatibilityNoExceptions.cpp
MicrosoftExtensions.cpp Pre-declare '::type_info' in MicrosoftMode only, not MicrosoftExt 2014-01-05 06:38:18 +00:00
PR5086-ambig-resolution-enum.cpp
PR6562.cpp
PR6618.cpp
PR7410.cpp
PR7944.cpp
PR8012.cpp Removing some more unnecessary manual quotes from diagnostics. Updated the related test case to ensure correctness. 2014-01-03 13:34:55 +00:00
PR8385.cpp
PR8755.cpp
PR8884.cpp
PR9459.cpp
PR9460.cpp
PR9461.cpp
PR9572.cpp
PR9884.cpp
PR9902.cpp
PR9908.cpp
PR10177.cpp
PR10243.cpp
PR10447.cpp
PR10458.cpp
PR11358.cpp
PR12481.cpp
PR12778.cpp Avoid getting an argument of allocation function if it does not exist. 2013-09-14 12:00:01 +00:00
__null.cpp
__try.cpp Sema: Don't crash when __try/__except/__finally appears in a template function 2013-10-15 09:30:14 +00:00
abstract.cpp
access-base-class.cpp
access-control-check.cpp
access-member-pointer.cpp
access.cpp When performing a delayed access check, use the surrounding lexical context for 2013-12-11 03:35:27 +00:00
addr-of-overloaded-function-casting.cpp Don't produce duplicate notes if we have deduction failure notes when resolving 2013-08-14 00:00:44 +00:00
addr-of-overloaded-function.cpp Revert "Don't require -re suffix on -verify directives with regexes." 2013-12-14 01:07:05 +00:00
address-of-temporary.cpp
address-of.cpp
address-space-conversion.cpp
address-space-initialize.cpp
address-space-newdelete.cpp
address-space-references.cpp
aggregate-initialization.cpp Implemented delayed processing of 'unavailable' checking, just like with 'deprecated'. 2013-12-18 23:30:06 +00:00
alias-template.cpp Implement DR577 2014-02-19 03:00:56 +00:00
alignment-of-derived-class.cpp
alignof-sizeof-reference.cpp sizeof(void) etc. should be a hard error in C++. 2013-08-13 22:26:42 +00:00
alignof.cpp Fix alignof computation of large arrays on x86_64. 2013-08-08 19:53:46 +00:00
altivec.cpp
ambig-user-defined-conversions.cpp
ambiguous-builtin-unary-operator.cpp
ambiguous-conversion-show-overload.cpp
anonymous-struct.cpp Diagnose typedef names for linkage purposes that would change 2014-01-30 01:12:53 +00:00
anonymous-union-cxx11.cpp
anonymous-union.cpp
array-bound-merge.cpp
array-bounds-ptr-arith.cpp
array-bounds-system-header.cpp
array-bounds.cpp
arrow-operator.cpp
ast-print.cpp Reapply "Pretty Printer: Fix printing of conversion operator decls and calls." 2014-02-25 18:03:55 +00:00
atomic-type.cxx
attr-after-definition.cpp
attr-aligned.cpp Sema: Only merge typedef attributes if the previous decl is a typedef 2013-10-08 00:19:09 +00:00
attr-cleanup-gcc.cpp Switch attribute test line endings from CRLF 2013-10-20 19:04:19 +00:00
attr-cleanup.cpp Switch attribute test line endings from CRLF 2013-10-20 19:04:19 +00:00
attr-common.cpp Switching the common attribute over to using the generic diagnostic, and removing the now-unused diagnostic. Updates a test case. 2013-11-24 21:48:06 +00:00
attr-cxx0x.cpp No longer accepting attribute spellings with prefix and suffix underscores except for GNU attributes, or C++11-style attributes in the GNU namespace. This prevents attributes such as __declspec(__dllexport__) or [[__noreturn__]] from being treated as known attributes. 2013-12-11 22:27:44 +00:00
attr-declspec-ignored.cpp
attr-deprecated.cpp Implemented delayed processing of 'unavailable' checking, just like with 'deprecated'. 2013-12-18 23:30:06 +00:00
attr-format.cpp
attr-no-sanitize-address.cpp
attr-no-sanitize-memory.cpp
attr-no-sanitize-thread.cpp
attr-nodebug.cpp
attr-nonnull.cpp
attr-noreturn.cpp
attr-print.cpp
attr-regparm.cpp
attr-selectany.cpp Delay attribute checking until auto types are deduced 2014-01-21 23:54:36 +00:00
attr-sentinel.cpp
attr-unavailable.cpp Implemented delayed processing of 'unavailable' checking, just like with 'deprecated'. 2013-12-18 23:30:06 +00:00
attr-unused.cpp
attr-used.cpp Removed a string literal for an attribute name, which means the attribute name will be quoted in the diagnostic. Manually added some quotes to a diagnostic for consistency. Updated the test cases as appropriate. 2013-12-26 17:30:44 +00:00
attr-visibility.cpp
attr-weak.cpp Delay attribute checking until auto types are deduced 2014-01-21 23:54:36 +00:00
attr-weakref.cpp Delay attribute checking until auto types are deduced 2014-01-21 23:54:36 +00:00
auto-cxx0x.cpp
auto-cxx98.cpp
auto-pragma.cpp
auto-subst-failure.cpp
bitfield-layout.cpp
block-call.cpp
blocks-1.cpp Switch the semantic DeclContext for a block-scope declaration of a function or 2013-09-20 01:15:31 +00:00
blocks.cpp
bool.cpp Split the deprecated increment bool warning into a sub-group of -Wdeprecated 2013-08-08 03:05:52 +00:00
borland-extensions.cpp
builtin-exception-spec.cpp
builtin-ptrtomember-ambig.cpp
builtin-ptrtomember-overload-1.cpp
builtin-ptrtomember-overload.cpp
builtin_objc_msgSend.cpp
builtins-arm.cpp
builtins-va_arg.cpp
builtins.cpp Only provide MS builtins when -fms-extensions is on 2013-11-13 22:47:22 +00:00
c99-variable-length-array-cxx11.cpp
c99-variable-length-array.cpp Allow transformation of VariableArray to ConstantArray. 2014-02-06 03:49:11 +00:00
c99.cpp Sema: Cleanup and simplify anonymous union diagnostics 2013-11-02 10:38:05 +00:00
calling-conv-compat.cpp Remove the -cxx-abi command-line flag. 2014-01-14 19:35:09 +00:00
captured-statements.cpp Add some missing ProhibitAttributes calls to some declaration-like #pragmas. 2013-09-16 21:17:44 +00:00
cast-conversion.cpp
cast-explicit-ctor.cpp
class-base-member-init.cpp
class-layout.cpp
class-names.cpp
class.cpp Avoid spurious error messages if parent template class cannot be instantiated 2013-08-10 05:54:47 +00:00
comma.cpp
compare.cpp Fix a tranche of comment, test and doc typos 2013-12-05 16:25:25 +00:00
complex-init-list.cpp
complex-overload.cpp
composite-pointer-type.cpp
compound-literal.cpp Tweak changes in r186464 to avoid a crash. 2013-10-01 00:28:29 +00:00
condition.cpp
conditional-expr.cpp PR17052 / DR1560 (+DR1550): In a conditional expression between a glvalue and a 2014-01-27 04:19:56 +00:00
const-cast.cpp Revert "Don't require -re suffix on -verify directives with regexes." 2013-12-14 01:07:05 +00:00
constant-expression-cxx1y.cpp Don't reject dependent range-based for loops in constexpr functions. The loop 2013-11-15 02:29:26 +00:00
constant-expression-cxx11.cpp PR16074, implement warnings to catch pointer to boolean true and pointer to 2014-02-26 02:36:06 +00:00
constant-expression.cpp [Sema] Fix assertion hit while trying to do constant evaluation for a dependent expression 2014-02-15 18:53:57 +00:00
constexpr-ackermann.cpp
constexpr-backtrace-limit.cpp
constexpr-depth.cpp
constexpr-duffs-device.cpp
constexpr-factorial.cpp
constexpr-many-arguments.cpp
constexpr-nqueens.cpp
constexpr-printing.cpp Revert "Don't require -re suffix on -verify directives with regexes." 2013-12-14 01:07:05 +00:00
constexpr-steps.cpp
constexpr-strlen.cpp
constexpr-turing.cpp
constexpr-value-init.cpp Fix a tranche of comment, test and doc typos 2013-12-05 16:25:25 +00:00
constructor-initializer.cpp Improve diagnostic for using non-class/namespace/scoped enum in a nested name specifier. 2014-02-09 06:54:23 +00:00
constructor-recovery.cpp
constructor.cpp
conversion-delete-expr.cpp
conversion-function.cpp PR18234: Mark a tag definition as invalid early if it appears in a 2014-01-08 00:56:48 +00:00
conversion-incomplete-type.cpp
conversion.cpp
convert-to-bool.cpp
converting-constructor.cpp
copy-assignment.cpp
copy-constructor-error.cpp
copy-initialization.cpp
crash-lambda-12645424.cpp
crashes.cpp Fix error recovery in return statement. 2013-12-04 03:51:59 +00:00
cstyle-cast.cpp Revert "Don't require -re suffix on -verify directives with regexes." 2013-12-14 01:07:05 +00:00
cv-unqual-rvalues.cpp
cxx-altivec.cpp This diagnostic should not have had the manual quotation marks. Its only usage passed in an Attr object, which was already quoted when printing the diagnostic. However, there was no test case that caught this bug -- one has been added. 2014-01-02 23:22:40 +00:00
cxx-member-pointer-op.cpp
cxx0x-class.cpp Modify the uninitialized field visitor to detect uninitialized use across the 2013-09-20 03:03:06 +00:00
cxx0x-compat.cpp Add compat/extension warnings for init captures. 2013-09-28 05:38:27 +00:00
cxx0x-constexpr-const.cpp
cxx0x-cursory-default-delete.cpp PR16638, DR1552: the exception specification on an implicitly-declared 2014-02-07 22:51:16 +00:00
cxx0x-defaulted-functions.cpp
cxx0x-delegating-ctors.cpp Implemented delayed processing of 'unavailable' checking, just like with 'deprecated'. 2013-12-18 23:30:06 +00:00
cxx0x-deleted-default-ctor.cpp When a special member is explicitly defaulted outside its class, and we reject 2014-01-22 20:09:10 +00:00
cxx0x-initializer-aggregates.cpp
cxx0x-initializer-constructor.cpp
cxx0x-initializer-references.cpp Switch the semantic DeclContext for a block-scope declaration of a function or 2013-09-20 01:15:31 +00:00
cxx0x-initializer-scalars.cpp
cxx0x-initializer-stdinitializerlist.cpp PR18013: Don't assert diagnosing a bad std::initializer_list construction. 2013-11-21 23:30:57 +00:00
cxx0x-nontrivial-union.cpp
cxx0x-return-init-list.cpp
cxx0x-type-convert-construct.cpp Fix string-literal to char* conversion in overload resolution for C++11 2014-01-17 21:08:52 +00:00
cxx1y-constexpr-not-const.cpp
cxx1y-contextual-conversion-tweaks.cpp
cxx1y-deduced-return-type.cpp PR17533 and duplicates: don't compute the return type of an overloaded operator 2013-11-15 02:58:23 +00:00
cxx1y-generic-lambdas-capturing.cpp This patch implements capturing of variables within generic lambdas. 2013-11-07 05:17:06 +00:00
cxx1y-generic-lambdas.cpp PR18401: Fix assert by implementing the current proposed direction of core 2014-01-09 02:22:22 +00:00
cxx1y-init-captures.cpp Move a generic lambda test into the more logical test file. 2013-12-08 15:11:48 +00:00
cxx1y-initializer-aggregates.cpp
cxx1y-sized-deallocation.cpp Implement C++1y sized deallocation (n3778). This is not enabled by -std=c++1y; 2013-09-29 04:40:38 +00:00
cxx1y-user-defined-literals.cpp Handle standard libraries that miss out the space when defining the standard 2013-09-24 04:06:10 +00:00
cxx1y-variable-templates_in_class.cpp Fix crash if a dependent template-id was assumed to be a type but instantiates 2013-12-04 00:56:29 +00:00
cxx1y-variable-templates_top_level.cpp PR18530: Don't assert when performing error recovery after a missing 'template<>' on a variable template explicit specialization. 2014-01-25 21:32:06 +00:00
cxx11-ast-print.cpp
cxx11-attr-print.cpp There is no std namespace for standards-based attributes. Removing the scope qualifier and updating the only affected test case. 2014-02-13 04:31:04 +00:00
cxx11-crashes.cpp If we find an error in the range expression in a range-based for loop, and the 2013-08-21 01:40:36 +00:00
cxx11-gnu-attrs.cpp Removing the alloc_size attribute. The attribute was semantically handled, but silently ignored. Most of this feature was already reverted in June 2012 (r159016), this just cleans up the pieces left over. 2013-12-21 17:15:13 +00:00
cxx11-inheriting-ctors.cpp
cxx11-thread-local-print.cpp
cxx11-thread-local.cpp
cxx11-user-defined-literals-unused.cpp
cxx11-user-defined-literals.cpp Reject template-ids containing literal-operator-ids that have a dependent 2013-12-05 00:58:33 +00:00
cxx98-compat-flags.cpp
cxx98-compat-pedantic.cpp Remove support for arrays of runtime bound in C++1y, now they have been voted 2013-10-01 00:19:43 +00:00
cxx98-compat.cpp Implement DR329. We already did the right thing here in C++98 mode, but r104014 2014-02-03 02:37:59 +00:00
dcl_ambig_res.cpp sizeof(void) etc. should be a hard error in C++. 2013-08-13 22:26:42 +00:00
dcl_init_aggr.cpp
decl-expr-ambiguity.cpp
decl-init-ref.cpp
decl-microsoft-call-conv.cpp Remove the -cxx-abi command-line flag. 2014-01-14 19:35:09 +00:00
decltype-98.cpp
decltype-crash.cpp
decltype-overloaded-functions.cpp
decltype-pr4444.cpp
decltype-pr4448.cpp
decltype-this.cpp
decltype.cpp PR18876: The special-case rule that ignores the destruction of a top-level 2014-02-18 03:51:47 +00:00
default-argument-temporaries.cpp
default-assignment-operator.cpp
default-constructor-initializers.cpp
default1.cpp
default2.cpp
defaulted-ctor-loop.cpp
defaulted-private-dtor.cpp
delete.cpp
deleted-function.cpp Implemented delayed processing of 'unavailable' checking, just like with 'deprecated'. 2013-12-18 23:30:06 +00:00
deleted-operator.cpp Update tests in preparation for using the MS ABI for Win32 targets 2014-01-13 19:48:13 +00:00
dependent-auto.cpp
dependent-noexcept-unevaluated.cpp
dependent-types.cpp
deprecated.cpp Fix string-literal to char* conversion in overload resolution for C++11 2014-01-17 21:08:52 +00:00
derived-to-base-ambig.cpp
destructor.cpp Remove the -cxx-abi command-line flag. 2014-01-14 19:35:09 +00:00
direct-initializer.cpp
discrim-union.cpp
dllexport.cpp Reorganize and improve semantic tests for dllexport/import 2014-02-22 19:47:30 +00:00
dllimport.cpp Reorganize and improve semantic tests for dllexport/import 2014-02-22 19:47:30 +00:00
do-while-scope.cpp
dr1301.cpp
dynamic-cast.cpp
elaborated-type-specifier.cpp
empty-class-layout.cpp
enable_if.cpp Neither attribute overloadable nor enable_if are supported by GCC. Disable the 2014-01-21 04:31:12 +00:00
enum-bitfield.cpp
enum-increment.cpp Emit an error for enum increments and decrements in C++ mode. 2013-08-08 01:50:23 +00:00
enum-scoped.cpp PR18551: accepts invalid strong enum to bool when operator! is used 2014-01-20 07:20:22 +00:00
enum-unscoped-nonexistent.cpp
enum.cpp
err_init_conversion_failed.cpp The diagnostic err_init_conversion_failed uses the enum 2013-08-31 03:50:47 +00:00
exception-spec-no-exceptions.cpp
exceptions.cpp
explicit.cpp PR18777: This PR is already fixed; add regtest. 2014-02-10 17:21:40 +00:00
expression-traits.cpp PR17052 / DR1560 (+DR1550): In a conditional expression between a glvalue and a 2014-01-27 04:19:56 +00:00
expressions.cpp Fixed error recovery if sizeof is used without parenthesis 2014-01-15 01:53:39 +00:00
extern-c.cpp Added warning on structures/unions that are empty or contain only 2013-11-14 02:13:03 +00:00
flexible-array-test.cpp Fix "regression" caused by updating our notion of POD to better match the C++11 2014-01-11 00:53:35 +00:00
fntype-decl.cpp
for-range-dereference.cpp Implemented delayed processing of 'unavailable' checking, just like with 'deprecated'. 2013-12-18 23:30:06 +00:00
for-range-examples.cpp Improve the error message for attempting to build a for range loop using a 2013-10-11 22:16:04 +00:00
for-range-no-std.cpp
for-range-unused.cpp
format-strings-0x.cpp
format-strings.cpp
friend-class-nodecl.cpp
friend-out-of-line.cpp
friend.cpp
function-extern-c.cpp
function-overload-typo-crash.cpp
function-overloaded-redecl.cpp
function-pointer-arguments.cpp Fix for PR16570: when comparing two function pointers, discard qualifiers when 2013-08-09 21:42:32 +00:00
function-redecl.cpp Switch the semantic DeclContext for a block-scope declaration of a function or 2013-09-20 01:15:31 +00:00
function-type-qual.cpp
functional-cast.cpp Revert "Don't require -re suffix on -verify directives with regexes." 2013-12-14 01:07:05 +00:00
generic-selection.cpp
gnu-case-ranges.cpp
gnu-flags.cpp Add specific warning flags for GNU ext in Sema. 2013-09-18 23:23:17 +00:00
goto.cpp Fix a tranche of comment, test and doc typos 2013-12-05 16:25:25 +00:00
goto2.cpp
i-c-e-cxx.cpp
illegal-member-initialization.cpp
implicit-exception-spec.cpp
implicit-int.cpp
implicit-member-functions.cpp Use the appropriate SourceLocation for the template backtrace when doing 2014-01-11 02:37:12 +00:00
implicit-virtual-member-functions.cpp Remove the -cxx-abi command-line flag. 2014-01-14 19:35:09 +00:00
incomplete-call.cpp
increment-decrement.cpp
indirect-goto.cpp
inherit.cpp Add test case for r193923 2013-11-02 12:11:58 +00:00
init-priority-attr.cpp Adding in the subject for the init_priority attribute. 2013-11-27 16:34:09 +00:00
inline.cpp
instantiate-blocks.cpp
invalid-instantiated-field-decl.cpp
invalid-member-expr.cpp
invalid-template-specifier.cpp
issue547.cpp
lambda-expressions.cpp Temporary fix for PR18473: Don't try to evaluate the initializer for a 2014-02-06 23:35:16 +00:00
libstdcxx_atomic_ns_hack.cpp
libstdcxx_common_type_hack.cpp
libstdcxx_is_pod_hack.cpp
libstdcxx_map_base_hack.cpp
libstdcxx_pointer_return_false_hack.cpp
linkage-spec.cpp Retain previous language linkage of friend function declarations 2013-10-22 22:53:01 +00:00
linkage.cpp Actually test that the local static variable from my 2014-01-30 01:12:47 +00:00
linkage2.cpp
literal-operators.cpp
literal-type.cpp
local-classes.cpp
long-virtual-inheritance-chain.cpp
lookup-member.cpp
member-class-11.cpp
member-expr-anonymous-union.cpp
member-expr-static.cpp
member-expr.cpp Revert "Don't require -re suffix on -verify directives with regexes." 2013-12-14 01:07:05 +00:00
member-init.cpp PR18560: When switching to a new context, don't just save and restore an 2014-01-24 01:54:52 +00:00
member-location.cpp
member-name-lookup.cpp
member-operator-expr.cpp
member-pointer-ms.cpp MS ABI: Add support for the -vm{b,g,s,m,v} flags 2014-02-11 21:05:00 +00:00
member-pointer-size.cpp
member-pointer.cpp Improve diagnostic for using non-class/namespace/scoped enum in a nested name specifier. 2014-02-09 06:54:23 +00:00
member-pointers-2.cpp
microsoft-cxx0x.cpp
microsoft-dtor-lookup-cxx11.cpp Remove the -cxx-abi command-line flag. 2014-01-14 19:35:09 +00:00
microsoft-dtor-lookup.cpp [Win32 ABI] Defer operator delete checks until vtable is marked used 2014-02-24 15:58:24 +00:00
microsoft-new-delete.cpp
missing-header.cpp
missing-members.cpp Allow CorrectTypo to replace CXXScopeSpecifiers that refer to classes. 2013-10-19 00:05:00 +00:00
missing-namespace-qualifier-typo-corrections.cpp Teach typo correction to look inside of classes like it does namespaces. 2013-09-26 19:10:29 +00:00
ms-exception-spec.cpp
ms-interface.cpp
ms-overload-entry-point.cpp [-cxx-abi microsoft] Correctly identify Win32 entry points 2013-09-16 22:44:20 +00:00
ms-wchar.cpp
ms_struct.cpp Adds Microsoft compatiable C++ record layout code to clang. 2013-10-11 20:19:00 +00:00
ms_wide_bitfield.cpp
namespace-alias.cpp
namespace.cpp
neon-vector-types.cpp Add error checking to reject neon_vector_type attribute on targets without NEON. 2013-09-16 18:07:35 +00:00
nested-name-spec-locations.cpp
nested-name-spec.cpp Improve diagnostic for using non-class/namespace/scoped enum in a nested name specifier. 2014-02-09 06:54:23 +00:00
new-array-size-conv.cpp
new-delete-0x.cpp Sema: Do not allow lambda expressions to appear inside of constant expressions 2013-10-25 09:12:52 +00:00
new-delete-cxx0x.cpp
new-delete-predefined-decl-2.cpp
new-delete-predefined-decl.cpp
new-delete.cpp PR18544: don't assert that 'operator new' is not declared inside a namespace; 2014-01-19 23:25:37 +00:00
new-null.cpp Issue a warning if a throwing operator new or operator new[] returns a null 2014-01-17 02:09:33 +00:00
no-exceptions.cpp
no-implicit-builtin-decls.cpp
no-rtti.cpp Allow dynamic_cast to void* even with -fno-rtti. 2013-09-24 23:21:41 +00:00
no-warn-composite-pointer-type.cpp
no-warn-unused-const-variables.cpp Split -Wunused-variable warning. 2013-09-11 10:37:35 +00:00
no-wchar.cpp
non-empty-class-size-zero.cpp
nonnull.cpp Combine the checks for returns_nonnull and for operator new returning null, in Sema::CheckReturnValExpr. Add the missing handling of value-dependent expressions for returns_nonnull. 2014-01-24 11:10:39 +00:00
null_in_arithmetic_ops.cpp PR16074, implement warnings to catch pointer to boolean true and pointer to 2014-02-26 02:36:06 +00:00
nullptr-98.cpp
nullptr.cpp
nullptr_in_arithmetic_ops.cpp PR16074, implement warnings to catch pointer to boolean true and pointer to 2014-02-26 02:36:06 +00:00
offsetof-0x.cpp
offsetof.cpp Sema: Consider it an error to apply __builtin_offsetof to a member in a virtual base 2013-10-15 06:28:23 +00:00
old-style-cast.cpp Add a triple to fix this test on Windows 2013-11-27 04:59:03 +00:00
operator-arrow-depth.cpp Revert "Don't require -re suffix on -verify directives with regexes." 2013-12-14 01:07:05 +00:00
operator-arrow-temporary.cpp
out-of-line-def-mismatch.cpp
overload-0x.cpp Fix string-literal to char* conversion in overload resolution for C++11 2014-01-17 21:08:52 +00:00
overload-call-copycon.cpp
overload-call.cpp
overload-decl.cpp Sema: Do not allow overloading between methods based on restrict 2013-11-03 23:51:28 +00:00
overload-member-call.cpp
overload-value-dep-arg.cpp
overloaded-builtin-operators-0x.cpp
overloaded-builtin-operators.cpp
overloaded-name.cpp
overloaded-operator-decl.cpp
overloaded-operator.cpp PR14995: Allow a dependent type as the second parameter of operator++ and 2014-01-30 22:24:05 +00:00
parentheses.cpp PR16727: don't try to evaluate a potentially value-dependent expression when 2013-08-19 22:06:05 +00:00
pascal-strings.cpp
pr9812.c Fix for PR9812: warn about bool instead of _Bool. 2014-01-15 09:15:43 +00:00
pr9812.cpp Fix for PR9812: warn about bool instead of _Bool. 2014-01-15 09:15:43 +00:00
pr13353.cpp
pr13394-crash-on-invalid.cpp Don't mark record decls invalid when one of its methods is invalid, PR18284. 2013-12-21 00:49:51 +00:00
pr18284-crash-on-invalid.cpp Don't mark record decls invalid when one of its methods is invalid, PR18284. 2013-12-21 00:49:51 +00:00
pragma-pack.cpp
pragma-unused.cpp
pragma-visibility.cpp
pragma-vtordisp.cpp MS ABI: Implement #pragma vtordisp() and clang-cl /vdN 2014-02-12 23:50:26 +00:00
pragma-weak.cpp
predefined-expr.cpp Handle PredefinedExpr with templates and lambdas 2013-09-16 13:57:27 +00:00
prefetch-enum.cpp
primary-base.cpp Remove the -cxx-abi command-line flag. 2014-01-14 19:35:09 +00:00
printf-block.cpp
printf-cstr.cpp
pseudo-destructors.cpp
ptrtomember-overload-resolution.cpp
ptrtomember.cpp
qual-id-test.cpp
qualification-conversion.cpp
qualified-id-lookup.cpp Revert "Don't require -re suffix on -verify directives with regexes." 2013-12-14 01:07:05 +00:00
qualified-member-enum.cpp
qualified-names-diag.cpp
redeclared-alias-template.cpp
redeclared-auto.cpp
ref-init-ambiguous.cpp
references.cpp PR13110: Add a -Wignored-qualifiers warning when ignoring a const, volatile, or 2014-02-19 00:13:27 +00:00
reinterpret-cast.cpp Revert "Don't require -re suffix on -verify directives with regexes." 2013-12-14 01:07:05 +00:00
reinterpret-fn-obj-pedantic.cpp
return-noreturn.cpp
return-stack-addr.cpp Don't produce a 'returning reference to local' warning if a lambda returns a 2014-01-30 22:05:38 +00:00
return.cpp Issue diagnostic when constructor or destructor 2013-12-03 17:10:08 +00:00
runtimediag-ppe.cpp
rval-references-examples.cpp Implemented delayed processing of 'unavailable' checking, just like with 'deprecated'. 2013-12-18 23:30:06 +00:00
rval-references.cpp
scope-check.cpp PR18217: Rewrite JumpDiagnostics' handling of temporaries, to correctly handle 2013-12-12 01:27:02 +00:00
self-comparison.cpp Add self-comparison warnings for fields. 2013-09-06 03:13:09 +00:00
shift.cpp
short-enums.cpp
short-wchar-sign.cpp
sourceranges.cpp Build an appropriate (albeit trivial) TypeSourceInfo for a destructor name, so 2014-01-22 00:30:17 +00:00
statements.cpp
static-array-member.cpp
static-assert.cpp
static-cast-complete-type.cpp
static-cast.cpp Sema: Fix crash during member pointer conversion involving incomplete classes 2014-01-16 12:02:55 +00:00
static-data-member.cpp
static-initializers.cpp
storage-class.cpp Added warning on structures/unions that are empty or contain only 2013-11-14 02:13:03 +00:00
string-init.cpp
string-plus-char.cpp Add -Wstring-plus-char, which warns when adding char literals to C strings. 2013-10-25 16:52:00 +00:00
string-plus-int.cpp
struct-class-redecl.cpp
switch-0x.cpp
switch-implicit-fallthrough-cxx98.cpp
switch-implicit-fallthrough-macro.cpp
switch-implicit-fallthrough-per-method.cpp
switch-implicit-fallthrough.cpp
switch.cpp
tag-ambig.cpp
templated-friend-decl.cpp
this.cpp
trailing-return-0x.cpp Fix crash-on-invalid if decltype(auto) is used as a deduced return type in 2014-02-14 22:17:32 +00:00
trivial-constructor.cpp
trivial-destructor.cpp
type-convert-construct.cpp
type-definition-in-specifier.cpp
type-dependent-exprs.cpp
type-formatting.cpp
type-traits-incomplete.cpp
type-traits.cpp MSVC 2013 type trait support 2014-01-20 00:24:09 +00:00
typedef-redecl.cpp
typeid-ref.cpp type_info objects are not unnamed_addr: the ABI requires us to 2014-02-08 03:26:05 +00:00
typeid.cpp
types_compatible_p.cpp Don't reserve __builtin_types_compatible_p as a C++ keyword 2013-12-25 01:47:02 +00:00
typo-correction-pt2.cpp Enable correcting a member declaration where the type is class template, 2014-02-13 20:14:07 +00:00
typo-correction.cpp Use the appropriate SourceLocation for the template backtrace when doing 2014-01-11 02:37:12 +00:00
unary-real-imag.cpp
undefined-inline.cpp
undefined-internal.cpp Consistently print anonymous namespace names as "<anonymous namespace>" 2014-02-14 22:12:54 +00:00
underlying_type.cpp
uninit-variables-conditional.cpp
uninit-variables.cpp
uninitialized.cpp Fix a tranche of comment, test and doc typos 2013-12-05 16:25:25 +00:00
unknown-anytype-blocks.cpp
unknown-anytype.cpp
unknown-type-name.cpp
unreachable-catch-clauses.cpp
unreachable-code.cpp
unused-functions.cpp
unused-with-error.cpp
unused.cpp
user-defined-conversions.cpp
using-decl-1.cpp Restrict redeclaration of tags introduced by using decls to MSVCCompat 2014-01-18 00:59:32 +00:00
using-decl-pr4441.cpp
using-decl-pr4450.cpp
using-decl-templates.cpp
using-directive.cpp
value-dependent-exprs.cpp
value-initialization.cpp
vararg-default-arg.cpp
vararg-non-pod.cpp
vector-casts.cpp Tighten lax vector-conversion rules and enforce them consistently. 2014-02-04 23:58:19 +00:00
vector-no-lax.cpp
vector.cpp vector_size cannot be applied to Booleans. Updated the semantic checking logic, as well as the comment and added a test case. Fixes PR12649 2013-09-13 20:43:08 +00:00
virtual-base-used.cpp Remove the -cxx-abi command-line flag. 2014-01-14 19:35:09 +00:00
virtual-member-functions-key-function.cpp
virtual-override-x64.cpp
virtual-override-x86.cpp Remove the -cxx-abi command-line flag. 2014-01-14 19:35:09 +00:00
virtual-override.cpp Remove the -cxx-abi command-line flag. 2014-01-14 19:35:09 +00:00
virtuals.cpp Warn on duplicate function specifier 2013-11-13 06:57:53 +00:00
visibility.cpp
vla.cpp PR18581: Attempt to complete the type in a VLA declaration before checking 2014-02-08 02:30:49 +00:00
vtable-instantiation.cc
vtordisp-mode.cpp MS ABI: Implement #pragma vtordisp() and clang-cl /vdN 2014-02-12 23:50:26 +00:00
warn-absolute-value-header.cpp Add -Wabsolute-value, warnings about absolute value functions. 2014-02-26 01:17:28 +00:00
warn-assignment-condition.cpp
warn-bad-memaccess.cpp
warn-bool-conversion.cpp PR16074, implement warnings to catch pointer to boolean true and pointer to 2014-02-26 02:36:06 +00:00
warn-c++11-extensions.cpp
warn-cast-align.cpp
warn-char-subscripts.cpp
warn-consumed-analysis.cpp Consumed analysis: bugfix for operator calls. Also fixes some formatting 2014-01-16 23:07:16 +00:00
warn-consumed-parsing.cpp Consumed analysis: add two new attributes which fine-tune the behavior of 2014-01-14 00:36:53 +00:00
warn-dangling-field.cpp
warn-deprecated-header.cpp
warn-div-or-rem-by-zero.cpp
warn-empty-body.cpp Make Preprocessor::Lex non-recursive. 2013-09-19 00:41:32 +00:00
warn-enum-compare.cpp
warn-everthing.cpp
warn-exit-time-destructors.cpp
warn-func-not-needed.cpp Consider hidden decls for isUsed checks. 2013-10-22 21:56:29 +00:00
warn-global-constructors.cpp
warn-implicit-conversion-floating-point-to-bool.cpp
warn-infinite-recursion.cpp Ignore qualified templated functions for -Winfinite-recursion. This treats 2014-01-04 01:57:42 +00:00
warn-large-by-value-copy.cpp
warn-literal-conversion.cpp
warn-logical-not-compare.cpp
warn-loop-analysis.cpp Add a new warning to -Wloop-analysis to detect suspicious increments or 2013-08-06 21:31:54 +00:00
warn-member-not-needed.cpp
warn-memset-bad-sizeof.cpp
warn-memsize-comparison.cpp Warn on mismatched parentheses in memcmp and friends. 2013-12-26 23:38:39 +00:00
warn-missing-noreturn.cpp
warn-missing-prototypes.cpp
warn-missing-variable-declarations.cpp Fix -Wmissing-variable-declarations regression. 2013-09-24 23:10:08 +00:00
warn-new-overaligned-2.cpp
warn-new-overaligned-3.cpp
warn-new-overaligned.cpp Issue a warning if a throwing operator new or operator new[] returns a null 2014-01-17 02:09:33 +00:00
warn-overloaded-virtual.cpp
warn-pure-virtual-call-from-ctor-dtor.cpp
warn-reinterpret-base-class.cpp Remove the -cxx-abi command-line flag. 2014-01-14 19:35:09 +00:00
warn-reorder-ctor-initialization.cpp
warn-self-assign.cpp
warn-self-comparisons.cpp
warn-shadow.cpp
warn-sign-conversion.cpp
warn-static-const-float.cpp
warn-static-function-inheader.cpp
warn-static-function-inheader.h
warn-string-conversion.cpp Broaden -Wstring-conversion to catch string literals in logical or expressions. 2014-01-25 01:10:35 +00:00
warn-sysheader-macro.cpp Suppress -Wshadow / -Wold-style-cast expanded from system header macros 2013-12-12 12:47:48 +00:00
warn-tautological-compare.cpp PR16074, implement warnings to catch pointer to boolean true and pointer to 2014-02-26 02:36:06 +00:00
warn-thread-safety-analysis.cpp Thread safety analysis: handle duplicate assert_lock attributes. 2014-01-23 22:35:26 +00:00
warn-thread-safety-parsing.cpp DeLesley Hutchins (who wrote the original thread-safety attribute functionality) and I have agreed to start migrating from lock-specific terminology to "capability"-specific terminology. This opens the door for future threading-related analysis passes so that a common nomenclature can be used. 2014-02-18 17:36:50 +00:00
warn-unreachable.cpp Switch the semantic DeclContext for a block-scope declaration of a function or 2013-09-20 01:15:31 +00:00
warn-unsequenced.cpp
warn-unused-attribute.cpp Enabling the subject list for the warn_unused attribute, and adding a test case. Previously, would issue a "warning ignored" diagnostic instead of the more specific "only applies to." 2013-11-27 16:59:17 +00:00
warn-unused-comparison.cpp
warn-unused-filescoped.cpp Consider used attributes in hidden decls. 2013-10-25 01:28:12 +00:00
warn-unused-parameters.cpp
warn-unused-private-field.cpp Modify the uninitialized field visitor to detect uninitialized use across the 2013-09-20 03:03:06 +00:00
warn-unused-result.cpp Sema: Simplify the check if a method returns an instance of the class. 2013-10-16 16:21:04 +00:00
warn-unused-value.cpp Sema: Reject templates in all extern "C" contexts. 2014-02-02 16:35:43 +00:00
warn-unused-variables-error.cpp
warn-unused-variables.cpp PR8455: Handle an attribute between a goto label and a variable declaration per 2013-11-15 22:45:29 +00:00
warn-using-namespace-in-header.cpp Split isFromMainFile into two functions. 2013-08-22 00:27:10 +00:00
warn-variable-not-needed.cpp
warn-vla.cpp
warn-weak-vtables.cpp Remove the -cxx-abi command-line flag. 2014-01-14 19:35:09 +00:00
wchar_t.cpp
writable-strings-deprecated.cpp Add -Wdeprecated-writable-string in C++ to -Wc++11-compat, since it's ill-formed in C++11. 2013-11-14 22:22:31 +00:00
zero-length-arrays.cpp