llvm-project/clang-tools-extra/clang-tidy/google
Alexander Kornienko dcbe5a9d17 [clang-tidy] Fix a false positive in google-runtime-memset
google-runtime-memset no longer issues a warning if the fill char value
is known to be an invalid fill char count.

Namely, it no longer warns for these:

  memset(p, 0, 0);
  memset(p, -1, 0);

In both cases, swapping the last two args would either be useless (there is
no actual bug) or wrong (it would introduce a bug).

Patch by Matt Armstrong!

llvm-svn: 257320
2016-01-11 10:26:29 +00:00
..
AvoidCStyleCastsCheck.cpp [clang-tidy] Use proper capitalization and punctuation for diagnostic messages. 2016-01-08 15:21:40 +00:00
AvoidCStyleCastsCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
CMakeLists.txt [clang-tidy] Move google-readability-function check to readability-named-parameter. 2015-03-16 22:31:16 +00:00
ExplicitConstructorCheck.cpp [clang-tidy] google-explicit-constructor: improve the warning message 2015-11-28 02:25:02 +00:00
ExplicitConstructorCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
ExplicitMakePairCheck.cpp Disable clang-tidy Google checkers when not compiling in C++ mode. None of the checkers require additional testing as the tests will not compile for other languages or modes, or the checkers would never match a valid construct. 2015-09-02 16:20:42 +00:00
ExplicitMakePairCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
GlobalNamesInHeadersCheck.cpp Fix false positive on anonymous namespaces in headers. 2015-03-24 15:21:45 +00:00
GlobalNamesInHeadersCheck.h [clang-tidy] Fixed header guards using clang-tidy llvm-header-guard check. NFC. 2015-03-09 16:52:33 +00:00
GoogleTidyModule.cpp [clang-tidy] Move google-readability-function check to readability-named-parameter. 2015-03-16 22:31:16 +00:00
IntegerTypesCheck.cpp [clang-tidy] google-runtime-int: made the matcher more restricting, added a test for a false positive 2015-09-16 15:08:46 +00:00
IntegerTypesCheck.h [clang-tidy] Make google-runtime-int configurable. 2015-09-16 14:36:22 +00:00
Makefile
MemsetZeroLengthCheck.cpp [clang-tidy] Fix a false positive in google-runtime-memset 2016-01-11 10:26:29 +00:00
MemsetZeroLengthCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
OverloadedUnaryAndCheck.cpp Refactors AST matching code to use the new AST matcher names. This patch correlates to r247885 which performs the AST matcher rename in Clang. 2015-09-17 13:31:25 +00:00
OverloadedUnaryAndCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
StringReferenceMemberCheck.cpp [clang-tidy] Use proper capitalization and punctuation for diagnostic messages. 2016-01-08 15:21:40 +00:00
StringReferenceMemberCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
TodoCommentCheck.cpp [clang-tidy] Refactor: Move google clang-tidy checks to namespace clang::tidy::google 2015-03-05 13:46:14 +00:00
TodoCommentCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
UnnamedNamespaceInHeaderCheck.cpp [clang-tidy] Use proper capitalization and punctuation for diagnostic messages. 2016-01-08 15:21:40 +00:00
UnnamedNamespaceInHeaderCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
UsingNamespaceDirectiveCheck.cpp [clang-tidy] Use proper capitalization and punctuation for diagnostic messages. 2016-01-08 15:21:40 +00:00
UsingNamespaceDirectiveCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00