summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/cpp11-migrate/AddOverride
Commit message (Collapse)AuthorAgeFilesLines
* cpp11-migrate: Add override specifier before comments on inline methodsEdwin Vane2013-05-141-16/+31
| | | | | | | | | | | | This commit fixes a "FIXME" in the add-override transform. ' override' was misplaced when a comment was between the function body and the end of the 'prototype'. It also remove duplicated check for the main file from the last commit (and fixes the typo in the comment above). Author: Guillaume Papin <guillaume.papin@epitech.eu> llvm-svn: 181806
* cpp11-migrate: Fix crash in AddOverride due to template instantiationsEdwin Vane2013-05-101-22/+34
| | | | | | | | | | | | | | | This patch fixes different issues: - override is not added in template 'contexts' (this will be further improved to handle safe situations, a test for this has been written already) - the main file is now checked before the modifications are applied - override is not applied now when dealing with pure methods since it was misplaced (ignoring it isn't the perfect solution but it seems difficult to find the location just before the pure-specifier) Fixes PR15827 Author: Guillaume Papin <guillaume.papin@epitech.eu> llvm-svn: 181596
* Use 'auto const&' for iterators whose deref operator return a const varAriel J. Bernal2013-05-091-0/+4
| | | | | | | | | This patch fixes PR15601. - Added check for whether the loop variable and the initializer have the same type. - Added tests. llvm-svn: 181528
* Adding the AddOverride transform for cpp11-migrateEdwin Vane2013-04-096-0/+252
This transform adds the override specifier to methods that overrides virtual methods from a base class that don't already have this specifier. Author: Philip Dunstan <phil@phildunstan.com> llvm-svn: 179127
OpenPOWER on IntegriCloud