aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Index/Utils.h
blob: 36cf56dea203eda60441e8968231c38e86f3efa0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//===--- Utils.h - Misc utilities for indexing-----------------------------===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
//  This header contains miscellaneous utilities for indexing related
//  functionality.
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_CLANG_INDEX_UTILS_H
#define LLVM_CLANG_INDEX_UTILS_H

namespace clang {
  class ASTContext;
  class SourceLocation;
  class Decl;
  
namespace idx {
  class ASTLocation;

/// \brief Returns the ASTLocation that a source location points to.
///
/// \returns the resolved ASTLocation or an invalid ASTLocation if the source
/// location could not be resolved.
ASTLocation ResolveLocationInAST(ASTContext &Ctx, SourceLocation Loc, 
                                 Decl *RelativeToDecl = 0);

} // end namespace idx

}  // end namespace clang

#endif