1
2
3
4 package net.sourceforge.pmd.lang.cpp;
5
6 import net.sourceforge.pmd.lang.AbstractLanguageVersionHandler;
7 import net.sourceforge.pmd.lang.Parser;
8 import net.sourceforge.pmd.lang.ParserOptions;
9 import net.sourceforge.pmd.lang.rule.RuleViolationFactory;
10
11
12
13
14 public class CppHandler extends AbstractLanguageVersionHandler {
15
16 public RuleViolationFactory getRuleViolationFactory() {
17 throw new UnsupportedOperationException("getRuleViolationFactory() is not supported for C++");
18 }
19
20 public Parser getParser(ParserOptions parserOptions) {
21 return new CppParser(parserOptions);
22 }
23 }