diff options
author | Daniel Jasper <djasper@google.com> | 2014-11-25 12:32:14 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2014-11-25 12:32:14 +0000 |
commit | 8f9bca7ac20be293855fe31204f9d545a4bd71f8 (patch) | |
tree | 20c630deb3c98147af3c37dd563a7902383a78cc | |
parent | e0d6dc59d0a8be448333e2d667c02810eac7aee3 (diff) |
clang-tidy: [misc-use-override] Add testcase with reversed attribute order
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@222755 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/clang-tidy/misc-use-override.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/clang-tidy/misc-use-override.cpp b/test/clang-tidy/misc-use-override.cpp index 33c686a0..d2e5a82e 100644 --- a/test/clang-tidy/misc-use-override.cpp +++ b/test/clang-tidy/misc-use-override.cpp @@ -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;}} |