Alexander Kornienko
f3321c5f68
[clang-tidy] readability-redundant-declaration: ignore friends and macros
...
llvm-svn: 309379
2017-07-28 12:46:02 +00:00
Alexander Kornienko
1e034c3f22
[clang-tidy] readability-redundant-declaration false positive for defaulted function
...
Summary:
```
template <class T>
struct C {
C();
};
template <class T>
C<T>::C() = default;
```
Causes a readability-redundant-declaration diagnostic. This is caused by `isDefinition` not matching defaulted functions.
Reviewers: alexfh, danielmarjamaki
Reviewed By: alexfh
Subscribers: xazax.hun, cfe-commits
Patch by Florian Gross!
Differential Revision: https://reviews.llvm.org/D33358
llvm-svn: 303552
2017-05-22 13:58:57 +00:00
Daniel Marjamaki
80c3b17410
[clang-tidy] Fix readability-redundant-declaration false positive
...
Differential Revision: https://reviews.llvm.org/D27048
llvm-svn: 296100
2017-02-24 09:02:44 +00:00
Daniel Marjamaki
13e45e135f
clang-tidy: improve my test for readability-redundant-declaration
...
llvm-svn: 287550
2016-11-21 16:08:17 +00:00
Daniel Marjamaki
d752c44612
clang-tidy: Attempt to fix build bot failure with mismatching size_t platform type.
...
llvm-svn: 287546
2016-11-21 15:46:40 +00:00
Daniel Marjamaki
ae66045705
readability-redundant-declaration: Fix crash
...
Differential Revision: https://reviews.llvm.org/D26911
llvm-svn: 287540
2016-11-21 14:29:53 +00:00
Daniel Marjamaki
399a50cf35
[clang-tidy] Add check readability-redundant-declaration
...
Finds redundant variable and function declarations.
extern int X;
extern int X; // <- redundant
Differential Revision: https://reviews.llvm.org/D24656
llvm-svn: 285689
2016-11-01 13:26:15 +00:00