diff options
| author | Douglas Gregor <dgregor@apple.com> | 2010-09-10 00:22:18 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2010-09-10 00:22:18 +0000 |
| commit | a93ab66331817caec3a52b9c24051390c7b1c600 (patch) | |
| tree | bf62fed0613afa49e451910e5ffc16d0ff010112 /clang/tools/libclang/CXCursor.h | |
| parent | 22fd29a94a418b1f62805d7bf2dee3131df3e452 (diff) | |
| download | bcm5719-llvm-a93ab66331817caec3a52b9c24051390c7b1c600.tar.gz bcm5719-llvm-a93ab66331817caec3a52b9c24051390c7b1c600.zip | |
Add libclang support for label statements, gotos, and taking the
address of a label (GNU extension).
llvm-svn: 113564
Diffstat (limited to 'clang/tools/libclang/CXCursor.h')
| -rw-r--r-- | clang/tools/libclang/CXCursor.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/tools/libclang/CXCursor.h b/clang/tools/libclang/CXCursor.h index eff71f398a3..743b38b9c4d 100644 --- a/clang/tools/libclang/CXCursor.h +++ b/clang/tools/libclang/CXCursor.h @@ -27,6 +27,7 @@ class CXXBaseSpecifier; class Decl; class Expr; class FieldDecl; +class LabelStmt; class MacroDefinition; class MacroInstantiation; class NamedDecl; @@ -128,6 +129,13 @@ CXCursor MakeMacroInstantiationCursor(MacroInstantiation *, ASTUnit *TU); /// source range. MacroInstantiation *getCursorMacroInstantiation(CXCursor C); +/// \brief Create a label reference at the given location. +CXCursor MakeCursorLabelRef(LabelStmt *Label, SourceLocation Loc, ASTUnit *TU); + +/// \brief Unpack a label reference into the label statement it refers to and +/// the location of the reference. +std::pair<LabelStmt *, SourceLocation> getCursorLabelRef(CXCursor C); + Decl *getCursorDecl(CXCursor Cursor); Expr *getCursorExpr(CXCursor Cursor); Stmt *getCursorStmt(CXCursor Cursor); |

