summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/misc-unused-using-decls.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [ClangTidy] Separate tests for infrastructure and checkersDmitri Gribenko2019-10-111-213/+0
| | | | | | | | | | | | | | | | | | | | Summary: This change moves tests for checkers and infrastructure into separate directories, making it easier to find infrastructure tests. Tests for checkers are already easy to find because they are named after the checker. Tests for infrastructure were difficult to find because they were outnumbered by tests for checkers. Now they are in a separate directory. Reviewers: jfb, jdoerfert, lebedev.ri Subscribers: srhines, nemanjai, aheejin, kbarton, christof, mgrang, arphaman, jfb, lebedev.ri, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D68807 llvm-svn: 374540
* [clang-tidy] Fix a false positive in unused-using-decl checkHaojian Wu2019-09-031-0/+9
| | | | | | | | | | The previous matcher "hasAnyTemplateArgument(templateArgument())" only matches the first template argument, but the check wants to iterate all template arguments. This patch fixes this. Also some refactorings in this patch (to make the code reusable). llvm-svn: 370760
* [clang-tidy] Verify fix description for misc-unused-using-decl.Haojian Wu2019-05-281-0/+1
| | | | | | | | | | | | Reviewers: gribozavr Subscribers: xazax.hun, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D62522 llvm-svn: 361833
* [clang-tidy] Fix template agrument false positives in unused-using-decls.Haojian Wu2016-10-111-0/+30
| | | | | | | | | | | | | | Summary: * Fix a false postive when an using class is used in an explicit template instantiation. * Fix a false postive when an using template class is used as template argument. Reviewers: aaron.ballman Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D25437 llvm-svn: 283879
* [clang-tidy] Fix an unused-using-decl false positive about template arguments inHaojian Wu2016-08-021-1/+20
| | | | | | | | | | | | | | | | function call expression. Summary: The check doesn't mark the template argument as used when the template argument is a template. Reviewers: djasper, alexfh Subscribers: klimek, cfe-commits Differential Revision: https://reviews.llvm.org/D22803 llvm-svn: 277444
* [clang-tidy] Fix more enum declaration cases in misc-unused-using-decls check.Haojian Wu2016-07-041-9/+15
| | | | | | | | | | | | Summary: Fix PR28350. Reviewers: alexfh Subscribers: aaron.ballman, Eugene.Zelenko, cfe-commits Differential Revision: http://reviews.llvm.org/D21833 llvm-svn: 274496
* [clang-tidy] Warning enum unused using declarations.Haojian Wu2016-06-271-1/+15
| | | | | | | | | | Reviewers: alexfh, aaron.ballman Subscribers: aaron.ballman, cfe-commits Differential Revision: http://reviews.llvm.org/D21747 llvm-svn: 273882
* [clang-tidy] Ignore function context in misc-unused-using-decls.Haojian Wu2016-06-031-1/+20
| | | | | | | | | | | | Summary: Make the check's behavior more correct when handling using-decls in multiple scopes. Reviewers: alexfh Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D20909 llvm-svn: 271632
* Fix a wrong check in misc-unused-using-declsHaojian Wu2016-05-301-0/+6
| | | | | | | | | | | | | | 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 llvm-svn: 271199
* [clang-tidy] Handle using-decls with more than one shadow decl.Haojian Wu2016-05-201-0/+6
| | | | | | | | | | Reviewers: alexfh Subscribers: cfe-commits, djasper Differential Revision: http://reviews.llvm.org/D20429 llvm-svn: 270191
* [clang-tidy] Fix misc-unused-using-decls test failure in windowsHaojian Wu2016-05-181-1/+1
| | | | | | buildbot. llvm-svn: 269918
* [clang-tidy] Fix a template function false positive in ↵Haojian Wu2016-05-181-0/+9
| | | | | | | | | | | | | | misc-unused-using-decls check. Summary: Ignore warning uninstantiated template function usages. Reviewers: djasper, alexfh Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D20326 llvm-svn: 269906
* [clang-tidy] Ignore using-declarations defined in marcro in ↵Haojian Wu2016-05-121-0/+8
| | | | | | | | | | | | misc-unused-using-decls checks. Reviewers: djasper Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D20197 llvm-svn: 269278
* Support variables and functions types in misc-unused-using-decls.Haojian Wu2016-05-091-0/+51
| | | | | | | | | | | | Summary: Fix PR27429. Reviewers: djasper Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D20018 llvm-svn: 268917
* clang-tidy: [misc-unused-using-decls] Support template types.Daniel Jasper2016-04-201-0/+7
| | | | | | This fixes llvm.org/PR27429. llvm-svn: 266866
* clang-tidy: [misc-unused-using-decls] Always use the canonical decl toDaniel Jasper2016-04-201-0/+1
| | | | | | | | identify things. This fixes llvm.org/PR27430. llvm-svn: 266864
* Initial version of misc-unused-using-decl check.Daniel Jasper2016-04-191-0/+27
llvm-svn: 266735
OpenPOWER on IntegriCloud