summaryrefslogtreecommitdiffstats
path: root/clang/test/Refactor/Extract/ExtractionSemicolonPolicy.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [Tooling] Added DeclStmtClass to ExtractionSemicolonPolicyShaurya Gupta2019-08-141-1/+12
| | | | | | | Since the DeclStmt range includes the semicolon, it doesn't need a semicolon at the end during extraction llvm-svn: 368850
* [Extract] Fixed SemicolonExtractionPolicy for SwitchStmt and SwitchCaseShaurya Gupta2019-08-081-0/+13
| | | | | | | | | | | | Reviewers: arphaman, sammccall Subscribers: dexonsmith, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D65883 llvm-svn: 368267
* Add -fcxx-exceptions for ExtractionSemicolonPolicy.cpp to appease PS4 botsAlex Lorenz2017-11-031-1/+1
| | | | llvm-svn: 317372
* [refactor][extract] insert semicolons into extracted/inserted codeAlex Lorenz2017-11-031-0/+192
when needed This commit implements the semicolon insertion logic into the extract refactoring. The following rules are used: - extracting expression: add terminating ';' to the extracted function. - extracting statements that don't require terminating ';' (e.g. switch): add terminating ';' to the callee. - extracting statements with ';': move (if possible) the original ';' from the callee and add terminating ';'. - otherwise, add ';' to both places. Differential Revision: https://reviews.llvm.org/D39441 llvm-svn: 317343
OpenPOWER on IntegriCloud