Skip to content

Commit

Permalink
Ditch K&R C
Browse files Browse the repository at this point in the history
  • Loading branch information
TheShermanTanker committed Feb 19, 2023
1 parent 38c8464 commit 8771d78
Show file tree
Hide file tree
Showing 6 changed files with 838 additions and 220 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import org.eclipse.cdt.core.CCorePlugin;
import org.eclipse.cdt.core.dom.ILinkage;
import org.eclipse.cdt.core.dom.parser.AbstractCLikeLanguage;
import org.eclipse.cdt.core.dom.parser.IExactCLanguage;
import org.eclipse.cdt.core.dom.parser.IScannerExtensionConfiguration;
import org.eclipse.cdt.core.dom.parser.ISourceCodeParser;
import org.eclipse.cdt.core.dom.parser.c.ANSICParserExtensionConfiguration;
Expand All @@ -18,7 +19,7 @@
/**
* ILanguage implementation for the DOM no-dialect, pure C Parser.
*/
public class CLanguage extends AbstractCLikeLanguage implements IActualCLanguage {
public class CLanguage extends AbstractCLikeLanguage implements IExactCLanguage {

public static final ANSICParserExtensionConfiguration C_PARSER_EXTENSION = new ANSICParserExtensionConfiguration();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import org.eclipse.cdt.core.CCorePlugin;
import org.eclipse.cdt.core.dom.ILinkage;
import org.eclipse.cdt.core.dom.parser.AbstractCLikeLanguage;
import org.eclipse.cdt.core.dom.parser.IExactCLanguage;
import org.eclipse.cdt.core.dom.parser.IScannerExtensionConfiguration;
import org.eclipse.cdt.core.dom.parser.ISourceCodeParser;
import org.eclipse.cdt.core.dom.parser.cpp.ANSICPPParserExtensionConfiguration;
Expand All @@ -18,7 +19,7 @@
/**
* ILanguage implementation for the DOM no-dialect, pure C++ Parser.
*/
public class CPPLanguage extends AbstractCLikeLanguage implements IActualCPPLanguage {
public class CPPLanguage extends AbstractCLikeLanguage implements IExactCLanguage {

public static final ANSICPPParserExtensionConfiguration CPP_PARSER_EXTENSION = new ANSICPPParserExtensionConfiguration();

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package org.eclipse.cdt.core.dom.ast.c;
package org.eclipse.cdt.core.dom.parser;

/**
* This interface is used by Eclipse to mark the core language implementation that
* comes as one of the built-in languages as the true C Language.
* comes as one of the built-in languages as the true C or C++ Languages.
* This should not be implemented by any dialects!
*
* @noextend This interface is not intended to be extended by clients.
* @noimplement This interface is not intended to be implemented by clients.
*/
interface IActualCLanguage {
public interface IExactCLanguage {

}
Loading

0 comments on commit 8771d78

Please sign in to comment.