summaryrefslogtreecommitdiffstats
path: root/clang/tools/libclang/CXCursor.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-09-10 00:22:18 +0000
committerDouglas Gregor <dgregor@apple.com>2010-09-10 00:22:18 +0000
commita93ab66331817caec3a52b9c24051390c7b1c600 (patch)
treebf62fed0613afa49e451910e5ffc16d0ff010112 /clang/tools/libclang/CXCursor.h
parent22fd29a94a418b1f62805d7bf2dee3131df3e452 (diff)
downloadbcm5719-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.h8
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);
OpenPOWER on IntegriCloud