Although the functionality was already present, it wasn't tested.
llvm-svn: 354303
#include "foo.h"
+#define MACRO_FOO \
+ { void; }
+#define MACRO_BAR(B) B
+
Foo::Foo() {}
void Foo::A() {}
void Foo::B(int i) {}
int Foo::F(int i) { return i; }
void Foo::G(const char *fmt...) {}
Foo Foo::H() { return Foo(); }
+void Foo::I() const { MACRO_FOO; }
+Bar Foo::J() const { return MACRO_BAR(Bar()); }
+struct Bar {};
struct Foo {
Foo();
Foo(int i);
int D(bool b) const;
static void E();
static int F(int i);
- void G(const char* fmt...);
+ void G(const char *fmt...);
static Foo H();
+ void I() const;
+ Bar J() const;
};
# CHECK-NOT: LLDB_RECORD_STATIC_METHOD(void, Foo, G
# CHECK: LLDB_RECORD_STATIC_METHOD_NO_ARGS(Foo, Foo, H);
# CHECK: LLDB_RECORD_RESULT(Foo())
+# CHECK-NOT: LLDB_RECORD_METHOD_CONST_NO_ARGS(void, Foo, I);
+# CHECK: LLDB_RECORD_METHOD_CONST_NO_ARGS(Bar, Foo, J);
+# CHECK-NOT: LLDB_RECORD_RESULT(Bar());