summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-11-09 12:59:44 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-11-09 13:57:45 +0100
commita93b691b78c95676d0dcf2724563aa1a8a5a2e8e (patch)
tree96aeaa5837666e9d7a000990ea3453a66f3435cc /compilerplugins
parent4887f9fe2d5bdbf8d760d88a984439efbdf37d5a (diff)
loplugin:unusedvariable add some more std:: types
Change-Id: Ib15931e415990b56367fe3e1c7cf3f22cc4826d5 Reviewed-on: https://gerrit.libreoffice.org/44529 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/check.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/compilerplugins/clang/check.cxx b/compilerplugins/clang/check.cxx
index 6f9ee1779bf6..9ded6d296e5f 100644
--- a/compilerplugins/clang/check.cxx
+++ b/compilerplugins/clang/check.cxx
@@ -217,7 +217,15 @@ bool isExtraWarnUnusedType(clang::QualType type) {
auto const tc = TypeCheck(rec);
// Check some common non-LO types:
if (tc.Class("basic_string").StdNamespace()
+ || tc.Class("deque").StdNamespace()
|| tc.Class("list").StdNamespace()
+ || tc.Class("map").StdNamespace()
+ || tc.Class("pair").StdNamespace()
+ || tc.Class("queue").StdNamespace()
+ || tc.Class("set").StdNamespace()
+ || tc.Class("stack").StdNamespace()
+ || tc.Class("unordered_map").StdNamespace()
+ || tc.Class("unordered_set").StdNamespace()
|| tc.Class("vector").StdNamespace())
{
return true;