1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-21 21:52:10 +02:00

Bug 559674: move 'contribute more implementations API' to package participant

Change-Id: I3f79f0ba3245a9aa3b638cb01c5fc537bb32a47b
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
This commit is contained in:
Martin Weber 2020-05-27 23:09:56 +02:00 committed by Alexander Fedorov
parent 488cc91689
commit 3b8551a14a
59 changed files with 165 additions and 164 deletions

View file

@ -13,8 +13,8 @@ import static org.junit.Assert.assertNotNull;
import java.util.Locale;
import org.eclipse.cdt.cmake.is.core.IToolDetectionParticipant;
import org.eclipse.cdt.cmake.is.core.ParticipantTestUtil;
import org.eclipse.cdt.cmake.is.core.participant.IToolDetectionParticipant;
import org.eclipse.cdt.cmake.is.core.participant.ParticipantTestUtil;
import org.junit.Test;
/**

View file

@ -9,11 +9,11 @@
package org.eclipse.cdt.cmake.is.arm;
import org.eclipse.cdt.cmake.is.core.Arglets;
import org.eclipse.cdt.cmake.is.core.DefaultToolCommandlineParser;
import org.eclipse.cdt.cmake.is.core.DefaultToolDetectionParticipant;
import org.eclipse.cdt.cmake.is.core.IArglet;
import org.eclipse.cdt.cmake.is.core.ResponseFileArglets;
import org.eclipse.cdt.cmake.is.core.participant.Arglets;
import org.eclipse.cdt.cmake.is.core.participant.DefaultToolCommandlineParser;
import org.eclipse.cdt.cmake.is.core.participant.DefaultToolDetectionParticipant;
import org.eclipse.cdt.cmake.is.core.participant.IArglet;
import org.eclipse.cdt.cmake.is.core.participant.ResponseFileArglets;
/**
* armclang C & C++.

View file

@ -12,9 +12,9 @@ package org.eclipse.cdt.cmake.is.arm;
import java.util.Arrays;
import java.util.List;
import org.eclipse.cdt.cmake.is.core.builtins.GccOutputProcessor;
import org.eclipse.cdt.cmake.is.core.builtins.IBuiltinsDetectionBehavior;
import org.eclipse.cdt.cmake.is.core.builtins.IBuiltinsOutputProcessor;
import org.eclipse.cdt.cmake.is.core.participant.builtins.GccOutputProcessor;
import org.eclipse.cdt.cmake.is.core.participant.builtins.IBuiltinsDetectionBehavior;
import org.eclipse.cdt.cmake.is.core.participant.builtins.IBuiltinsOutputProcessor;
/**
* The {link IBuiltinsDetectionBehavior} for the ARM C or C++ version 5

View file

@ -9,10 +9,10 @@
package org.eclipse.cdt.cmake.is.arm;
import org.eclipse.cdt.cmake.is.core.Arglets;
import org.eclipse.cdt.cmake.is.core.DefaultToolCommandlineParser;
import org.eclipse.cdt.cmake.is.core.DefaultToolDetectionParticipant;
import org.eclipse.cdt.cmake.is.core.IArglet;
import org.eclipse.cdt.cmake.is.core.participant.Arglets;
import org.eclipse.cdt.cmake.is.core.participant.DefaultToolCommandlineParser;
import org.eclipse.cdt.cmake.is.core.participant.DefaultToolDetectionParticipant;
import org.eclipse.cdt.cmake.is.core.participant.IArglet;
/**
* armcc C & C++.

View file

@ -10,8 +10,8 @@ package org.eclipse.cdt.cmake.is.core.internal;
import static org.junit.Assert.assertEquals;
import org.eclipse.cdt.cmake.is.core.Arglets;
import org.eclipse.cdt.cmake.is.core.Arglets.LangStd_GCC;
import org.eclipse.cdt.cmake.is.core.participant.Arglets;
import org.eclipse.cdt.cmake.is.core.participant.Arglets.LangStd_GCC;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
import org.junit.Before;

View file

@ -10,8 +10,8 @@ package org.eclipse.cdt.cmake.is.core.internal;
import static org.junit.Assert.assertEquals;
import org.eclipse.cdt.cmake.is.core.Arglets;
import org.eclipse.cdt.cmake.is.core.Arglets.Sysroot_GCC;
import org.eclipse.cdt.cmake.is.core.participant.Arglets;
import org.eclipse.cdt.cmake.is.core.participant.Arglets.Sysroot_GCC;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
import org.junit.Before;

View file

@ -10,8 +10,8 @@ package org.eclipse.cdt.cmake.is.core.internal;
import static org.junit.Assert.assertEquals;
import org.eclipse.cdt.cmake.is.core.Arglets.IncludePath_C_POSIX;
import org.eclipse.cdt.cmake.is.core.IArglet.IArgumentCollector;
import org.eclipse.cdt.cmake.is.core.participant.Arglets.IncludePath_C_POSIX;
import org.eclipse.cdt.cmake.is.core.participant.IArglet.IArgumentCollector;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
import org.junit.Before;

View file

@ -13,8 +13,8 @@ import static org.junit.Assert.assertTrue;
import java.util.Map;
import org.eclipse.cdt.cmake.is.core.Arglets;
import org.eclipse.cdt.cmake.is.core.Arglets.MacroDefine_C_POSIX;
import org.eclipse.cdt.cmake.is.core.participant.Arglets;
import org.eclipse.cdt.cmake.is.core.participant.Arglets.MacroDefine_C_POSIX;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
import org.junit.Before;

View file

@ -10,8 +10,8 @@ package org.eclipse.cdt.cmake.is.core.internal;
import static org.junit.Assert.assertEquals;
import org.eclipse.cdt.cmake.is.core.Arglets.MacroUndefine_C_POSIX;
import org.eclipse.cdt.cmake.is.core.IArglet.IArgumentCollector;
import org.eclipse.cdt.cmake.is.core.participant.Arglets.MacroUndefine_C_POSIX;
import org.eclipse.cdt.cmake.is.core.participant.IArglet.IArgumentCollector;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
import org.junit.Before;

View file

@ -10,9 +10,9 @@ package org.eclipse.cdt.cmake.is.core.internal;
import static org.junit.Assert.assertEquals;
import org.eclipse.cdt.cmake.is.core.Arglets.IncludePath_C_POSIX;
import org.eclipse.cdt.cmake.is.core.Arglets.SystemIncludePath_C;
import org.eclipse.cdt.cmake.is.core.IArglet.IArgumentCollector;
import org.eclipse.cdt.cmake.is.core.participant.Arglets.IncludePath_C_POSIX;
import org.eclipse.cdt.cmake.is.core.participant.Arglets.SystemIncludePath_C;
import org.eclipse.cdt.cmake.is.core.participant.IArglet.IArgumentCollector;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
import org.junit.Before;

View file

@ -10,7 +10,7 @@ package org.eclipse.cdt.cmake.is.core.internal;
import static org.junit.Assert.assertEquals;
import org.eclipse.cdt.cmake.is.core.Arglets.SystemIncludePath_armcc;
import org.eclipse.cdt.cmake.is.core.participant.Arglets.SystemIncludePath_armcc;
import org.eclipse.cdt.core.settings.model.ICLanguageSettingEntry;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;

View file

@ -16,10 +16,10 @@ import java.nio.file.Files;
import java.nio.file.Paths;
import java.nio.file.StandardOpenOption;
import org.eclipse.cdt.cmake.is.core.Arglets;
import org.eclipse.cdt.cmake.is.core.DefaultToolCommandlineParser;
import org.eclipse.cdt.cmake.is.core.IToolCommandlineParser;
import org.eclipse.cdt.cmake.is.core.ResponseFileArglets;
import org.eclipse.cdt.cmake.is.core.participant.Arglets;
import org.eclipse.cdt.cmake.is.core.participant.DefaultToolCommandlineParser;
import org.eclipse.cdt.cmake.is.core.participant.IToolCommandlineParser;
import org.eclipse.cdt.cmake.is.core.participant.ResponseFileArglets;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
import org.junit.Test;

View file

@ -16,8 +16,8 @@ import static org.junit.Assert.assertTrue;
import java.io.IOException;
import java.io.InputStream;
import org.eclipse.cdt.cmake.is.core.builtins.GccOutputProcessor;
import org.eclipse.cdt.cmake.is.core.builtins.OutputSniffer;
import org.eclipse.cdt.cmake.is.core.participant.builtins.GccOutputProcessor;
import org.eclipse.cdt.cmake.is.core.participant.builtins.OutputSniffer;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;

View file

@ -11,8 +11,9 @@ Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Bundle-ActivationPolicy: lazy
Bundle-Activator: org.eclipse.cdt.cmake.is.core.internal.Plugin
Export-Package: org.eclipse.cdt.cmake.is.core;x-internal:=true;uses:="org.eclipse.core.runtime,org.eclipse.cdt.core.settings.model,org.eclipse.cdt.cmake.is.core.builtins",
org.eclipse.cdt.cmake.is.core.builtins;x-internal:=true;uses:="org.eclipse.cdt.core.settings.model",
org.eclipse.cdt.cmake.is.core.language.settings.providers;x-internal:=true
org.eclipse.cdt.cmake.is.core.language.settings.providers;x-internal:=true,
org.eclipse.cdt.cmake.is.core.participant;uses:="org.eclipse.core.runtime,org.eclipse.cdt.cmake.is.core.participant.builtins,org.eclipse.cdt.cmake.is.core",
org.eclipse.cdt.cmake.is.core.participant.builtins;uses:="org.eclipse.cdt.cmake.is.core"
Require-Bundle: org.eclipse.ui.workbench;bundle-version="3.8.0",
org.eclipse.cdt.ui,
org.eclipse.core.resources;bundle-version="3.13.700",

View file

@ -6,8 +6,8 @@
<meta.schema plugin="org.eclipse.cdt.cmake.is.core" id="detectionParticipant" name="Tool Detection Participants"/>
</appinfo>
<documentation>
Allows plug-ins to contribute to detection of compiler include paths, preprocessor defines and preprocessor un-defines from a command-line text.
&lt;p&gt;This extension point teaches the &lt;i&gt;CMAKE_EXPORT_COMPILE_COMMANDS Parser&lt;/i&gt; and the &lt;i&gt;CMAKE_EXPORT_COMPILE_COMMANDS Compiler Built-ins&lt;/i&gt; language settings providers to analyze compiler-specific command-lines incl. options for a specific compiler. The detected include paths, preprocessor defines and preprocessor un-defines from the compiler command-line get passed to the CDT indexer.&lt;/p&gt;
Allows plug-ins to contribute to detection of compiler include paths and preprocessor defines from a command-line text.
&lt;p&gt;This extension point teaches the &lt;i&gt;CompileCommandsParser&lt;/i&gt; to analyze compiler-specific command-lines incl. options for a specific compiler. The detected include paths, preprocessor defines and preprocessor un-defines from the compiler command-line get passed to the CDT indexer.&lt;/p&gt;
&lt;p&gt;Third party compiler vendors may use this extension point to add their compiler (or other tool) for improved syntax highlighting in the CDT&apos;s C/C++ editors.
&lt;/p&gt;
</documentation>
@ -60,11 +60,11 @@
<attribute name="class" type="string" use="required">
<annotation>
<documentation>
The fully qualified name of a class that implements &lt;code&gt;org.eclipse.cdt.cmake.is.IToolDetectionParticipant&lt;/code&gt;, The implementation must provide a public no-argument constructor.&lt;br/&gt;
You may want to consider sub-classing &lt;code&gt;org.eclipse.cdt.cmake.is.DefaultToolDetectionParticipant&lt;/code&gt; for convenience instead of directly implementing the interface.
The fully qualified name of a class that implements &lt;code&gt;org.eclipse.cdt.cmake.is.participant.IToolDetectionParticipant&lt;/code&gt;, The implementation must provide a public no-argument constructor.&lt;br/&gt;
You may want to consider sub-classing &lt;code&gt;org.eclipse.cdt.cmake.is.participant.DefaultToolDetectionParticipant&lt;/code&gt; for convenience instead of directly implementing the interface.
</documentation>
<appinfo>
<meta.attribute kind="java" basedOn=":org.eclipse.cdt.cmake.is.IToolDetectionParticipant"/>
<meta.attribute kind="java" basedOn=":org.eclipse.cdt.cmake.is.participant.IToolDetectionParticipant"/>
</appinfo>
</annotation>
</attribute>
@ -90,7 +90,7 @@ You may want to consider sub-classing &lt;code&gt;org.eclipse.cdt.cmake.is.Defau
<meta.section type="since"/>
</appinfo>
<documentation>
2.0.0
1.0.0
</documentation>
</annotation>
@ -129,8 +129,8 @@ Example file &lt;code&gt;help_content_extension.xml&lt;/code&gt;:
&lt;/p&gt;
&lt;p&gt;
The easiest way to implement a tool detection participant would be to sub-class &lt;code&gt;org.eclipse.cdt.cmake.is.DefaultToolDetectionParticipant&lt;/code&gt;.
To configure your class, pass an instance of &lt;code&gt;org.eclipse.cdt.cmake.is.DefaultToolCommandlineParser&lt;/code&gt; in its super-constructor.&lt;br/&gt;
The easiest way to implement a tool detection participant would be to sub-class &lt;code&gt;org.eclipse.cdt.cmake.is.participant.DefaultToolDetectionParticipant&lt;/code&gt;.
To configure your class, pass an instance of &lt;code&gt;org.eclipse.cdt.cmake.is.participant.DefaultToolCommandlineParser&lt;/code&gt; in its super-constructor.&lt;br/&gt;
Some predifined parsers for tool arguments can be found in the classes &lt;code&gt;Arglets&lt;/code&gt; and &lt;code&gt;ResponseFileArglets&lt;/code&gt;.
&lt;/p&gt;
</documentation>
@ -152,7 +152,7 @@ See, for example &lt;code&gt;de/marw/cmake/cdt/lsp/intel/IccToolDetectionPartici
<meta.section type="copyright"/>
</appinfo>
<documentation>
Copyright (c) 2019 Martin Weber&lt;br&gt;
Copyright (c) 2019-20 Martin Weber&lt;br&gt;
All rights reserved. Content is provided to you under the terms and conditions of the Eclipse Public License Version 2.0 &quot;EPL&quot;.
A copy of the EPL is available at http://www.eclipse.org/legal/epl-2.0.
</documentation>

View file

@ -12,9 +12,9 @@ package org.eclipse.cdt.cmake.is.core.internal;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.cdt.cmake.is.core.IArglet;
import org.eclipse.cdt.cmake.is.core.IToolCommandlineParser;
import org.eclipse.cdt.cmake.is.core.internal.builtins.RawIndexerInfo;
import org.eclipse.cdt.cmake.is.core.participant.IArglet;
import org.eclipse.cdt.cmake.is.core.participant.IToolCommandlineParser;
/**
* Default implementation of IArgumentCollector.

View file

@ -17,17 +17,17 @@ import java.util.Map;
import java.util.Optional;
import java.util.function.Consumer;
import org.eclipse.cdt.cmake.is.core.Arglets;
import org.eclipse.cdt.cmake.is.core.DefaultToolCommandlineParser;
import org.eclipse.cdt.cmake.is.core.DefaultToolDetectionParticipant;
import org.eclipse.cdt.cmake.is.core.IArglet;
import org.eclipse.cdt.cmake.is.core.IToolCommandlineParser;
import org.eclipse.cdt.cmake.is.core.IToolDetectionParticipant;
import org.eclipse.cdt.cmake.is.core.IToolDetectionParticipant.MatchResult;
import org.eclipse.cdt.cmake.is.core.ResponseFileArglets;
import org.eclipse.cdt.cmake.is.core.builtins.IBuiltinsDetectionBehavior;
import org.eclipse.cdt.cmake.is.core.internal.builtins.GccBuiltinDetectionBehavior;
import org.eclipse.cdt.cmake.is.core.internal.builtins.MaybeGccBuiltinDetectionBehavior;
import org.eclipse.cdt.cmake.is.core.participant.Arglets;
import org.eclipse.cdt.cmake.is.core.participant.DefaultToolCommandlineParser;
import org.eclipse.cdt.cmake.is.core.participant.DefaultToolDetectionParticipant;
import org.eclipse.cdt.cmake.is.core.participant.IArglet;
import org.eclipse.cdt.cmake.is.core.participant.IToolCommandlineParser;
import org.eclipse.cdt.cmake.is.core.participant.IToolDetectionParticipant;
import org.eclipse.cdt.cmake.is.core.participant.ResponseFileArglets;
import org.eclipse.cdt.cmake.is.core.participant.IToolDetectionParticipant.MatchResult;
import org.eclipse.cdt.cmake.is.core.participant.builtins.IBuiltinsDetectionBehavior;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.ILog;

View file

@ -19,13 +19,13 @@ import java.util.List;
import java.util.Objects;
import java.util.Set;
import org.eclipse.cdt.cmake.is.core.IRawIndexerInfo;
import org.eclipse.cdt.cmake.is.core.builtins.IBuiltinsDetectionBehavior;
import org.eclipse.cdt.cmake.is.core.builtins.IBuiltinsOutputProcessor;
import org.eclipse.cdt.cmake.is.core.builtins.OutputSniffer;
import org.eclipse.cdt.cmake.is.core.internal.Plugin;
import org.eclipse.cdt.cmake.is.core.language.settings.providers.IParserPreferences;
import org.eclipse.cdt.cmake.is.core.language.settings.providers.IParserPreferencesAccess;
import org.eclipse.cdt.cmake.is.core.participant.IRawIndexerInfo;
import org.eclipse.cdt.cmake.is.core.participant.builtins.IBuiltinsDetectionBehavior;
import org.eclipse.cdt.cmake.is.core.participant.builtins.IBuiltinsOutputProcessor;
import org.eclipse.cdt.cmake.is.core.participant.builtins.OutputSniffer;
import org.eclipse.cdt.core.CCorePlugin;
import org.eclipse.cdt.core.ConsoleOutputStream;
import org.eclipse.cdt.core.ICommandLauncher;

View file

@ -12,9 +12,9 @@ package org.eclipse.cdt.cmake.is.core.internal.builtins;
import java.util.Arrays;
import java.util.List;
import org.eclipse.cdt.cmake.is.core.builtins.GccOutputProcessor;
import org.eclipse.cdt.cmake.is.core.builtins.IBuiltinsDetectionBehavior;
import org.eclipse.cdt.cmake.is.core.builtins.IBuiltinsOutputProcessor;
import org.eclipse.cdt.cmake.is.core.participant.builtins.GccOutputProcessor;
import org.eclipse.cdt.cmake.is.core.participant.builtins.IBuiltinsDetectionBehavior;
import org.eclipse.cdt.cmake.is.core.participant.builtins.IBuiltinsOutputProcessor;
/**
* The {link IBuiltinsDetectionBehavior} for the GNU C and GNU C++ compiler

View file

@ -20,9 +20,9 @@ import java.util.Map;
import java.util.Map.Entry;
import java.util.Objects;
import org.eclipse.cdt.cmake.is.core.IRawIndexerInfo;
import org.eclipse.cdt.cmake.is.core.IRawIndexerInfoCollector;
import org.eclipse.cdt.cmake.is.core.internal.Plugin;
import org.eclipse.cdt.cmake.is.core.participant.IRawIndexerInfo;
import org.eclipse.cdt.cmake.is.core.participant.IRawIndexerInfoCollector;
import org.eclipse.core.runtime.Platform;
/**

View file

@ -26,18 +26,18 @@ import java.util.stream.Collectors;
import java.util.stream.Stream;
import org.apache.commons.io.FilenameUtils;
import org.eclipse.cdt.cmake.is.core.DefaultToolDetectionParticipant;
import org.eclipse.cdt.cmake.is.core.IRawIndexerInfo;
import org.eclipse.cdt.cmake.is.core.IToolCommandlineParser;
import org.eclipse.cdt.cmake.is.core.IToolCommandlineParser.IResult;
import org.eclipse.cdt.cmake.is.core.IToolDetectionParticipant;
import org.eclipse.cdt.cmake.is.core.builtins.IBuiltinsDetectionBehavior;
import org.eclipse.cdt.cmake.is.core.internal.ParserDetection;
import org.eclipse.cdt.cmake.is.core.internal.ParserDetection.DetectorWithMethod;
import org.eclipse.cdt.cmake.is.core.internal.ParserDetection.ParserDetectionResult;
import org.eclipse.cdt.cmake.is.core.internal.Plugin;
import org.eclipse.cdt.cmake.is.core.internal.StringUtil;
import org.eclipse.cdt.cmake.is.core.internal.builtins.CompilerBuiltinsDetector;
import org.eclipse.cdt.cmake.is.core.participant.DefaultToolDetectionParticipant;
import org.eclipse.cdt.cmake.is.core.participant.IRawIndexerInfo;
import org.eclipse.cdt.cmake.is.core.participant.IToolCommandlineParser;
import org.eclipse.cdt.cmake.is.core.participant.IToolDetectionParticipant;
import org.eclipse.cdt.cmake.is.core.participant.IToolCommandlineParser.IResult;
import org.eclipse.cdt.cmake.is.core.participant.builtins.IBuiltinsDetectionBehavior;
import org.eclipse.cdt.core.ICommandLauncher;
import org.eclipse.cdt.core.build.CBuildConfiguration;
import org.eclipse.cdt.core.resources.IConsole;

View file

@ -6,12 +6,12 @@
*
* SPDX-License-Identifier: EPL-2.0
*******************************************************************************/
package org.eclipse.cdt.cmake.is.core;
package org.eclipse.cdt.cmake.is.core.participant;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.eclipse.cdt.cmake.is.core.IArglet.IArgumentCollector;
import org.eclipse.cdt.cmake.is.core.participant.IArglet.IArgumentCollector;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
@ -179,7 +179,7 @@ public final class Arglets {
/**
* @param isSystemIncludePath <code>true</code> if the include path is a system include path otherwise <code>false</code>
* @param cwd the current working directory of the compiler at its invocation
* @see org.eclipse.cdt.cmake.is.core.IArglet#processArgument(IArgumentCollector,
* @see org.eclipse.cdt.cmake.is.core.participant.IArglet#processArgument(IArgumentCollector,
* IPath, String)
*/
protected final int processArgument(boolean isSystemIncludePath, IArgumentCollector resultCollector, IPath cwd,
@ -351,7 +351,7 @@ public final class Arglets {
*/
public static abstract class BuiltinDetctionArgsGeneric {
/**
* @see org.eclipse.cdt.cmake.is.core.IArglet#processArgument(IArgumentCollector,
* @see org.eclipse.cdt.cmake.is.core.participant.IArglet#processArgument(IArgumentCollector,
* IPath, String)
*/
protected final int processArgument(IArgumentCollector resultCollector, String argsLine,

View file

@ -6,16 +6,16 @@
*
* SPDX-License-Identifier: EPL-2.0
*******************************************************************************/
package org.eclipse.cdt.cmake.is.core;
package org.eclipse.cdt.cmake.is.core.participant;
import java.util.Arrays;
import java.util.Objects;
import java.util.Optional;
import org.eclipse.cdt.cmake.is.core.builtins.IBuiltinsDetectionBehavior;
import org.eclipse.cdt.cmake.is.core.internal.ParseContext;
import org.eclipse.cdt.cmake.is.core.internal.Plugin;
import org.eclipse.cdt.cmake.is.core.internal.StringUtil;
import org.eclipse.cdt.cmake.is.core.participant.builtins.IBuiltinsDetectionBehavior;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Platform;

View file

@ -7,7 +7,7 @@
* SPDX-License-Identifier: EPL-2.0
*******************************************************************************/
package org.eclipse.cdt.cmake.is.core;
package org.eclipse.cdt.cmake.is.core.participant;
import java.util.Locale;
import java.util.Optional;

View file

@ -6,7 +6,7 @@
*
* SPDX-License-Identifier: EPL-2.0
*******************************************************************************/
package org.eclipse.cdt.cmake.is.core;
package org.eclipse.cdt.cmake.is.core.participant;
import org.eclipse.core.runtime.IPath;

View file

@ -7,7 +7,7 @@
* SPDX-License-Identifier: EPL-2.0
*******************************************************************************/
package org.eclipse.cdt.cmake.is.core;
package org.eclipse.cdt.cmake.is.core.participant;
import org.eclipse.core.runtime.IPath;

View file

@ -9,7 +9,7 @@
* SPDX-License-Identifier: EPL-2.0
*******************************************************************************/
package org.eclipse.cdt.cmake.is.core;
package org.eclipse.cdt.cmake.is.core.participant;
import java.util.List;
import java.util.Map;

View file

@ -9,7 +9,7 @@
* SPDX-License-Identifier: EPL-2.0
*******************************************************************************/
package org.eclipse.cdt.cmake.is.core;
package org.eclipse.cdt.cmake.is.core.participant;
/**
* Gathers information about C preprocessor symbols and include paths collected

View file

@ -7,7 +7,7 @@
* SPDX-License-Identifier: EPL-2.0
*******************************************************************************/
package org.eclipse.cdt.cmake.is.core;
package org.eclipse.cdt.cmake.is.core.participant;
/**
* Parses a 'response file' tool argument and its content.

View file

@ -6,12 +6,12 @@
*
* SPDX-License-Identifier: EPL-2.0
*******************************************************************************/
package org.eclipse.cdt.cmake.is.core;
package org.eclipse.cdt.cmake.is.core.participant;
import java.util.List;
import java.util.Optional;
import org.eclipse.cdt.cmake.is.core.builtins.IBuiltinsDetectionBehavior;
import org.eclipse.cdt.cmake.is.core.participant.builtins.IBuiltinsDetectionBehavior;
import org.eclipse.core.runtime.IPath;
/**

View file

@ -7,7 +7,7 @@
* SPDX-License-Identifier: EPL-2.0
*******************************************************************************/
package org.eclipse.cdt.cmake.is.core;
package org.eclipse.cdt.cmake.is.core.participant;
import java.util.Optional;

View file

@ -7,7 +7,7 @@
* SPDX-License-Identifier: EPL-2.0
*******************************************************************************/
package org.eclipse.cdt.cmake.is.core;
package org.eclipse.cdt.cmake.is.core.participant;
import org.eclipse.cdt.cmake.is.core.internal.ParserDetection;

View file

@ -7,14 +7,14 @@
* SPDX-License-Identifier: EPL-2.0
*******************************************************************************/
package org.eclipse.cdt.cmake.is.core;
package org.eclipse.cdt.cmake.is.core.participant;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.regex.Matcher;
import org.eclipse.cdt.cmake.is.core.Arglets.NameOptionMatcher;
import org.eclipse.cdt.cmake.is.core.participant.Arglets.NameOptionMatcher;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;

View file

@ -7,13 +7,13 @@
* SPDX-License-Identifier: EPL-2.0
*******************************************************************************/
package org.eclipse.cdt.cmake.is.core.builtins;
package org.eclipse.cdt.cmake.is.core.participant.builtins;
import java.util.Optional;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.eclipse.cdt.cmake.is.core.IRawIndexerInfoCollector;
import org.eclipse.cdt.cmake.is.core.participant.IRawIndexerInfoCollector;
import org.eclipse.cdt.core.settings.model.ICLanguageSettingEntry;
import org.eclipse.cdt.core.settings.model.ICSettingEntry;
import org.eclipse.cdt.core.settings.model.util.CDataUtil;

View file

@ -7,7 +7,7 @@
* SPDX-License-Identifier: EPL-2.0
*******************************************************************************/
package org.eclipse.cdt.cmake.is.core.builtins;
package org.eclipse.cdt.cmake.is.core.participant.builtins;
import java.util.List;

View file

@ -7,9 +7,9 @@
* SPDX-License-Identifier: EPL-2.0
*******************************************************************************/
package org.eclipse.cdt.cmake.is.core.builtins;
package org.eclipse.cdt.cmake.is.core.participant.builtins;
import org.eclipse.cdt.cmake.is.core.IRawIndexerInfoCollector;
import org.eclipse.cdt.cmake.is.core.participant.IRawIndexerInfoCollector;
/**
* Responsible for parsing the output that is produced when a compiler is

View file

@ -7,13 +7,13 @@
* SPDX-License-Identifier: EPL-2.0
*******************************************************************************/
package org.eclipse.cdt.cmake.is.core.builtins;
package org.eclipse.cdt.cmake.is.core.participant.builtins;
import java.io.IOException;
import java.io.OutputStream;
import java.util.Objects;
import org.eclipse.cdt.cmake.is.core.IRawIndexerInfoCollector;
import org.eclipse.cdt.cmake.is.core.participant.IRawIndexerInfoCollector;
/**
* An OutputStream that passes each line written to it to a

View file

@ -13,8 +13,8 @@ import static org.junit.Assert.assertNotNull;
import java.util.Locale;
import org.eclipse.cdt.cmake.is.core.IToolDetectionParticipant;
import org.eclipse.cdt.cmake.is.core.ParticipantTestUtil;
import org.eclipse.cdt.cmake.is.core.participant.IToolDetectionParticipant;
import org.eclipse.cdt.cmake.is.core.participant.ParticipantTestUtil;
import org.junit.Test;
/**

View file

@ -9,11 +9,11 @@
package org.eclipse.cdt.cmake.is.hpenonstop;
import org.eclipse.cdt.cmake.is.core.Arglets;
import org.eclipse.cdt.cmake.is.core.DefaultToolCommandlineParser;
import org.eclipse.cdt.cmake.is.core.DefaultToolDetectionParticipant;
import org.eclipse.cdt.cmake.is.core.IArglet;
import org.eclipse.cdt.cmake.is.core.ResponseFileArglets;
import org.eclipse.cdt.cmake.is.core.participant.Arglets;
import org.eclipse.cdt.cmake.is.core.participant.DefaultToolCommandlineParser;
import org.eclipse.cdt.cmake.is.core.participant.DefaultToolDetectionParticipant;
import org.eclipse.cdt.cmake.is.core.participant.IArglet;
import org.eclipse.cdt.cmake.is.core.participant.ResponseFileArglets;
/**
* HPE NonStop c11 C & C++.

View file

@ -9,11 +9,11 @@
package org.eclipse.cdt.cmake.is.hpenonstop;
import org.eclipse.cdt.cmake.is.core.Arglets;
import org.eclipse.cdt.cmake.is.core.DefaultToolCommandlineParser;
import org.eclipse.cdt.cmake.is.core.DefaultToolDetectionParticipant;
import org.eclipse.cdt.cmake.is.core.IArglet;
import org.eclipse.cdt.cmake.is.core.ResponseFileArglets;
import org.eclipse.cdt.cmake.is.core.participant.Arglets;
import org.eclipse.cdt.cmake.is.core.participant.DefaultToolCommandlineParser;
import org.eclipse.cdt.cmake.is.core.participant.DefaultToolDetectionParticipant;
import org.eclipse.cdt.cmake.is.core.participant.IArglet;
import org.eclipse.cdt.cmake.is.core.participant.ResponseFileArglets;
/**
* HPE NonStop c89 C & C++.

View file

@ -9,11 +9,11 @@
package org.eclipse.cdt.cmake.is.hpenonstop;
import org.eclipse.cdt.cmake.is.core.Arglets;
import org.eclipse.cdt.cmake.is.core.DefaultToolCommandlineParser;
import org.eclipse.cdt.cmake.is.core.DefaultToolDetectionParticipant;
import org.eclipse.cdt.cmake.is.core.IArglet;
import org.eclipse.cdt.cmake.is.core.ResponseFileArglets;
import org.eclipse.cdt.cmake.is.core.participant.Arglets;
import org.eclipse.cdt.cmake.is.core.participant.DefaultToolCommandlineParser;
import org.eclipse.cdt.cmake.is.core.participant.DefaultToolDetectionParticipant;
import org.eclipse.cdt.cmake.is.core.participant.IArglet;
import org.eclipse.cdt.cmake.is.core.participant.ResponseFileArglets;
/**
* HPE NonStop c99 C & C++.

View file

@ -9,7 +9,7 @@
package org.eclipse.cdt.cmake.is.intel;
import org.eclipse.cdt.cmake.is.core.DefaultToolDetectionParticipant;
import org.eclipse.cdt.cmake.is.core.participant.DefaultToolDetectionParticipant;
/**
* C, Linux & OS X, EDG.

View file

@ -9,11 +9,11 @@
package org.eclipse.cdt.cmake.is.intel;
import org.eclipse.cdt.cmake.is.core.Arglets;
import org.eclipse.cdt.cmake.is.core.DefaultToolCommandlineParser;
import org.eclipse.cdt.cmake.is.core.DefaultToolDetectionParticipant;
import org.eclipse.cdt.cmake.is.core.IArglet;
import org.eclipse.cdt.cmake.is.core.ResponseFileArglets;
import org.eclipse.cdt.cmake.is.core.participant.Arglets;
import org.eclipse.cdt.cmake.is.core.participant.DefaultToolCommandlineParser;
import org.eclipse.cdt.cmake.is.core.participant.DefaultToolDetectionParticipant;
import org.eclipse.cdt.cmake.is.core.participant.IArglet;
import org.eclipse.cdt.cmake.is.core.participant.ResponseFileArglets;
/**
* C + C++, Windows, EDG.

View file

@ -9,7 +9,7 @@
package org.eclipse.cdt.cmake.is.intel;
import org.eclipse.cdt.cmake.is.core.DefaultToolDetectionParticipant;
import org.eclipse.cdt.cmake.is.core.participant.DefaultToolDetectionParticipant;
/**
* C, OS X, clang.

View file

@ -9,7 +9,7 @@
package org.eclipse.cdt.cmake.is.intel;
import org.eclipse.cdt.cmake.is.core.DefaultToolDetectionParticipant;
import org.eclipse.cdt.cmake.is.core.participant.DefaultToolDetectionParticipant;
/**
* C++, OS X, clang.

View file

@ -9,7 +9,7 @@
package org.eclipse.cdt.cmake.is.intel;
import org.eclipse.cdt.cmake.is.core.DefaultToolDetectionParticipant;
import org.eclipse.cdt.cmake.is.core.participant.DefaultToolDetectionParticipant;
/**
* C++, Linux & OS X, EDG.

View file

@ -9,10 +9,10 @@
package org.eclipse.cdt.cmake.is.intel;
import org.eclipse.cdt.cmake.is.core.Arglets;
import org.eclipse.cdt.cmake.is.core.DefaultToolCommandlineParser;
import org.eclipse.cdt.cmake.is.core.IToolCommandlineParser;
import org.eclipse.cdt.cmake.is.core.ResponseFileArglets;
import org.eclipse.cdt.cmake.is.core.participant.Arglets;
import org.eclipse.cdt.cmake.is.core.participant.DefaultToolCommandlineParser;
import org.eclipse.cdt.cmake.is.core.participant.IToolCommandlineParser;
import org.eclipse.cdt.cmake.is.core.participant.ResponseFileArglets;
/**
* An {@link IToolCommandlineParser} for the Intel C compilers.

View file

@ -9,10 +9,10 @@
package org.eclipse.cdt.cmake.is.intel;
import org.eclipse.cdt.cmake.is.core.Arglets;
import org.eclipse.cdt.cmake.is.core.DefaultToolCommandlineParser;
import org.eclipse.cdt.cmake.is.core.IToolCommandlineParser;
import org.eclipse.cdt.cmake.is.core.ResponseFileArglets;
import org.eclipse.cdt.cmake.is.core.participant.Arglets;
import org.eclipse.cdt.cmake.is.core.participant.DefaultToolCommandlineParser;
import org.eclipse.cdt.cmake.is.core.participant.IToolCommandlineParser;
import org.eclipse.cdt.cmake.is.core.participant.ResponseFileArglets;
/**
* An {@link IToolCommandlineParser} for the Intel C compilers.

View file

@ -13,8 +13,8 @@ import static org.junit.Assert.assertNotNull;
import java.util.Locale;
import org.eclipse.cdt.cmake.is.core.IToolDetectionParticipant;
import org.eclipse.cdt.cmake.is.core.ParticipantTestUtil;
import org.eclipse.cdt.cmake.is.core.participant.IToolDetectionParticipant;
import org.eclipse.cdt.cmake.is.core.participant.ParticipantTestUtil;
import org.junit.Test;
/**

View file

@ -9,15 +9,15 @@
package org.eclipse.cdt.cmake.is.microsoft;
import org.eclipse.cdt.cmake.is.core.Arglets.IncludePathGeneric;
import org.eclipse.cdt.cmake.is.core.Arglets.MacroDefineGeneric;
import org.eclipse.cdt.cmake.is.core.Arglets.MacroUndefineGeneric;
import org.eclipse.cdt.cmake.is.core.Arglets.NameOptionMatcher;
import org.eclipse.cdt.cmake.is.core.Arglets.NameValueOptionMatcher;
import org.eclipse.cdt.cmake.is.core.DefaultToolCommandlineParser;
import org.eclipse.cdt.cmake.is.core.IArglet;
import org.eclipse.cdt.cmake.is.core.IToolCommandlineParser;
import org.eclipse.cdt.cmake.is.core.ResponseFileArglets;
import org.eclipse.cdt.cmake.is.core.participant.DefaultToolCommandlineParser;
import org.eclipse.cdt.cmake.is.core.participant.IArglet;
import org.eclipse.cdt.cmake.is.core.participant.IToolCommandlineParser;
import org.eclipse.cdt.cmake.is.core.participant.ResponseFileArglets;
import org.eclipse.cdt.cmake.is.core.participant.Arglets.IncludePathGeneric;
import org.eclipse.cdt.cmake.is.core.participant.Arglets.MacroDefineGeneric;
import org.eclipse.cdt.cmake.is.core.participant.Arglets.MacroUndefineGeneric;
import org.eclipse.cdt.cmake.is.core.participant.Arglets.NameOptionMatcher;
import org.eclipse.cdt.cmake.is.core.participant.Arglets.NameValueOptionMatcher;
import org.eclipse.core.runtime.IPath;
/**

View file

@ -9,7 +9,7 @@
package org.eclipse.cdt.cmake.is.microsoft;
import org.eclipse.cdt.cmake.is.core.DefaultToolDetectionParticipant;
import org.eclipse.cdt.cmake.is.core.participant.DefaultToolDetectionParticipant;
/**
* Microsoft C and C++ compiler (cl).

View file

@ -10,8 +10,8 @@ package org.eclipse.cdt.cmake.is.nvidia;
import static org.junit.Assert.assertEquals;
import org.eclipse.cdt.cmake.is.core.DefaultToolCommandlineParser;
import org.eclipse.cdt.cmake.is.core.IToolCommandlineParser.IResult;
import org.eclipse.cdt.cmake.is.core.participant.DefaultToolCommandlineParser;
import org.eclipse.cdt.cmake.is.core.participant.IToolCommandlineParser.IResult;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
import org.junit.Before;

View file

@ -13,8 +13,8 @@ import static org.junit.Assert.assertNotNull;
import java.util.Locale;
import org.eclipse.cdt.cmake.is.core.IToolDetectionParticipant;
import org.eclipse.cdt.cmake.is.core.ParticipantTestUtil;
import org.eclipse.cdt.cmake.is.core.participant.IToolDetectionParticipant;
import org.eclipse.cdt.cmake.is.core.participant.ParticipantTestUtil;
import org.junit.Test;
/**

View file

@ -10,8 +10,8 @@ package org.eclipse.cdt.cmake.is.nvidia.builtins;
import static org.junit.Assert.assertEquals;
import org.eclipse.cdt.cmake.is.core.DefaultToolCommandlineParser;
import org.eclipse.cdt.cmake.is.core.IToolCommandlineParser.IResult;
import org.eclipse.cdt.cmake.is.core.participant.DefaultToolCommandlineParser;
import org.eclipse.cdt.cmake.is.core.participant.IToolCommandlineParser.IResult;
import org.eclipse.cdt.cmake.is.nvidia.NvccLangStdArglet;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;

View file

@ -20,9 +20,9 @@ import java.util.List;
import java.util.Map;
import java.util.Objects;
import org.eclipse.cdt.cmake.is.core.IRawIndexerInfoCollector;
import org.eclipse.cdt.cmake.is.core.builtins.GccOutputProcessor;
import org.eclipse.cdt.cmake.is.core.builtins.OutputSniffer;
import org.eclipse.cdt.cmake.is.core.participant.IRawIndexerInfoCollector;
import org.eclipse.cdt.cmake.is.core.participant.builtins.GccOutputProcessor;
import org.eclipse.cdt.cmake.is.core.participant.builtins.OutputSniffer;
import org.junit.Before;
import org.junit.Test;

View file

@ -12,9 +12,9 @@ package org.eclipse.cdt.cmake.is.nvidia;
import java.util.Arrays;
import java.util.List;
import org.eclipse.cdt.cmake.is.core.builtins.GccOutputProcessor;
import org.eclipse.cdt.cmake.is.core.builtins.IBuiltinsDetectionBehavior;
import org.eclipse.cdt.cmake.is.core.builtins.IBuiltinsOutputProcessor;
import org.eclipse.cdt.cmake.is.core.participant.builtins.GccOutputProcessor;
import org.eclipse.cdt.cmake.is.core.participant.builtins.IBuiltinsDetectionBehavior;
import org.eclipse.cdt.cmake.is.core.participant.builtins.IBuiltinsOutputProcessor;
/**
* The {link IBuiltinsDetectionBehavior} for the NVidia CUDA compiler.

View file

@ -12,8 +12,8 @@ package org.eclipse.cdt.cmake.is.nvidia;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.eclipse.cdt.cmake.is.core.Arglets.BuiltinDetctionArgsGeneric;
import org.eclipse.cdt.cmake.is.core.IArglet;
import org.eclipse.cdt.cmake.is.core.participant.IArglet;
import org.eclipse.cdt.cmake.is.core.participant.Arglets.BuiltinDetctionArgsGeneric;
import org.eclipse.core.runtime.IPath;
/**

View file

@ -9,9 +9,9 @@
package org.eclipse.cdt.cmake.is.nvidia;
import org.eclipse.cdt.cmake.is.core.Arglets.IncludePathGeneric;
import org.eclipse.cdt.cmake.is.core.Arglets.NameOptionMatcher;
import org.eclipse.cdt.cmake.is.core.IArglet;
import org.eclipse.cdt.cmake.is.core.participant.IArglet;
import org.eclipse.cdt.cmake.is.core.participant.Arglets.IncludePathGeneric;
import org.eclipse.cdt.cmake.is.core.participant.Arglets.NameOptionMatcher;
import org.eclipse.core.runtime.IPath;
/**

View file

@ -12,11 +12,11 @@ package org.eclipse.cdt.cmake.is.nvidia;
import java.util.Collections;
import java.util.Set;
import org.eclipse.cdt.cmake.is.core.Arglets;
import org.eclipse.cdt.cmake.is.core.DefaultToolCommandlineParser;
import org.eclipse.cdt.cmake.is.core.DefaultToolDetectionParticipant;
import org.eclipse.cdt.cmake.is.core.IArglet;
import org.eclipse.cdt.cmake.is.core.ResponseFileArglets;
import org.eclipse.cdt.cmake.is.core.participant.Arglets;
import org.eclipse.cdt.cmake.is.core.participant.DefaultToolCommandlineParser;
import org.eclipse.cdt.cmake.is.core.participant.DefaultToolDetectionParticipant;
import org.eclipse.cdt.cmake.is.core.participant.IArglet;
import org.eclipse.cdt.cmake.is.core.participant.ResponseFileArglets;
/**
* CUDA: nvcc compilers (POSIX compatible).