summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/fuchsia-multiple-inheritance.cpp
diff options
context:
space:
mode:
authorJulie Hockett <juliehockett@google.com>2019-07-17 17:40:53 +0000
committerJulie Hockett <juliehockett@google.com>2019-07-17 17:40:53 +0000
commit337aea438c5eebe6a149e5fafe38b71ec93caf8d (patch)
tree32019cb0047b6a1d5f33ed3aa824df63d58dfa8c /clang-tools-extra/test/clang-tidy/fuchsia-multiple-inheritance.cpp
parentb53e13cd43e8aacf26222186b241346484962a21 (diff)
downloadbcm5719-llvm-337aea438c5eebe6a149e5fafe38b71ec93caf8d.tar.gz
bcm5719-llvm-337aea438c5eebe6a149e5fafe38b71ec93caf8d.zip
[clang-tidy] Exclude forward decls from fuchsia-multiple-inheritance
Addresses b39770. Differential Revision: https://reviews.llvm.org/D64813 llvm-svn: 366354
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/fuchsia-multiple-inheritance.cpp')
-rw-r--r--clang-tools-extra/test/clang-tidy/fuchsia-multiple-inheritance.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang-tools-extra/test/clang-tidy/fuchsia-multiple-inheritance.cpp b/clang-tools-extra/test/clang-tidy/fuchsia-multiple-inheritance.cpp
index fd2ed145c12..c7869761cf8 100644
--- a/clang-tools-extra/test/clang-tidy/fuchsia-multiple-inheritance.cpp
+++ b/clang-tools-extra/test/clang-tidy/fuchsia-multiple-inheritance.cpp
@@ -41,6 +41,9 @@ public:
virtual int baz() = 0;
};
+// Shouldn't warn on forward declarations.
+class Bad_Child1;
+
// Inherits from multiple concrete classes.
// CHECK-MESSAGES: [[@LINE+2]]:1: warning: inheriting mulitple classes that aren't pure virtual is discouraged [fuchsia-multiple-inheritance]
// CHECK-NEXT: class Bad_Child1 : public Base_A, Base_B {};
OpenPOWER on IntegriCloud