/**
 * @name Metric filter: exclude results from files that are autogenerated
 * @description Use this filter to return results only if they are
 *              located in files that are maintained manually.
 * @kind treemap
 * @id cpp/autogenerated-for-metric-filter
 */

import cpp
import semmle.code.cpp.AutogeneratedFile
import external.MetricFilter
 
from MetricResult res
where not res.getFile() instanceof AutogeneratedFile
select res,
       res.getValue()
