clang-tools-extra/clang-tidy/misc
Haojian Wu 19bc5e9223 Fix a wrong check in misc-unused-using-decls
Summary:
We should check whether a UsingDecl is defined in macros or in class
definition, not TargetDecls of the UsingDecl.

Reviewers: alexfh

Subscribers: cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@271199 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-30 07:42:22 +00:00
..
ArgumentCommentCheck.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
ArgumentCommentCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
AssertSideEffectCheck.cpp [clang-tidy] Cleaning namespaces to be more consistant across checkers. 2016-05-02 18:00:29 +00:00
AssertSideEffectCheck.h [clang-tidy] Cleaning namespaces to be more consistant across checkers. 2016-05-02 18:00:29 +00:00
BoolPointerImplicitConversionCheck.cpp [clang-tidy] Lift common matchers to utils namespace 2016-05-17 19:36:09 +00:00
BoolPointerImplicitConversionCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
CMakeLists.txt [clang-tidy] Add missing dependency of libtooling to misc module 2016-05-11 21:32:29 +00:00
DanglingHandleCheck.cpp [clang-tidy] Lift parsing of sequence of names functions to utils. 2016-05-10 15:31:15 +00:00
DanglingHandleCheck.h [clang-tidy] Add check to detect dangling references in value handlers. 2016-03-29 18:02:26 +00:00
DefinitionsInHeadersCheck.cpp [clang-tidy] Remove unnecessary getName() on Decls and Types feeding into a DiagnosticBuilder 2016-04-07 14:55:25 +00:00
DefinitionsInHeadersCheck.h [clang-tdiy] Add header file extension configuration support. 2016-02-05 11:23:59 +00:00
FoldInitTypeCheck.cpp A clang-tidy check for std:accumulate. 2016-04-26 10:05:45 +00:00
FoldInitTypeCheck.h A clang-tidy check for std:accumulate. 2016-04-26 10:05:45 +00:00
ForwardDeclarationNamespaceCheck.cpp [clang-tidy] Remove unnecessary getName() on Decls and Types feeding into a DiagnosticBuilder 2016-04-07 14:55:25 +00:00
ForwardDeclarationNamespaceCheck.h [clang-tidy] Added a check for forward declaration in the potentially wrong namespace 2016-02-24 13:35:32 +00:00
InaccurateEraseCheck.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
InaccurateEraseCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
IncorrectRoundings.cpp [clang-tidy] Cleaning namespaces to be more consistant across checkers. 2016-05-02 18:00:29 +00:00
IncorrectRoundings.h [clang-tidy] Correct IncorrectRoundings namespace. 2016-02-08 15:54:30 +00:00
InefficientAlgorithmCheck.cpp [clang-tidy] Fix check broken in rL263822. 2016-03-21 18:00:43 +00:00
InefficientAlgorithmCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
MacroParenthesesCheck.cpp Commiting for http://reviews.llvm.org/D20365 2016-05-23 18:06:29 +00:00
MacroParenthesesCheck.h [clang-tidy] Cleaning namespaces to be more consistant across checkers. 2016-05-02 18:00:29 +00:00
MacroRepeatedSideEffectsCheck.cpp [clang-tidy] Fix misc-macro-repeated-side-effects false positive with stringified arguments 2016-04-23 00:00:08 +00:00
MacroRepeatedSideEffectsCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
MiscTidyModule.cpp [clang-tidy] New: checker misc-unconventional-assign-operator replacing misc-assign-operator-signature 2016-05-04 12:02:22 +00:00
MisplacedWideningCastCheck.cpp [clang-tidy] Cleanup some ast-matchers and lift some to utils. 2016-04-21 16:57:56 +00:00
MisplacedWideningCastCheck.h [clang-tidy] Extension of checker misc-misplaced-widening-cast 2016-04-06 12:04:51 +00:00
MoveConstantArgumentCheck.cpp [clang-tidy] Cleaning namespaces to be more consistant across checkers. 2016-05-02 18:00:29 +00:00
MoveConstantArgumentCheck.h [clang-tidy] Const std::move() argument ClangTidy check 2015-11-25 15:56:11 +00:00
MoveConstructorInitCheck.cpp [clang-tidy] Switch to a more common way of customizing check behavior. 2016-05-20 13:42:40 +00:00
MoveConstructorInitCheck.h [clang-tidy] Cleanup namespace in utils folder. 2016-05-03 02:54:05 +00:00
MultipleStatementMacroCheck.cpp [clang-tidy] Add check misc-multiple-statement-macro 2016-04-14 21:15:57 +00:00
MultipleStatementMacroCheck.h [clang-tidy] Add check misc-multiple-statement-macro 2016-04-14 21:15:57 +00:00
NewDeleteOverloadsCheck.cpp [clang-tidy] Cleaning namespaces to be more consistant across checkers. 2016-05-02 18:00:29 +00:00
NewDeleteOverloadsCheck.h Adding a checker (misc-new-delete-overloads) that detects mismatched overloads of operator new and operator delete. Corresponds to the CERT C++ secure coding rule: https://www.securecoding.cert.org/confluence/display/cplusplus/DCL54-CPP.+Overload+allocation+and+deallocation+functions+as+a+pair+in+the+same+scope 2015-09-29 13:12:21 +00:00
NoexceptMoveConstructorCheck.cpp [clang-tidy] Cleaning namespaces to be more consistant across checkers. 2016-05-02 18:00:29 +00:00
NoexceptMoveConstructorCheck.h [clang-tidy] Cleaning namespaces to be more consistant across checkers. 2016-05-02 18:00:29 +00:00
NonCopyableObjects.cpp [clang-tidy] Cleaning namespaces to be more consistant across checkers. 2016-05-02 18:00:29 +00:00
NonCopyableObjects.h [clang-tidy] Cleaning namespaces to be more consistant across checkers. 2016-05-02 18:00:29 +00:00
PointerAndIntegralOperationCheck.cpp [clang-tidy] Cleanup some ast-matchers and lift some to utils. 2016-04-21 16:57:56 +00:00
PointerAndIntegralOperationCheck.h [clang-tidy] Add checker for operations between integrals and pointers 2016-04-15 16:31:15 +00:00
RedundantExpressionCheck.cpp [clang-tidy] Improve misc-redundant-expression and decrease false-positive 2016-05-12 04:32:47 +00:00
RedundantExpressionCheck.h [clang-tidy] New checker for redundant expressions. 2016-04-26 17:30:30 +00:00
SizeofContainerCheck.cpp [clang-tidy] Cleaning namespaces to be more consistant across checkers. 2016-05-02 18:00:29 +00:00
SizeofContainerCheck.h [clang-tidy] Cleaning namespaces to be more consistant across checkers. 2016-05-02 18:00:29 +00:00
SizeofExpressionCheck.cpp [clang-tidy] Cleanup some ast-matchers and lift some to utils. 2016-04-21 16:57:56 +00:00
SizeofExpressionCheck.h Add missing override keyword to silence -Winconsistent-missing-override. NFC 2016-04-16 02:42:03 +00:00
StaticAssertCheck.cpp [clang-tidy] Speedup misc-static-assert. 2016-05-03 20:11:09 +00:00
StaticAssertCheck.h [clang-tidy] Cleaning namespaces to be more consistant across checkers. 2016-05-02 18:00:29 +00:00
StringConstructorCheck.cpp [clang-tidy] Add FixIt for swapping arguments in string-constructor-checker. 2016-05-11 17:32:12 +00:00
StringConstructorCheck.h [Clang-tidy] Fix Clang warning in misc/StringConstructorCheck.h. 2016-04-22 21:33:33 +00:00
StringIntegerAssignmentCheck.cpp [clang-tidy] Cleaning namespaces to be more consistant across checkers. 2016-05-02 18:00:29 +00:00
StringIntegerAssignmentCheck.h [clang-tidy] Cleaning namespaces to be more consistant across checkers. 2016-05-02 18:00:29 +00:00
StringLiteralWithEmbeddedNulCheck.cpp [clang-tidy] add new checker for string literal with NUL character. 2016-04-07 16:16:36 +00:00
StringLiteralWithEmbeddedNulCheck.h [clang-tidy] add new checker for string literal with NUL character. 2016-04-07 16:16:36 +00:00
SuspiciousMissingCommaCheck.cpp [clang-tidy] Reduce false-positive ratio in misc-suspicious-missing-comma check. 2016-04-04 15:46:38 +00:00
SuspiciousMissingCommaCheck.h [clang-tidy] Reduce false-positive ratio in misc-suspicious-missing-comma check. 2016-04-04 15:46:38 +00:00
SuspiciousSemicolonCheck.cpp [clang-tidy] Cleanup namespace in utils folder. 2016-05-03 02:54:05 +00:00
SuspiciousSemicolonCheck.h [clang-tidy] Add a check to find unintended semicolons that changes the semantics. 2016-02-11 09:23:33 +00:00
SuspiciousStringCompareCheck.cpp [clang-tidy] Lift parsing of sequence of names functions to utils. 2016-05-10 15:31:15 +00:00
SuspiciousStringCompareCheck.h [clang-tidy] Add new checker for comparison with runtime string functions. 2016-04-21 17:19:36 +00:00
SwappedArgumentsCheck.cpp [clang-tidy] Refactoring of FixHintUtils 2016-05-11 17:38:22 +00:00
SwappedArgumentsCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
ThrowByValueCatchByReferenceCheck.cpp [clang-tidy] Cleaning namespaces to be more consistant across checkers. 2016-05-02 18:00:29 +00:00
ThrowByValueCatchByReferenceCheck.h [clang-tidy] Cleaning namespaces to be more consistant across checkers. 2016-05-02 18:00:29 +00:00
UnconventionalAssignOperatorCheck.cpp Trying to fix docs. 2016-05-09 10:56:57 +00:00
UnconventionalAssignOperatorCheck.h Trying to fix docs. 2016-05-09 10:56:57 +00:00
UndelegatedConstructor.cpp [clang-tidy] Cleaning namespaces to be more consistant across checkers. 2016-05-02 18:00:29 +00:00
UndelegatedConstructor.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
UniqueptrResetReleaseCheck.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
UniqueptrResetReleaseCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
UnusedAliasDeclsCheck.cpp [clang-tidy] Cleaning namespaces to be more consistant across checkers. 2016-05-02 18:00:29 +00:00
UnusedAliasDeclsCheck.h [clang-tidy] Cleaning namespaces to be more consistant across checkers. 2016-05-02 18:00:29 +00:00
UnusedParametersCheck.cpp [clang-tidy] Cleaning namespaces to be more consistant across checkers. 2016-05-02 18:00:29 +00:00
UnusedParametersCheck.h [clang-tidy] Cleaning namespaces to be more consistant across checkers. 2016-05-02 18:00:29 +00:00
UnusedRAIICheck.cpp [clang-tidy] Cleaning namespaces to be more consistant across checkers. 2016-05-02 18:00:29 +00:00
UnusedRAIICheck.h [clang-tidy] Updated misc-unused-raii documentation. 2015-09-25 17:50:11 +00:00
UnusedUsingDeclsCheck.cpp Fix a wrong check in misc-unused-using-decls 2016-05-30 07:42:22 +00:00
UnusedUsingDeclsCheck.h [clang-tidy] Handle using-decls with more than one shadow decl. 2016-05-20 08:34:32 +00:00
VirtualNearMissCheck.cpp Merge branch 'arcpatch-D16922' 2016-02-11 16:03:27 +00:00
VirtualNearMissCheck.h Merge branch 'arcpatch-D16922' 2016-02-11 16:03:27 +00:00