[Tooling] Added DeclStmtClass to ExtractionSemicolonPolicy
authorShaurya Gupta <shauryab98@gmail.com>
Wed, 14 Aug 2019 13:37:39 +0000 (13:37 +0000)
committerShaurya Gupta <shauryab98@gmail.com>
Wed, 14 Aug 2019 13:37:39 +0000 (13:37 +0000)
commit36ca1e6399feaaee1e007bafa40449fecdba70aa
treea32b98f21ee6cd787bfb53062ab1d7f62f352898
parent40837e97b199b4d6546df9f8912e14a56c434417
[Tooling] Added DeclStmtClass to ExtractionSemicolonPolicy

Since the DeclStmt range includes the semicolon, it doesn't need a
semicolon at the end during extraction

llvm-svn: 368850
clang/lib/Tooling/Refactoring/Extract/SourceExtraction.cpp
clang/test/Refactor/Extract/ExtractionSemicolonPolicy.cpp