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-rename/USRLocFinder.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-rename/USRLocFinder.cpp')
| -rw-r--r-- | clang-tools-extra/clang-rename/USRLocFinder.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/clang-tools-extra/clang-rename/USRLocFinder.cpp b/clang-tools-extra/clang-rename/USRLocFinder.cpp index 60bc1c27c07..48438b690f1 100644 --- a/clang-tools-extra/clang-rename/USRLocFinder.cpp +++ b/clang-tools-extra/clang-rename/USRLocFinder.cpp @@ -18,10 +18,16 @@ #include "USRFinder.h" #include "clang/AST/ASTContext.h" #include "clang/AST/RecursiveASTVisitor.h" +#include "clang/Basic/LLVM.h" #include "clang/Basic/SourceLocation.h" -#include "clang/Index/USRGeneration.h" +#include "clang/Basic/SourceManager.h" #include "clang/Lex/Lexer.h" -#include "llvm/ADT/SmallVector.h" +#include "llvm/ADT/StringRef.h" +#include "llvm/Support/Casting.h" +#include <cstddef> +#include <set> +#include <string> +#include <vector> using namespace llvm; @@ -29,6 +35,7 @@ namespace clang { namespace rename { namespace { + // \brief This visitor recursively searches for all instances of a USR in a // translation unit and stores them for later usage. class USRLocFindingASTVisitor @@ -140,6 +147,7 @@ private: std::vector<clang::SourceLocation> LocationsFound; const ASTContext &Context; }; + } // namespace std::vector<SourceLocation> |

