| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
llvm-svn: 281313
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
size() and empty()
This patch extends readability-container-size-empty check allowing it to produce
warnings not only for STL containers, but also for containers, which provide two
functions matching following signatures:
* `size_type size() const;`
* `bool empty() const;`
Where `size_type` can be any kind of integer type.
This functionality was proposed in https://llvm.org/bugs/show_bug.cgi?id=26823
by Eugene Zelenko.
Approval: alexfh
Reviewers: alexfh, aaron.ballman, Eugene.Zelenko
Subscribers: etienneb, Prazek, hokein, xazax.hun, cfe-commits
Differential Revision: https://reviews.llvm.org/D24349
llvm-svn: 281307
|
| |
|
|
|
|
|
|
|
|
| |
when array index is misplaced.
Reviewers: alexfh
Differential Revision: https://reviews.llvm.org/D21134
llvm-svn: 281206
|
| |
|
|
|
|
|
|
|
|
| |
This reverts commit r280839.
It's problematic on OS X, where the '/Users/...' paths are interpreted
as '/U' options.
Investigation ongoing in http://llvm.org/PR30328.
llvm-svn: 280975
|
| |
|
|
|
|
|
| |
Over-zealous cleanup of using statements removed some that were
actually needed. Also cleaned up a few warnings.
llvm-svn: 280844
|
| |
|
|
|
|
|
|
|
|
|
| |
For now this only adds the UI necessary to configure clang-tidy
settings graphically, and it enables reading in and saving out
of .clang-tidy files. It does not actually run clang-tidy on
any source files yet.
Differential Revision: https://reviews.llvm.org/D23848
llvm-svn: 280840
|
| |
|
|
|
|
|
|
| |
This was originally reverted because the patch on the clang
tooling side was reverted. That patch is being resubmitted,
so this patch is resubmitted as well.
llvm-svn: 280839
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
* Add a `query-symbol` option to query symbol without parsing the source file.
* Update Vim & Emacs integration scripts.
Reviewers: bkramer, massberg
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D24075
llvm-svn: 280824
|
| |
|
|
|
|
|
|
| |
You Use warnings; other minor fixes.
Differential revision: https://reviews.llvm.org/D24179
llvm-svn: 280741
|
| |
|
|
|
|
| |
Differential revision: https://reviews.llvm.org/D24201
llvm-svn: 280725
|
| |
|
|
| |
llvm-svn: 280653
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
flow statement body.
Although it is not explicitly stated in LLVM Coding Standards, LLVM developers
prefer to omit braces around flow control statements with single line body.
For example the following piece of code
```
if (condition)
std::cout << "Hello, world!" << std::endl;
```
is preferred to
```
if (condition) {
std::cout << "Hello, world!" << std::endl;
}
```
So far clang-rename has ignored this. This patch makes clang-rename more
"LLVM-ish".
llvm-svn: 280640
|
| |
|
|
|
|
|
| |
For some reason clang-rename fails to rename method of templated class. Add
XFAIL test reproducing the issue.
llvm-svn: 280639
|
| |
|
|
|
|
|
|
|
| |
Patch by Eugene Zelenko!
Differential Revision: https://reviews.llvm.org/D24178
Reviewers: omtcyfz
llvm-svn: 280638
|
| |
|
|
| |
llvm-svn: 280539
|
| |
|
|
|
|
|
|
|
|
| |
This diff adds v0 of clang-reorder-fields tool to clang/tools/extra.
The main idea behind this tool is to simplify and make less error-prone refactoring of large codebases when
someone needs to change the order fields of a struct/class (for example to remove excessive padding).
Differential revision: https://reviews.llvm.org/D23279
llvm-svn: 280456
|
| |
|
|
|
|
| |
several platforms
llvm-svn: 280438
|
| |
|
|
|
|
|
|
|
|
| |
This diff adds v0 of clang-reorder-fields tool to clang/tools/extra.
The main idea behind this tool is to simplify and make less error-prone refactoring of large codebases when
someone needs to change the order fields of a struct/class (for example to remove excess padding).
Differential revision: https://reviews.llvm.org/D23279
llvm-svn: 280431
|
| |
|
|
|
|
| |
only one candidate header.
llvm-svn: 280359
|
| |
|
|
|
|
|
|
|
|
| |
Reviewers: alexfh, Eugene.Zelenko, aaron.ballman
Subscribers: aaron.ballman, cfe-commits
Differential Revision: https://reviews.llvm.org/D23918
llvm-svn: 280236
|
| |
|
|
| |
llvm-svn: 280235
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
Bugfix for 27321. When the constructor of stored pointer
type is private then it is invalid to change it to
make_shared or make_unique.
Reviewers: alexfh, aaron.ballman, hokein
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D23343
llvm-svn: 280180
|
| |
|
|
| |
llvm-svn: 280119
|
| |
|
|
| |
llvm-svn: 280095
|
| |
|
|
|
|
| |
Appease ms targets with -fno-delayed-template-parsing.
llvm-svn: 280078
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
The check emits a warning if std::move() is applied to a forwarding reference, i.e. an rvalue reference of a function template argument type.
If a developer is unaware of the special rules for template argument deduction on forwarding references, it will seem reasonable to apply std::move() to the forwarding reference, in the same way that this would be done for a "normal" rvalue reference.
This has a consequence that is usually unwanted and possibly surprising: If the function that takes the forwarding reference as its parameter is called with an lvalue, that lvalue will be moved from (and hence placed into an indeterminate state) even though no std::move() was applied to the lvalue at the callsite.
As a fix, the check will suggest replacing the std::move() with a std::forward().
This patch requires D23004 to be submitted before it.
Reviewers: sbenza, aaron.ballman
Subscribers: klimek, etienneb, alexfh, aaron.ballman, Prazek, Eugene.Zelenko, mgehre, cfe-commits
Projects: #clang-tools-extra
Differential Revision: https://reviews.llvm.org/D22220
llvm-svn: 280077
|
| |
|
|
|
|
| |
As detected by clang-format.
llvm-svn: 280063
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
find symbol
Old output was:
clang-rename: could not find symbol at tools/clang/tools/extra/test/clang-rename/ClassFindByName.cpp:1:1 (offset 0).
Reviewers: omtcyfz
Differential Revision: https://reviews.llvm.org/D24002
llvm-svn: 280062
|
| |
|
|
| |
llvm-svn: 279944
|
| |
|
|
|
|
| |
Differential revision: https://reviews.llvm.org/D23894
llvm-svn: 279846
|
| |
|
|
|
|
|
|
| |
* Implement missing storeOption interfaces.
* Remove unnecessary parameter copy in isHeaderFileExtension.
* Fix doc style.
llvm-svn: 279814
|
| |
|
|
|
|
|
|
| |
Changed the extension check to include the option of ",h,hh,hpp,hxx" instead of just returning whether the file ended with ".h".
Differential revision: https://reviews.llvm.org/D20512
llvm-svn: 279803
|
| |
|
|
|
|
| |
alternative solution
llvm-svn: 279666
|
| |
|
|
|
|
| |
Differential revision: https://reviews.llvm.org/D23815
llvm-svn: 279659
|
| |
|
|
| |
llvm-svn: 279541
|
| |
|
|
|
|
| |
Added proper tests.
llvm-svn: 279519
|
| |
|
|
|
|
| |
Added tests for the relative order of -extra-arg(-before) and ExtraArgs(Before).
llvm-svn: 279516
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
function parameters should be const
The check will warn when the constness will make the function interface safer.
Reviewers: alexfh
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D15332
llvm-svn: 279507
|
| |
|
|
|
|
| |
Differential revision: https://reviews.llvm.org/D23728
llvm-svn: 279494
|
| |
|
|
| |
llvm-svn: 279442
|
| |
|
|
| |
llvm-svn: 279226
|
| |
|
|
| |
llvm-svn: 279170
|
| |
|
|
|
|
| |
+ random fixes
llvm-svn: 279115
|
| |
|
|
| |
llvm-svn: 279051
|
| |
|
|
| |
llvm-svn: 279050
|
| |
|
|
| |
llvm-svn: 279049
|
| |
|
|
| |
llvm-svn: 279009
|
| |
|
|
|
|
|
|
| |
clang-tidy/index.rst.
Differential revision: https://reviews.llvm.org/D23596
llvm-svn: 279006
|
| |
|
|
|
|
|
|
|
|
| |
This reverts commit fd1908ce445eba4544d64cc68b3c03249e4bf614.
This should be the correct CL to revert. The clang-side patch
that enabled this functionality was reverted, so this test needs
to be reverted until it gets fixed.
llvm-svn: 278979
|
| |
|
|
|
|
|
|
|
| |
This reverts commit 2aff596257e1c45fa54baae823ecbe61a785174e.
I'm having a bad day apparently. I reverted the wrong CL. This
puts it back.
llvm-svn: 278978
|