llvm-project/clang-tools-extra/clang-tidy/utils
Mitchell Balan 24aafcadff [clang-tidy] modernize-use-equals-default avoid adding redundant semicolons
Summary:
`modernize-use-equals-default` replaces default constructors/destructors with `= default;`. When the optional semicolon after a member function is present, this results in two consecutive semicolons.

This patch checks to see if the next non-comment token after the code to be replaced is a semicolon, and if so offers a replacement of `= default` rather than `= default;`.

This patch adds trailing comments and semicolons to about 5 existing tests.

Reviewers: malcolm.parsons, angelgarcia, aaron.ballman, alexfh

Patch by: poelmanc

Subscribers: MyDeveloperDay, JonasToth, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D70144
2019-11-20 18:08:37 -05:00
..
ASTUtils.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ASTUtils.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CMakeLists.txt [libTooling] Move Transformer files to their own directory/library. 2019-10-10 02:34:47 +00:00
DeclRefExprUtils.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DeclRefExprUtils.h Remove \brief commands from doxygen comments. 2019-08-22 11:32:57 +00:00
ExceptionAnalyzer.cpp [clang-tidy] openmp-exception-escape - a new check 2019-03-22 19:46:25 +00:00
ExceptionAnalyzer.h [clang-tidy] openmp-exception-escape - a new check 2019-03-22 19:46:25 +00:00
ExprSequence.cpp [clang-tidy] Fix bug in bugprone-use-after-move check 2019-09-09 12:59:14 +00:00
ExprSequence.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
FixItHintUtils.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
FixItHintUtils.h Remove \brief commands from doxygen comments. 2019-08-22 11:32:57 +00:00
HeaderFileExtensionsUtils.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
HeaderFileExtensionsUtils.h Remove \brief commands from doxygen comments. 2019-08-22 11:32:57 +00:00
HeaderGuard.cpp Remove \brief commands from doxygen comments. 2019-08-22 11:32:57 +00:00
HeaderGuard.h [clang-tidy] Move all checks to the new registerPPCallbacks API 2019-03-22 18:58:12 +00:00
IncludeInserter.cpp [clang-tools-extra] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:52:23 +00:00
IncludeInserter.h Remove \brief commands from doxygen comments. 2019-08-22 11:32:57 +00:00
IncludeSorter.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
IncludeSorter.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
LexerUtils.cpp [clang-tidy] modernize-use-equals-default avoid adding redundant semicolons 2019-11-20 18:08:37 -05:00
LexerUtils.h [clang-tidy] modernize-use-equals-default avoid adding redundant semicolons 2019-11-20 18:08:37 -05:00
Matchers.h [clang-tidy] New checker performance-trivially-destructible-check 2019-11-01 16:16:49 +01:00
NamespaceAliaser.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
NamespaceAliaser.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
OptionsUtils.cpp Fix file headers. NFC 2019-03-01 09:52:53 +00:00
OptionsUtils.h Remove \brief commands from doxygen comments. 2019-08-22 11:32:57 +00:00
TransformerClangTidyCheck.cpp [libTooling] Further simplify `Stencil` type and introduce `MatchComputation`. 2019-11-11 12:44:15 -05:00
TransformerClangTidyCheck.h [clang-tidy] Update TransformerClangTidyCheck to use new Transformer bindings. 2019-11-06 10:13:33 -05:00
TypeTraits.cpp [clang-tidy] New checker performance-trivially-destructible-check 2019-11-01 16:16:49 +01:00
TypeTraits.h [clang-tidy] New checker performance-trivially-destructible-check 2019-11-01 16:16:49 +01:00
UsingInserter.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
UsingInserter.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00