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/AvoidBindCheck.cpp | |
| 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/AvoidBindCheck.cpp')
| -rw-r--r-- | clang-tools-extra/clang-tidy/modernize/AvoidBindCheck.cpp | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/clang-tools-extra/clang-tidy/modernize/AvoidBindCheck.cpp b/clang-tools-extra/clang-tidy/modernize/AvoidBindCheck.cpp index b1e07905f6c..7cdbb66f40e 100644 --- a/clang-tools-extra/clang-tidy/modernize/AvoidBindCheck.cpp +++ b/clang-tools-extra/clang-tidy/modernize/AvoidBindCheck.cpp @@ -1,4 +1,4 @@ -//===--- AvoidBindCheck.cpp - clang-tidy--------------------------------===// +//===--- AvoidBindCheck.cpp - clang-tidy-----------------------------------===// // // The LLVM Compiler Infrastructure // @@ -6,12 +6,25 @@ // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// + #include "AvoidBindCheck.h" #include "clang/AST/ASTContext.h" #include "clang/ASTMatchers/ASTMatchFinder.h" +#include "clang/Basic/LLVM.h" +#include "clang/Basic/LangOptions.h" +#include "clang/Basic/SourceLocation.h" #include "clang/Lex/Lexer.h" -#include <cassert> -#include <unordered_map> +#include "llvm/ADT/ArrayRef.h" +#include "llvm/ADT/SmallSet.h" +#include "llvm/ADT/SmallVector.h" +#include "llvm/ADT/STLExtras.h" +#include "llvm/ADT/StringRef.h" +#include "llvm/Support/Casting.h" +#include "llvm/Support/Regex.h" +#include "llvm/Support/raw_ostream.h" +#include <algorithm> +#include <cstddef> +#include <string> using namespace clang::ast_matchers; @@ -20,6 +33,7 @@ namespace tidy { namespace modernize { namespace { + enum BindArgumentKind { BK_Temporary, BK_Placeholder, BK_CallExpr, BK_Other }; struct BindArgument { |

