summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/readability/RedundantDeclarationCheck.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [clang-tidy] readability-redundant-declaration: fix false positive with C ↵Matthias Gehre2019-05-131-2/+8
| | | | | | | | | | | | | | | | | | | "extern inline" Summary: readability-redundant-declaration was diagnosing a redundant declaration on "extern inline void f();", which is needed in C code to force an external definition of the inline function f. (This is different to how inline behaves in C++). Reviewers: alexfh, danielmarjamaki Subscribers: xazax.hun, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D61700 llvm-svn: 360613
* Update the file headers across all of the LLVM projects in the monorepoChandler Carruth2019-01-191-4/+3
| | | | | | | | | | | | | | | | | to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351636
* Port getLocStart -> getBeginLocStephen Kelly2018-08-091-1/+1
| | | | | | | | | | Reviewers: javed.absar Subscribers: nemanjai, kbarton, ilya-biryukov, ioeric, jkorous, arphaman, jfb, cfe-commits Differential Revision: https://reviews.llvm.org/D50354 llvm-svn: 339400
* [clang-tidy] readability-redundant-declaration: ignore friends and macrosAlexander Kornienko2017-07-281-3/+15
| | | | llvm-svn: 309379
* [clang-tidy] readability-redundant-declaration false positive for defaulted ↵Alexander Kornienko2017-05-221-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* [clang-tidy] Fix readability-redundant-declaration false positiveDaniel Marjamaki2017-02-241-8/+4
| | | | | | Differential Revision: https://reviews.llvm.org/D27048 llvm-svn: 296100
* modernize-use-auto NFC fixesPiotr Padlewski2016-12-141-1/+1
| | | | llvm-svn: 289656
* readability-redundant-declaration: Fix crashDaniel Marjamaki2016-11-211-0/+2
| | | | | | Differential Revision: https://reviews.llvm.org/D26911 llvm-svn: 287540
* [clang-tools-extra] Format sources with clang-format. NFC.Mandeep Singh Grang2016-11-081-5/+5
| | | | | | | | | | | | | | | | Summary: Ran clang-format on all .c/.cpp/.h files in clang-tools-extra. Excluded the test, unittests, clang-reorder-fields, include-fixer, modularize and pptrace directories. Reviewers: klimek, alexfh Subscribers: nemanjai Tags: #clang-tools-extra Differential Revision: https://reviews.llvm.org/D26329 llvm-svn: 286221
* [clang-tidy] Add check readability-redundant-declarationDaniel Marjamaki2016-11-011-0/+71
Finds redundant variable and function declarations. extern int X; extern int X; // <- redundant Differential Revision: https://reviews.llvm.org/D24656 llvm-svn: 285689
OpenPOWER on IntegriCloud