2014-08-20 09:39:05 +08:00
|
|
|
//===--- tools/extra/clang-rename/USRLocFinder.h - Clang rename tool ------===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
///
|
|
|
|
/// \file
|
|
|
|
/// \brief Provides functionality for finding all instances of a USR in a given
|
|
|
|
/// AST.
|
|
|
|
///
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_RENAME_USR_LOC_FINDER_H
|
|
|
|
#define LLVM_CLANG_TOOLS_EXTRA_CLANG_RENAME_USR_LOC_FINDER_H
|
|
|
|
|
2016-07-14 17:46:03 +08:00
|
|
|
#include "clang/AST/AST.h"
|
|
|
|
#include "llvm/ADT/StringRef.h"
|
2014-08-20 09:39:05 +08:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace clang {
|
|
|
|
namespace rename {
|
|
|
|
|
|
|
|
// FIXME: make this an AST matcher. Wouldn't that be awesome??? I agree!
|
2016-07-14 17:46:03 +08:00
|
|
|
std::vector<SourceLocation>
|
2016-07-29 18:16:45 +08:00
|
|
|
getLocationsOfUSRs(const std::vector<std::string> &USRs,
|
|
|
|
llvm::StringRef PrevName, Decl *Decl);
|
2016-07-14 17:46:03 +08:00
|
|
|
|
|
|
|
} // namespace rename
|
|
|
|
} // namespace clang
|
2014-08-20 09:39:05 +08:00
|
|
|
|
|
|
|
#endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_RENAME_USR_LOC_FINDER_H
|