clang-tidy: [misc-use-override] Add testcase with reversed attribute order

llvm-svn: 222755
This commit is contained in:
Daniel Jasper 2014-11-25 12:32:14 +00:00
parent 7b50beebe4
commit a3ec1a3267

View File

@ -26,6 +26,7 @@ struct Base {
virtual void j() const;
virtual MustUseResultObject k();
virtual bool l() MUST_USE_RESULT UNUSED;
virtual bool n() MUST_USE_RESULT UNUSED;
virtual void m();
};
@ -76,6 +77,10 @@ public:
// CHECK-MESSAGES: :[[@LINE-1]]:16: warning: Prefer using
// CHECK-FIXES: {{^ bool l\(\) override MUST_USE_RESULT UNUSED;}}
virtual bool n() UNUSED MUST_USE_RESULT;
// CHECK-MESSAGES: :[[@LINE-1]]:16: warning: Prefer using
// CHECK-FIXES: {{^ bool n\(\) override UNUSED MUST_USE_RESULT;}}
virtual void m() override final;
// CHECK-MESSAGES: :[[@LINE-1]]:16: warning: Annotate this
// CHECK-FIXES: {{^ void m\(\) final;}}