summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2018-01-04 14:24:01 +0000
committerHans Wennborg <hans@hanshq.net>2018-01-04 14:24:01 +0000
commitaab77cdb6b6975c6569749bb367e88af41ecb3f0 (patch)
tree2073a01647835edd25f9885ed61aaf05d1318618 /test
parent5bb6561568ee415b38ccaae468f97f0e60a85e13 (diff)
Merging r321762:
------------------------------------------------------------------------ r321762 | juliehockett | 2018-01-03 14:10:11 -0800 (Wed, 03 Jan 2018) | 8 lines [clang-tidy] Update fuchsia-overloaded-operator to check for valid loc Updating fuchsia-overloaded-operator check to not issue warnings for invalid locations. Fixes PR35803. Differential Revision: https://reviews.llvm.org/D41708 ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/branches/release_60@321800 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/clang-tidy/fuchsia-overloaded-operator.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/clang-tidy/fuchsia-overloaded-operator.cpp b/test/clang-tidy/fuchsia-overloaded-operator.cpp
index c49084b4..df1b1060 100644
--- a/test/clang-tidy/fuchsia-overloaded-operator.cpp
+++ b/test/clang-tidy/fuchsia-overloaded-operator.cpp
@@ -16,3 +16,6 @@ public:
A operator-(const A &A1, const A &A2);
// CHECK-MESSAGES: [[@LINE-1]]:1: warning: cannot overload 'operator-' [fuchsia-overloaded-operator]
+
+void operator delete(void*, void*) throw();
+// CHECK-MESSAGES: [[@LINE-1]]:1: warning: cannot overload 'operator delete' [fuchsia-overloaded-operator]