diff options
| author | Eugene Zelenko <eugene.zelenko@gmail.com> | 2016-11-29 18:24:01 +0000 |
|---|---|---|
| committer | Eugene Zelenko <eugene.zelenko@gmail.com> | 2016-11-29 18:24:01 +0000 |
| commit | 86150471c6c3f5e0f41fafb838b02cd0e1388a46 (patch) | |
| tree | 6dc9c91b80c734fa1cce979b8eb8113664915742 /clang-tools-extra/clang-tidy/modernize/LoopConvertUtils.h | |
| parent | b3ee0ba7a188ecf50aa1638330bd5b254837d0aa (diff) | |
| download | bcm5719-llvm-86150471c6c3f5e0f41fafb838b02cd0e1388a46.tar.gz bcm5719-llvm-86150471c6c3f5e0f41fafb838b02cd0e1388a46.zip | |
Fix some Clang-tidy modernize-use-default and Include What You Use warnings; other minor fixes (NFC).
This preparation to remove SetVector.h dependency on SmallSet.h.
llvm-svn: 288175
Diffstat (limited to 'clang-tools-extra/clang-tidy/modernize/LoopConvertUtils.h')
| -rw-r--r-- | clang-tools-extra/clang-tidy/modernize/LoopConvertUtils.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/clang-tools-extra/clang-tidy/modernize/LoopConvertUtils.h b/clang-tools-extra/clang-tidy/modernize/LoopConvertUtils.h index fc5427e3b02..bee77d9840f 100644 --- a/clang-tools-extra/clang-tidy/modernize/LoopConvertUtils.h +++ b/clang-tools-extra/clang-tidy/modernize/LoopConvertUtils.h @@ -13,8 +13,15 @@ #include "clang/AST/ASTContext.h" #include "clang/AST/RecursiveASTVisitor.h" #include "clang/ASTMatchers/ASTMatchFinder.h" -#include "clang/Lex/Lexer.h" -#include "clang/Tooling/Refactoring.h" +#include "clang/Basic/SourceLocation.h" +#include "llvm/ADT/DenseMap.h" +#include "llvm/ADT/SmallSet.h" +#include "llvm/ADT/SmallVector.h" +#include "llvm/ADT/StringRef.h" +#include <algorithm> +#include <memory> +#include <string> +#include <utility> namespace clang { namespace tidy { @@ -79,7 +86,7 @@ private: class ComponentFinderASTVisitor : public clang::RecursiveASTVisitor<ComponentFinderASTVisitor> { public: - ComponentFinderASTVisitor() {} + ComponentFinderASTVisitor() = default; /// Find the components of an expression and place them in a ComponentVector. void findExprComponents(const clang::Expr *SourceExpr) { |

