| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
llvm-svn: 295498
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
This flag allows specifying a custom path for the compilation
database. Unfortunately we can't use the -p flag like other
clang-tidy tools because it's already taken.
Reviewers: alexfh
Subscribers: JDevlieghere, cfe-commits
Differential Revision: https://reviews.llvm.org/D29806
llvm-svn: 295482
|
| |
|
|
|
|
|
|
| |
The 'Limitations' section in thedocumentation for
readability-misleading-indentation should be a subsection, as otherwise the link
to 'Limitations' isn't indented in the 'Clang-Tidy Checks' documentation page.
llvm-svn: 295471
|
| |
|
|
|
|
| |
Differential Revision: https://reviews.llvm.org/D23421
llvm-svn: 295435
|
| |
|
|
| |
llvm-svn: 295317
|
| |
|
|
| |
llvm-svn: 295305
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
This patch adds onTypeFormatting to clangd.
The trigger character is '}' and it works by scanning for the matching '{' and formatting the range in-between.
There are problems with ';' as a trigger character, the cursor position is before the `|`:
```
int main() {
int i;|
}
```
becomes:
```
int main() { int i;| }
```
which is not likely what the user intended.
Also formatting at semicolon in a non-properly closed scope puts the following tokens in the same unwrapped line, which doesn't reformat nicely.
Reviewers: bkramer
Reviewed By: bkramer
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D29990
llvm-svn: 295304
|
| |
|
|
| |
llvm-svn: 295303
|
| |
|
|
| |
llvm-svn: 295207
|
| |
|
|
| |
llvm-svn: 295205
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
Replaces explicit calls to the constructor in a return with a braced
initializer list. This way the return type is not needlessly duplicated in the
return type and the return statement.
```
Foo bar() {
Baz baz;
return Foo(baz);
}
// transforms to:
Foo bar() {
Baz baz;
return {baz};
}
```
Reviewers: hokein, Prazek, aaron.ballman, alexfh
Reviewed By: Prazek, aaron.ballman, alexfh
Subscribers: malcolm.parsons, mgorny, cfe-commits
Tags: #clang-tools-extra
Differential Revision: https://reviews.llvm.org/D28768
llvm-svn: 295199
|
| |
|
|
| |
llvm-svn: 295198
|
| |
|
|
| |
llvm-svn: 295196
|
| |
|
|
|
|
|
| |
I don't think that this is necessary for correctness, but makes tsan
much more useful.
llvm-svn: 295194
|
| |
|
|
|
|
|
| |
Otherwise locking the mutex yields a racy assertion failure on picky
implementations.
llvm-svn: 295193
|
| |
|
|
|
|
| |
misc-unconventional-assign-operator
llvm-svn: 295192
|
| |
|
|
| |
llvm-svn: 295187
|
| |
|
|
| |
llvm-svn: 295184
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
This requires an accessible compilation database. The parsing is done
asynchronously on a separate thread.
Reviewers: klimek, krasimir
Subscribers: cfe-commits, mgorny
Differential Revision: https://reviews.llvm.org/D29886
llvm-svn: 295180
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
classes in misc-definitions-in-headers.
Reviewers: alexfh
Reviewed By: alexfh
Subscribers: JDevlieghere, cfe-commits
Differential Revision: https://reviews.llvm.org/D29957
llvm-svn: 295178
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
The misc-unconventional-assign-operator check had a false positive
warning when the 'operator*' in 'return *this' was unresolved.
Change matcher to allow calls to unresolved operator.
Fixes PR31531.
Reviewers: alexfh, aaron.ballman
Subscribers: JDevlieghere, cfe-commits
Differential Revision: https://reviews.llvm.org/D29393
llvm-svn: 295176
|
| |
|
|
|
|
|
|
|
|
| |
Reviewers: alexfh
Subscribers: JDevlieghere, cfe-commits
Differential Revision: https://reviews.llvm.org/D29899
llvm-svn: 295049
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
Users might get confused easily when they see the check's message on
full template function speciliations.
Add a note to the output message, which mentions these kind of function
specializations are treated as regular functions.
Reviewers: alexfh
Reviewed By: alexfh
Subscribers: JDevlieghere, cfe-commits
Differential Revision: https://reviews.llvm.org/D29928
llvm-svn: 295048
|
| |
|
|
|
|
| |
Differential Revision: https://reviews.llvm.org/D19586
llvm-svn: 295041
|
| |
|
|
| |
llvm-svn: 294974
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Reviewers: hokein
Reviewed By: hokein
Subscribers: fhahn, cfe-commits
Differential Revision: https://reviews.llvm.org/D29893
llvm-svn: 294969
|
| |
|
|
|
|
|
|
| |
work for class members
Fix for commit r294912 which had a small error in the AST matcher.
llvm-svn: 294913
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
work for class members
I have made a small fix for readability-delete-null-pointer check so it also checks for class members.
Example of case that it fixes
```
struct A {
void foo() {
if(mp)
delete mp;
}
int *mp;
};
```
Reviewers: JDevlieghere, aaron.ballman, alexfh, malcolm.parsons
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D29726
llvm-svn: 294912
|
| |
|
|
| |
llvm-svn: 294823
|
| |
|
|
|
|
|
| |
This is just as easy to check from main but prevents random code from
shutting down the server.
llvm-svn: 294760
|
| |
|
|
| |
llvm-svn: 294751
|
| |
|
|
|
|
|
| |
This abstracts away the passing of raw_ostreams everywhere, thread
safety will be used soon.
llvm-svn: 294747
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
LLVM defines `PTHREAD_LIB` which is used by AddLLVM.cmake and various projects
to correctly link the threading library when needed. Unfortunately
`PTHREAD_LIB` is defined by LLVM's `config-ix.cmake` file which isn't installed
and therefore can't be used when configuring out-of-tree builds. This causes
such builds to fail since `pthread` isn't being correctly linked.
This patch attempts to fix that problem by renaming and exporting
`LLVM_PTHREAD_LIB` as part of`LLVMConfig.cmake`. I renamed `PTHREAD_LIB`
because It seemed likely to cause collisions with downstream users of
`LLVMConfig.cmake`.
llvm-svn: 294690
|
| |
|
|
|
|
|
|
| |
Patch by Jorge Gorbe (lethalantidote)
Differential Revision: https://reviews.llvm.org/D29737
llvm-svn: 294689
|
| |
|
|
| |
llvm-svn: 294657
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
This new flag instructs clang-tidy to not output anything
except for errors and warnings. This makes it easier to
script clang-tidy to run as part of external build systems.
Reviewers: bkramer, alexfh, klimek
Subscribers: JDevlieghere, cfe-commits
Differential Revision: https://reviews.llvm.org/D29661
llvm-svn: 294607
|
| |
|
|
|
|
| |
compile errors
llvm-svn: 294578
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
These flags allow specifying extra arguments to the tool's command
line which don't appear in the compilation database.
Reviewers: alexfh, klimek, bkramer
Subscribers: JDevlieghere, cfe-commits
Differential Revision: https://reviews.llvm.org/D29699
llvm-svn: 294491
|
| |
|
|
|
|
|
| |
hasErrorOccurred() -> hasUncompilableErrorOccurred(), since we only care about
errors that lead to invalid AST.
llvm-svn: 294467
|
| |
|
|
|
|
|
|
| |
Patch by CJ DiMeglio!
Differential revision: https://reviews.llvm.org/D28973
llvm-svn: 294459
|
| |
|
|
|
|
| |
It confuses FileManager on windows.
llvm-svn: 294314
|
| |
|
|
|
|
| |
Another attempt on making this work on windows.
llvm-svn: 294312
|
| |
|
|
|
|
|
|
| |
I didn't find this because my main development machine still happens to
use libstdc++ with the broken C++11 ABI, which has a global empty
string.
llvm-svn: 294309
|
| |
|
|
| |
llvm-svn: 294299
|
| |
|
|
| |
llvm-svn: 294297
|
| |
|
|
|
|
| |
Also clean up logging and don't print \0.
llvm-svn: 294294
|
| |
|
|
|
|
|
| |
It looks like direct calls to mocked methods happen in the wild. This patch
add support for these as well.
llvm-svn: 294293
|
| |
|
|
| |
llvm-svn: 294292
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
clangd is a language server protocol implementation based on clang. It's
supposed to provide editor integration while not suffering from the
confined ABI of libclang.
This implementation is limited to the bare minimum functionality of
doing (whole-document) formatting and rangeFormatting. The JSON parsing
is based on LLVM's YAMLParser but yet most of the code of clangd is
currently dealing with JSON serialization and deserialization.
This was only tested with VS Code so far, mileage with other LSP clients
may vary.
Differential Revision: https://reviews.llvm.org/D29451
llvm-svn: 294291
|
| |
|
|
|
|
| |
Address outstanding comments from https://reviews.llvm.org/D29267
llvm-svn: 294283
|