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