clang-tools 3.8.0

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

USRLocFinder.h
Go to the documentation of this file.
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
19 #include <string>
20 #include <vector>
21
22 namespace clang {
23
24 class Decl;
25 class SourceLocation;
26
27 namespace rename {
28
29 // FIXME: make this an AST matcher. Wouldn't that be awesome??? I agree!
30 std::vector<SourceLocation> getLocationsOfUSR(const std::string usr,
31 Decl *decl);
32 }
33 }
34
35 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_RENAME_USR_LOC_FINDER_H
clang::rename::getLocationsOfUSR
std::vector< SourceLocation > getLocationsOfUSR(const std::string USR, Decl *Decl)
Definition: USRLocFinder.cpp:94