mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-05 08:58:30 +00:00
clang-tidy: [misc-use-override] Add testcase with reversed attribute order
llvm-svn: 222755
This commit is contained in:
parent
7b50beebe4
commit
a3ec1a3267
@ -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;}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user