summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/bugprone/MisplacedWideningCastCheck.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Fix a false positive in misplaced-widening-castJonas Toth2018-12-051-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: bugprone-misplaced-widening-cast check used to give a false warning to the following example. enum DaysEnum{ MON = 0, TUE = 1 }; day = (DaysEnum)(day + 1); //warning: either cast from 'int' to 'DaysEnum' is ineffective... But i think int to enum cast is not widening neither ineffective. Patch by dkrupp. Reviewers: JonasToth, alexfh Reviewed By: alexfh Subscribers: rnkovacs, Szelethus, gamesh411, cfe-commits Tags: #clang-tools-extra Differential Revision: https://reviews.llvm.org/D55255 llvm-svn: 348341
* Re-commit r347419 "Update call to EvaluateAsInt() to the new syntax."Hans Wennborg2018-11-281-6/+6
| | | | llvm-svn: 347757
* Revert r347419 "Update call to EvaluateAsInt() to the new syntax."Hans Wennborg2018-11-271-6/+6
| | | | | | It's pre-requisite was reverted in r347656. llvm-svn: 347657
* Update call to EvaluateAsInt() to the new syntax.Bill Wendling2018-11-211-6/+6
| | | | llvm-svn: 347419
* Revert 347366, its prerequisite 347364 got reverted.Nico Weber2018-11-211-6/+6
| | | | llvm-svn: 347390
* Update EvaluateAsInt to the new syntax.Bill Wendling2018-11-201-6/+6
| | | | llvm-svn: 347366
* Port getLocStart -> getBeginLocStephen Kelly2018-08-091-3/+3
| | | | | | | | | | Reviewers: javed.absar Subscribers: nemanjai, kbarton, ilya-biryukov, ioeric, jkorous, arphaman, jfb, cfe-commits Differential Revision: https://reviews.llvm.org/D50354 llvm-svn: 339400
* Rename a few checks from misc- to bugprone-.Alexander Kornienko2018-02-281-0/+233
Summary: rename_check.py {misc,bugprone}-forwarding-reference-overload rename_check.py {misc,bugprone}-macro-repeated-side-effects rename_check.py {misc,bugprone}-lambda-function-name rename_check.py {misc,bugprone}-misplaced-widening-cast Reviewers: hokein, sammccall, aaron.ballman Reviewed By: aaron.ballman Subscribers: klimek, cfe-commits, mgorny Differential Revision: https://reviews.llvm.org/D43867 llvm-svn: 326327
OpenPOWER on IntegriCloud