diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-10-12 07:07:36 +0000 |
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-10-12 07:07:36 +0000 |
| commit | e4549866175a8c2bef551fc7f1d4d7a643df26eb (patch) | |
| tree | d38afd3584e77a4bf07e1a86bcdd870b11e955c5 /clang/tools/libclang/CXCursor.h | |
| parent | 769c7bcd9a0d934650f9173390996fbe2399b813 (diff) | |
| download | bcm5719-llvm-e4549866175a8c2bef551fc7f1d4d7a643df26eb.tar.gz bcm5719-llvm-e4549866175a8c2bef551fc7f1d4d7a643df26eb.zip | |
[libclang] Allow using getDeclCursorUSR function with a Decl* and not a cursor.
llvm-svn: 141770
Diffstat (limited to 'clang/tools/libclang/CXCursor.h')
| -rw-r--r-- | clang/tools/libclang/CXCursor.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/tools/libclang/CXCursor.h b/clang/tools/libclang/CXCursor.h index e3ca2680f12..e402d7f970c 100644 --- a/clang/tools/libclang/CXCursor.h +++ b/clang/tools/libclang/CXCursor.h @@ -218,6 +218,11 @@ static inline CXCursor getTypeRefedCallExprCursor(CXCursor cursor) { CXCursor getTypeRefCursor(CXCursor cursor); +/// \brief Generate a USR for \arg D and put it in \arg Buf. +/// \returns true if no USR was computed or the result should be ignored, +/// false otherwise. +bool getDeclCursorUSR(Decl *D, SmallVectorImpl<char> &Buf); + bool operator==(CXCursor X, CXCursor Y); inline bool operator!=(CXCursor X, CXCursor Y) { |

