diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2017-04-21 22:27:06 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2017-04-21 22:27:06 +0000 |
commit | 54fef63e22057dd3dff6c843f344e9a67aff2fee (patch) | |
tree | a2120c865f22c5cc817c7681b6da25368da73262 /include | |
parent | 161f2d662400d104f1d07428ce3276b4db680af2 (diff) | |
download | clang-54fef63e22057dd3dff6c843f344e9a67aff2fee.tar.gz |
[index] Take into account the category's external_symbol attr for namespacing its methods
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@301051 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/clang/Index/USRGeneration.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/clang/Index/USRGeneration.h b/include/clang/Index/USRGeneration.h index e3a4620562..8c661bd63c 100644 --- a/include/clang/Index/USRGeneration.h +++ b/include/clang/Index/USRGeneration.h @@ -31,7 +31,8 @@ bool generateUSRForDecl(const Decl *D, SmallVectorImpl<char> &Buf); /// \brief Generate a USR fragment for an Objective-C class. void generateUSRForObjCClass(StringRef Cls, raw_ostream &OS, - StringRef ExtSymbolDefinedIn = ""); + StringRef ExtSymbolDefinedIn = "", + StringRef CategoryContextExtSymbolDefinedIn = ""); /// \brief Generate a USR fragment for an Objective-C class category. void generateUSRForObjCCategory(StringRef Cls, StringRef Cat, raw_ostream &OS, @@ -58,6 +59,9 @@ void generateUSRForObjCProtocol(StringRef Prot, raw_ostream &OS, void generateUSRForGlobalEnum(StringRef EnumName, raw_ostream &OS, StringRef ExtSymbolDefinedIn = ""); +/// Generate a USR fragment for an enum constant. +void generateUSRForEnumConstant(StringRef EnumConstantName, raw_ostream &OS); + /// \brief Generate a USR for a macro, including the USR prefix. /// /// \returns true on error, false on success. |