blob: 40f93cd323aa6f425e885d013d16b99259f10cca [file] [log] [blame]
Ted Kremenek1b6869a2010-01-05 22:06:45 +00001//===- CIndexUSR.cpp - Clang-C Source Indexing Library --------------------===//
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// This file implements the generation and use of USRs from CXEntities.
11//
12//===----------------------------------------------------------------------===//
13
14#include "CIndexer.h"
15
16extern "C" {
17
18// Some notes on CXEntity:
19//
20// - Since the 'ordinary' namespace includes functions, data, typedefs,
21// ObjC interfaces, thecurrent algorithm is a bit naive (resulting in one
22// entity for 2 different types). For example:
23//
24// module1.m: @interface Foo @end Foo *x;
25// module2.m: void Foo(int);
26//
27// - Since the unique name spans translation units, static data/functions
28// within a CXTranslationUnit are *not* currently represented by entities.
29// As a result, there will be no entity for the following:
30//
31// module.m: static void Foo() { }
32//
33
34const char *clang_getDeclarationName(CXEntity) {
35 return "";
36}
37
38const char *clang_getUSR(CXEntity) {
39 return "";
40}
41
42CXEntity clang_getEntity(const char *URI) {
43 return 0;
44}
45
46} // end extern "C"