new loplugin: singlevalfields

look for fields that only have a single constant value assigned to them

Change-Id: Iafcd37fdb8a8119bbc00f92981a1a01badf9c5a2
This commit is contained in:
Noel Grandin
2016-06-23 13:12:53 +02:00
parent 1f1f26bf0f
commit 8d861bd702
3 changed files with 481 additions and 2 deletions

View File

@@ -16,8 +16,7 @@
#include "compat.hxx"
/*
Find methods with default params, where the callers never specify the default param i.e.
might as well remove it.
Find params on methods where the param is only ever passed as a single constant value.
The process goes something like this:
$ make check