HomeSort by relevance Sort by last modified time
    Searched refs:CALLABLE_WHEN (Results 1 - 2 of 2) sorted by null

  /external/clang/test/SemaCXX/
warn-consumed-parsing.cpp 3 #define CALLABLE_WHEN(...) __attribute__ ((callable_when(__VA_ARGS__)))
22 void callableWhen() __attribute__ ((callable_when())); // expected-error {{'callable_when' attribute takes at least 1 argument}}
27 int var2 CALLABLE_WHEN("consumed"); // expected-warning {{'callable_when' attribute only applies to methods}}
33 void function2() CALLABLE_WHEN("consumed"); // expected-warning {{'callable_when' attribute only applies to methods}}
37 void callableWhen0() CALLABLE_WHEN("unconsumed");
38 void callableWhen1() CALLABLE_WHEN(42); // expected-error {{'callable_when' attribute requires a string}
    [all...]
warn-consumed-analysis.cpp 5 #define CALLABLE_WHEN(...) __attribute__ ((callable_when(__VA_ARGS__)))
36 void operator*() const CALLABLE_WHEN("unconsumed");
37 void unconsumedCall() const CALLABLE_WHEN("unconsumed");
38 void callableWhenUnknown() const CALLABLE_WHEN("unconsumed", "unknown");
57 void operator*() CALLABLE_WHEN("unconsumed");
59 ~DestructorTester() CALLABLE_WHEN("consumed");
707 Status& operator=(const Status &other) CALLABLE_WHEN("unknown", "consumed");
708 Status& operator=(Status &&other) CALLABLE_WHEN("unknown", "consumed");
716 void clear() CALLABLE_WHEN("unknown", "consumed") SET_TYPESTATE(consumed)
    [all...]

Completed in 132 milliseconds