Objective-C declaration property attributes in libclang?

Are Objective-C property declaration attributes accessible in libclang? For example:

@interface Foo

@property(readonly) int foo;

@end

In the above example, is it possible to get information if "foo" is "readonly" or not?

Isn't there Cocoa Introspection API to get such info. at runtime?

- Fariborz

Not without compiling and loading the code, no. And certainly not, for example, for refactoring.

David

I have no idea. But I'm working on a Clang based tool that translates Objective-C/C headers to D modules. Therefore I need to be able to get this information from Clang, preferable from libclang.

Isn't there Cocoa Introspection API to get such info. at runtime?

Not without compiling and loading the code, no. And certainly not, for example, for refactoring.

Is there such an API (which can be used at runtime; compiling and loading)? Also, interested
in knowing what is the intended use of libclang for knowing this info.

- Fariborz

Isn't there Cocoa Introspection API to get such info. at runtime?

I have no idea. But I'm working on a Clang based tool that translates
Objective-C/C headers to D modules. Therefore I need to be able to get
this information from Clang, preferable from lib clang.

Thanks Jacob for the info. You can then ignore my follow up email questioning the purpose.

- Fariborz