summaryrefslogtreecommitdiffstats
path: root/clang/include/clang/AST/ASTImporter.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/include/clang/AST/ASTImporter.h')
-rw-r--r--clang/include/clang/AST/ASTImporter.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/include/clang/AST/ASTImporter.h b/clang/include/clang/AST/ASTImporter.h
index 2e9a8775a8a..311d64e7cbf 100644
--- a/clang/include/clang/AST/ASTImporter.h
+++ b/clang/include/clang/AST/ASTImporter.h
@@ -333,6 +333,13 @@ class Attr;
/// equivalent.
bool IsStructurallyEquivalent(QualType From, QualType To,
bool Complain = true);
+
+ /// Determine the index of a field in its parent record.
+ /// F should be a field (or indirect field) declaration.
+ /// \returns The index of the field in its parent context, starting from 1.
+ /// 0 is returned on error (parent context is non-record).
+ static unsigned getFieldIndex(Decl *F);
+
};
} // namespace clang
OpenPOWER on IntegriCloud