summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/google/AvoidCStyleCastsCheck.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [clang-tidy] Clarify a comment.Alexander Kornienko2014-10-011-1/+2
| | | | | | No functional changes. llvm-svn: 218772
* [clang-tidy] Handle c-style casts from/to enums.Alexander Kornienko2014-10-011-2/+13
| | | | | | | | | | | | | | Summary: Convert c-style casts between integral end enum types to static_cast<>. Reviewers: klimek Reviewed By: klimek Subscribers: curdeius, cfe-commits Differential Revision: http://reviews.llvm.org/D5558 llvm-svn: 218760
* Disable most of the google-readability-casting check for non-C++ files (onlyAlexander Kornienko2014-09-211-0/+4
| | | | | | leave the "redundant cast to the same type" part). llvm-svn: 218225
* [clang-tidy] Eliminate inline copies of InTemplateInstantiation matcher.Benjamin Kramer2014-09-031-4/+1
| | | | llvm-svn: 217036
* AvoidCStyleCastsCheck: don't warn on casts in macrosAlexander Kornienko2014-08-161-4/+6
| | | | llvm-svn: 215799
* Avoid adding redundant parens.Alexander Kornienko2014-07-161-9/+13
| | | | | | | | | | | | Reviewers: bkramer Reviewed By: bkramer Subscribers: cfe-commits, sbenza Differential Revision: http://reviews.llvm.org/D4534 llvm-svn: 213149
* Suggest automated replacements of C-style casts with C++ casts.Alexander Kornienko2014-07-141-10/+92
| | | | | | | | | | | | | | | | | | Summary: This patch implements a subset of possible replacements of C-style casts with const_cast/static_cast/reinterpret_cast. This should cover a large portion of cases in real code. Handling of a few more cases may be implemented eventually. Reviewers: sbenza, djasper Reviewed By: djasper Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D4478 llvm-svn: 212924
* Another attempt to add a clang-tidy check for flagging C-style casts.Alexander Kornienko2014-06-291-0/+52
Summary: The first version failed the SubstNonTypeTempateParmExpr-related test on some buildbots. This one uses the new substNonTypeTempateParmExpr matcher to filter out implicit C-style casts. This patch depends on D4327. Reviewers: djasper Reviewed By: djasper Subscribers: aemerson, cfe-commits Differential Revision: http://reviews.llvm.org/D4328 llvm-svn: 212002
OpenPOWER on IntegriCloud