blob: 1b5473bd27363c2c76014f6a77c46aded3296e39 [file] [log] [blame]
Manuel Klimekde237262014-08-20 01:39:051//===--- tools/extra/clang-rename/USRLocFinder.h - Clang rename tool ------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9///
10/// \file
11/// \brief Provides functionality for finding all instances of a USR in a given
12/// AST.
13///
14//===----------------------------------------------------------------------===//
15
16#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_RENAME_USR_LOC_FINDER_H
17#define LLVM_CLANG_TOOLS_EXTRA_CLANG_RENAME_USR_LOC_FINDER_H
18
Benjamin Kramer1afefc02016-07-14 09:46:0319#include "clang/AST/AST.h"
20#include "llvm/ADT/StringRef.h"
Manuel Klimekde237262014-08-20 01:39:0521#include <string>
22#include <vector>
23
24namespace clang {
Manuel Klimekde237262014-08-20 01:39:0525namespace rename {
26
27// FIXME: make this an AST matcher. Wouldn't that be awesome??? I agree!
Benjamin Kramer1afefc02016-07-14 09:46:0328std::vector<SourceLocation>
Kirill Bobyrev83d5d562016-07-29 10:16:4529getLocationsOfUSRs(const std::vector<std::string> &USRs,
30 llvm::StringRef PrevName, Decl *Decl);
Benjamin Kramer1afefc02016-07-14 09:46:0331
32} // namespace rename
33} // namespace clang
Manuel Klimekde237262014-08-20 01:39:0534
35#endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_RENAME_USR_LOC_FINDER_H