Manuel Klimek | de23726 | 2014-08-20 01:39:05 | [diff] [blame] | 1 | //===--- 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 Kramer | 1afefc0 | 2016-07-14 09:46:03 | [diff] [blame] | 19 | #include "clang/AST/AST.h" |
| 20 | #include "llvm/ADT/StringRef.h" |
Manuel Klimek | de23726 | 2014-08-20 01:39:05 | [diff] [blame] | 21 | #include <string> |
| 22 | #include <vector> |
| 23 | |
| 24 | namespace clang { |
Manuel Klimek | de23726 | 2014-08-20 01:39:05 | [diff] [blame] | 25 | namespace rename { |
| 26 | |
| 27 | // FIXME: make this an AST matcher. Wouldn't that be awesome??? I agree! |
Benjamin Kramer | 1afefc0 | 2016-07-14 09:46:03 | [diff] [blame] | 28 | std::vector<SourceLocation> |
Kirill Bobyrev | 83d5d56 | 2016-07-29 10:16:45 | [diff] [blame] | 29 | getLocationsOfUSRs(const std::vector<std::string> &USRs, |
| 30 | llvm::StringRef PrevName, Decl *Decl); |
Benjamin Kramer | 1afefc0 | 2016-07-14 09:46:03 | [diff] [blame] | 31 | |
| 32 | } // namespace rename |
| 33 | } // namespace clang |
Manuel Klimek | de23726 | 2014-08-20 01:39:05 | [diff] [blame] | 34 | |
| 35 | #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_RENAME_USR_LOC_FINDER_H |