Remove cpp lang
This commit is contained in:
@ -1,28 +0,0 @@
|
||||
/**
|
||||
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||
*/
|
||||
|
||||
package net.sourceforge.pmd.lang.cpp;
|
||||
|
||||
import net.sourceforge.pmd.lang.AbstractCpdLanguageVersionHandler;
|
||||
import net.sourceforge.pmd.lang.Parser;
|
||||
import net.sourceforge.pmd.lang.ParserOptions;
|
||||
|
||||
/**
|
||||
* Implementation of LanguageVersionHandler for the C++ Language.
|
||||
* @deprecated There is no full PMD support for c++.
|
||||
*/
|
||||
@Deprecated
|
||||
public class CppHandler extends AbstractCpdLanguageVersionHandler {
|
||||
|
||||
@Override
|
||||
protected String getLanguageName() {
|
||||
return "C++";
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Parser getParser(ParserOptions parserOptions) {
|
||||
return new CppParser(parserOptions);
|
||||
}
|
||||
}
|
@ -1,30 +0,0 @@
|
||||
/**
|
||||
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||
*/
|
||||
|
||||
package net.sourceforge.pmd.lang.cpp;
|
||||
|
||||
import net.sourceforge.pmd.lang.BaseLanguageModule;
|
||||
|
||||
/**
|
||||
* Implementation of the C/C++ Language Module.
|
||||
*
|
||||
* @deprecated There is no full PMD support for c++.
|
||||
*/
|
||||
@Deprecated
|
||||
public class CppLanguageModule extends BaseLanguageModule {
|
||||
|
||||
/** The name, that can be used to display the language in UI. */
|
||||
public static final String NAME = "C++";
|
||||
/** The internal name. */
|
||||
public static final String TERSE_NAME = "cpp";
|
||||
|
||||
/**
|
||||
* Creates a new instance of {@link CppLanguageModule} with the default file
|
||||
* extensions for C++.
|
||||
*/
|
||||
public CppLanguageModule() {
|
||||
super(NAME, null, TERSE_NAME, null, "h", "c", "cpp", "cxx", "cc", "C");
|
||||
addVersion("", new CppHandler(), true);
|
||||
}
|
||||
}
|
@ -1,55 +0,0 @@
|
||||
/**
|
||||
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||
*/
|
||||
|
||||
package net.sourceforge.pmd.lang.cpp;
|
||||
|
||||
import java.io.Reader;
|
||||
import java.util.Map;
|
||||
|
||||
import net.sourceforge.pmd.lang.AbstractParser;
|
||||
import net.sourceforge.pmd.lang.ParserOptions;
|
||||
import net.sourceforge.pmd.lang.TokenManager;
|
||||
import net.sourceforge.pmd.lang.ast.AbstractTokenManager;
|
||||
import net.sourceforge.pmd.lang.ast.Node;
|
||||
import net.sourceforge.pmd.lang.ast.ParseException;
|
||||
|
||||
/**
|
||||
* Adapter for the C++ Parser.
|
||||
*
|
||||
* @deprecated There is no full PMD support for c++.
|
||||
*/
|
||||
@Deprecated
|
||||
public class CppParser extends AbstractParser {
|
||||
|
||||
/**
|
||||
* Creates a new C++ Parser.
|
||||
*
|
||||
* @param parserOptions
|
||||
* the options
|
||||
*/
|
||||
public CppParser(ParserOptions parserOptions) {
|
||||
super(parserOptions);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TokenManager createTokenManager(Reader source) {
|
||||
return new CppTokenManager(source);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canParse() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Node parse(String fileName, Reader source) throws ParseException {
|
||||
AbstractTokenManager.setFileName(fileName);
|
||||
throw new UnsupportedOperationException("parse(Reader) is not supported for C++");
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<Integer, String> getSuppressMap() {
|
||||
throw new UnsupportedOperationException("getSuppressMap() is not supported for C++");
|
||||
}
|
||||
}
|
@ -1 +0,0 @@
|
||||
net.sourceforge.pmd.lang.cpp.CppLanguageModule
|
Reference in New Issue
Block a user