Revision tags: llvmorg-4.0.0-rc2, llvmorg-4.0.0-rc1 |
|
#
08124b11 |
| 14-Dec-2016 |
Piotr Padlewski <piotr.padlewski@gmail.com> |
modernize-use-auto NFC fixes
llvm-svn: 289656
|
Revision tags: llvmorg-3.9.1, llvmorg-3.9.1-rc3, llvmorg-3.9.1-rc2, llvmorg-3.9.1-rc1 |
|
#
7c7ea7d0 |
| 08-Nov-2016 |
Mandeep Singh Grang <mgrang@codeaurora.org> |
[clang-tools-extra] Format sources with clang-format. NFC.
Summary: Ran clang-format on all .c/.cpp/.h files in clang-tools-extra. Excluded the test, unittests, clang-reorder-fields, include-fixer,
[clang-tools-extra] Format sources with clang-format. NFC.
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
show more ...
|
#
a29ae6f2 |
| 07-Nov-2016 |
Haojian Wu <hokein@google.com> |
[clang-tidy] Fix a regression issue introduced by r285239.
Summary: r285239 changes the behavior of AST CXXDefaultArgExpr node.
Update `modernize-use-nullptr` to handle CXXDefaultArgExpr correctly.
[clang-tidy] Fix a regression issue introduced by r285239.
Summary: r285239 changes the behavior of AST CXXDefaultArgExpr node.
Update `modernize-use-nullptr` to handle CXXDefaultArgExpr correctly.
Reviewers: alexfh
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D26301
llvm-svn: 286156
show more ...
|
Revision tags: llvmorg-3.9.0, llvmorg-3.9.0-rc3, llvmorg-3.9.0-rc2, llvmorg-3.9.0-rc1, llvmorg-3.8.1, llvmorg-3.8.1-rc1 |
|
#
e15ef2f6 |
| 17-May-2016 |
Etienne Bergeron <etienneb@google.com> |
[clang-tidy] Lift common matchers to utils namespace
Summary: This patch is lifting matchers used by more than one checkers to the common namespace.
Reviewers: aaron.ballman, alexfh
Subscribers: a
[clang-tidy] Lift common matchers to utils namespace
Summary: This patch is lifting matchers used by more than one checkers to the common namespace.
Reviewers: aaron.ballman, alexfh
Subscribers: aaron.ballman, cfe-commits
Differential Revision: http://reviews.llvm.org/D19841
llvm-svn: 269804
show more ...
|
#
05197443 |
| 11-Mar-2016 |
Haojian Wu <hokein@google.com> |
[clang-tidy] Make 'modernize-use-nullptr' check ignores NULL marcos used in other macros.
Reviewers: bkramer, alexfh
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D17958
[clang-tidy] Make 'modernize-use-nullptr' check ignores NULL marcos used in other macros.
Reviewers: bkramer, alexfh
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D17958
llvm-svn: 263221
show more ...
|
#
678f65a9 |
| 04-Mar-2016 |
Haojian Wu <hokein@google.com> |
[clang-tidy] Make 'modernize-use-nullptr' check work on multiple nested implicit cast expressions.
Summary: For some test cases like:
``` int func(int, void*, void*); (double)func(0, 0, 0); ```
T
[clang-tidy] Make 'modernize-use-nullptr' check work on multiple nested implicit cast expressions.
Summary: For some test cases like:
``` int func(int, void*, void*); (double)func(0, 0, 0); ```
The AST contains several `ImplicitCastExpr`s, so we should not only check on the first sub expression.
``` `-CStyleCastExpr 0x7fe43a088938 <line:6:3, col:24> 'double' <NoOp> `-ImplicitCastExpr 0x7fe43a088920 <col:11, col:24> 'double' <IntegralToFloating> `-CallExpr 0x7fe43a0888a0 <col:11, col:24> 'int' |-ImplicitCastExpr 0x7fe43a088888 <col:11> 'int (*)(int, void *, void *)' <FunctionToPointerDecay> | `-DeclRefExpr 0x7fe43a0887d8 <col:11> 'int (int, void *, void *)' lvalue Function 0x7fe43a0886f0 'func1' 'int (int, void *, void *)' |-IntegerLiteral 0x7fe43a088800 <col:17> 'int' 0 |-ImplicitCastExpr 0x7fe43a0888e0 <col:20> 'void *' <NullToPointer> | `-IntegerLiteral 0x7fe43a088820 <col:20> 'int' 0 `-ImplicitCastExpr 0x7fe43a0888f8 <col:23> 'void *' <NullToPointer> `-IntegerLiteral 0x7fe43a088840 <col:23> 'int' 0 ```
Reviewers: alexfh
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D17849
llvm-svn: 262698
show more ...
|
Revision tags: llvmorg-3.8.0 |
|
#
0d5e9d31 |
| 26-Feb-2016 |
Haojian Wu <hokein@google.com> |
[clang-tidy] Fix an assertion failure in `modernize-use-nullptr` check.
Reviewers: alexfh
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D17640
llvm-svn: 262024
|
Revision tags: llvmorg-3.8.0-rc3, llvmorg-3.8.0-rc2, llvmorg-3.8.0-rc1, llvmorg-3.7.1, llvmorg-3.7.1-rc2, llvmorg-3.7.1-rc1 |
|
#
dc39f313 |
| 02-Nov-2015 |
Angel Garcia Gomez <angelgarcia@google.com> |
Remove unreachable that was reached in modernize-use-nullptr.
Summary: When traversing the parent map, the check assumed that all the nodes would be either Stmt or Decl. After r251101, this is no lo
Remove unreachable that was reached in modernize-use-nullptr.
Summary: When traversing the parent map, the check assumed that all the nodes would be either Stmt or Decl. After r251101, this is no longer true: there can be TypeLoc and NestedNameSpecifierLoc nodes.
Reviewers: alexfh
Subscribers: klimek, cfe-commits
Differential Revision: http://reviews.llvm.org/D14229
llvm-svn: 251803
show more ...
|
#
c50b9fbb |
| 05-Oct-2015 |
Angel Garcia Gomez <angelgarcia@google.com> |
Fix bug in modernize-use-nullptr.
Summary: https://llvm.org/bugs/show_bug.cgi?id=24960
modernize-use-nullptr would hit an assertion in some cases involving macros and initializer lists, due to find
Fix bug in modernize-use-nullptr.
Summary: https://llvm.org/bugs/show_bug.cgi?id=24960
modernize-use-nullptr would hit an assertion in some cases involving macros and initializer lists, due to finding a node with more than one parent (the two forms of the initializer list).
However, this doesn't mean that the replacement is incorrect, so instead of just rejecting this case I tried to find a way to make it work. Looking at the semantic form of the InitListExpr made sense to me (looking at both forms results in false negatives) but I am not sure of the things that we can miss by skipping the syntactic form.
Reviewers: klimek
Subscribers: cfe-commits, alexfh
Differential Revision: http://reviews.llvm.org/D13246
llvm-svn: 249291
show more ...
|
#
f36a425e |
| 28-Aug-2015 |
Aaron Ballman <aaron@aaronballman.com> |
Reapplying r246209, which exposed language options to the checkers. This time disable UseNullptrCheck when not compiling in C++ mode, but still allow in C++11 mode since it's likely the user wishes t
Reapplying r246209, which exposed language options to the checkers. This time disable UseNullptrCheck when not compiling in C++ mode, but still allow in C++11 mode since it's likely the user wishes to modernize their code.
llvm-svn: 246298
show more ...
|
#
46c9ae35 |
| 27-Aug-2015 |
Aaron Ballman <aaron@aaronballman.com> |
Reverting r246209 while I investigate a build bot failure: http://lab.llvm.org:8011/builders/clang-x86_64-debian-fast/builds/30516
llvm-svn: 246224
|
#
ed916fa4 |
| 27-Aug-2015 |
Aaron Ballman <aaron@aaronballman.com> |
Expose language options to the checkers; disable UseNullptrCheck when not compiling in C++11 mode.
llvm-svn: 246209
|
Revision tags: llvmorg-3.7.0, llvmorg-3.7.0-rc4 |
|
#
485f3875 |
| 21-Aug-2015 |
Angel Garcia Gomez <angelgarcia@google.com> |
Test commit!
llvm-svn: 245701
|
Revision tags: llvmorg-3.7.0-rc3 |
|
#
e0930380 |
| 20-Aug-2015 |
Benjamin Kramer <benny.kra@googlemail.com> |
[clang-tidy] Fold the meat of the UseNullPtrCheck into an anonymous namespace.
While convenient, RecursiveASTVisitor generates a ridiculous amount of dead template code. Making it not visible from t
[clang-tidy] Fold the meat of the UseNullPtrCheck into an anonymous namespace.
While convenient, RecursiveASTVisitor generates a ridiculous amount of dead template code. Making it not visible from the outside lets the compiler eliminate some of it, shrinking clang-tidy by ~140k.
llvm-svn: 245548
show more ...
|
#
20ce95f2 |
| 20-Aug-2015 |
Alexander Kornienko <alexfh@google.com> |
[clang-tidy] Add back a test with a custom NULL macro. Remove redundant default.
llvm-svn: 245533
|
#
0777b3cf |
| 19-Aug-2015 |
Alexander Kornienko <alexfh@google.com> |
[clang-tidy] Fix use-after-free in UseNullptrCheck.
llvm-svn: 245524
|
#
87d89d2b |
| 19-Aug-2015 |
Alexander Kornienko <alexfh@google.com> |
[clang-tidy] Work around failure in Darwin.
llvm-svn: 245517
|
#
1b7bf7a2 |
| 19-Aug-2015 |
Alexander Kornienko <alexfh@google.com> |
[clang-tidy] Add modernize-use-nullptr check, attempt 2.
This patch re-applies r245434 and r245471 reverted in r245493, and changes the way custom null macros are configured. The test for custom nul
[clang-tidy] Add modernize-use-nullptr check, attempt 2.
This patch re-applies r245434 and r245471 reverted in r245493, and changes the way custom null macros are configured. The test for custom null macros is temporarily excluded and will be committed separately to reduce chances of breakages.
Initial patches by Angel Garcia.
llvm-svn: 245511
show more ...
|
#
be6e0539 |
| 19-Aug-2015 |
Alexander Kornienko <alexfh@google.com> |
[clang-tidy] Fix a bug in UseNullptrCheck.
http://reviews.llvm.org/D12162
Patch by Angel Garcia!
llvm-svn: 245471
|
#
bd725b45 |
| 19-Aug-2015 |
Alexander Kornienko <alexfh@google.com> |
[clang-tidy] Add use-nullptr check to clang-tidy.
Move UseNullptr from clang-modernize to modernize module in clang-tidy.
http://reviews.llvm.org/D12081
Patch by Angel Garcia!
llvm-svn: 245434
|