Home | History | Annotate | Download | only in SemaObjCXX
      1 // RUN: %clang_cc1 -fsyntax-only -verify %s
      2 
      3 #define FOR_EACH_KEYWORD(macro) \
      4 macro(asm) \
      5 macro(bool) \
      6 macro(catch) \
      7 macro(class) \
      8 macro(const_cast) \
      9 macro(delete) \
     10 macro(dynamic_cast) \
     11 macro(explicit) \
     12 macro(export) \
     13 macro(false) \
     14 macro(friend) \
     15 macro(mutable) \
     16 macro(namespace) \
     17 macro(new) \
     18 macro(operator) \
     19 macro(private) \
     20 macro(protected) \
     21 macro(public) \
     22 macro(reinterpret_cast) \
     23 macro(static_cast) \
     24 macro(template) \
     25 macro(this) \
     26 macro(throw) \
     27 macro(true) \
     28 macro(try) \
     29 macro(typename) \
     30 macro(typeid) \
     31 macro(using) \
     32 macro(virtual) \
     33 macro(wchar_t)
     34 
     35 
     36 #define DECLARE_METHOD(name) - (void)name;
     37 #define DECLARE_PROPERTY_WITH_GETTER(name) @property (getter=name) int prop_##name;
     38 @interface A 
     39 //FOR_EACH_KEYWORD(DECLARE_METHOD)
     40 FOR_EACH_KEYWORD(DECLARE_PROPERTY_WITH_GETTER)
     41 @end
     42 
     43