1 /** 2 * BSD-style license; for more info see http://pmd.sourceforge.net/license.html 3 */ 4 package net.sourceforge.pmd.lang.cpp; 5 6 import net.sourceforge.pmd.lang.BaseLanguageModule; 7 8 /** 9 * Implementation of the C/C++ Language Module. 10 */ 11 public class CppLanguageModule extends BaseLanguageModule { 12 13 /** The name, that can be used to display the language in UI. */ 14 public static final String NAME = "C++"; 15 /** The internal name. */ 16 public static final String TERSE_NAME = "cpp"; 17 18 /** 19 * Creates a new instance of {@link CppLanguageModule} with the default file extensions for C++. 20 */ 21 public CppLanguageModule() { 22 super(NAME, null, TERSE_NAME, null, "h", "c", "cpp", "cxx", "cc", "C"); 23 addVersion("", new CppHandler(), true); 24 } 25 }