[clang-tools-extra] r222755 - clang-tidy: [misc-use-override] Add testcase with reversed attribute order
Daniel Jasper
djasper at google.com
Tue Nov 25 04:32:16 PST 2014
Author: djasper
Date: Tue Nov 25 06:32:14 2014
New Revision: 222755
URL: http://llvm.org/viewvc/llvm-project?rev=222755&view=rev
Log:
clang-tidy: [misc-use-override] Add testcase with reversed attribute order
Modified:
clang-tools-extra/trunk/test/clang-tidy/misc-use-override.cpp
Modified: clang-tools-extra/trunk/test/clang-tidy/misc-use-override.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/clang-tidy/misc-use-override.cpp?rev=222755&r1=222754&r2=222755&view=diff
==============================================================================
--- clang-tools-extra/trunk/test/clang-tidy/misc-use-override.cpp (original)
+++ clang-tools-extra/trunk/test/clang-tidy/misc-use-override.cpp Tue Nov 25 06:32:14 2014
@@ -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;}}
More information about the cfe-commits
mailing list