From c81a7a2591964967a14bc18775f8fa7240a9a246 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Sun, 6 Mar 2011 18:55:32 +0000 Subject: [PATCH] Rename the type argument for the iboutletcollection attribute to not conflict with MinGW headers, from Kirk Beitz! llvm-svn: 127127 --- clang/include/clang/Basic/Attr.td | 2 +- clang/tools/libclang/CIndex.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/include/clang/Basic/Attr.td b/clang/include/clang/Basic/Attr.td index 282c5082ed65..3579e2c6f13d 100644 --- a/clang/include/clang/Basic/Attr.td +++ b/clang/include/clang/Basic/Attr.td @@ -266,7 +266,7 @@ def IBOutlet : InheritableAttr { def IBOutletCollection : InheritableAttr { let Spellings = ["iboutletcollection"]; - let Args = [TypeArgument<"Interface">]; + let Args = [TypeArgument<"InterFace">]; } def Malloc : InheritableAttr { diff --git a/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp index 21251e09b10a..74f90790c748 100644 --- a/clang/tools/libclang/CIndex.cpp +++ b/clang/tools/libclang/CIndex.cpp @@ -4916,7 +4916,7 @@ CXType clang_getIBOutletCollectionType(CXCursor C) { IBOutletCollectionAttr *A = cast(cxcursor::getCursorAttr(C)); - return cxtype::MakeCXType(A->getInterface(), cxcursor::getCursorTU(C)); + return cxtype::MakeCXType(A->getInterFace(), cxcursor::getCursorTU(C)); } } // end: extern "C"