Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for IncludeType (0.2 sec)

  1. platforms/native/platform-native/src/main/java/org/gradle/language/nativeplatform/internal/IncludeType.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.language.nativeplatform.internal;
    
    public enum IncludeType {
        /**
         * A system include path, eg {@code <hello.h>}
         */
        SYSTEM,
        /**
         * A quoted include path eg {@code "hello.h"}
         */
        QUOTED,
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  2. platforms/native/language-native/src/main/java/org/gradle/language/nativeplatform/internal/incremental/sourceparser/RegexBackedCSourceParser.java

                return;
            }
            Expression expression = parseDirectiveBodyExpression(buffer);
            if (expression.getType() == IncludeType.TOKEN_CONCATENATION || expression.getType() == IncludeType.ARGS_LIST || expression.getType() == IncludeType.EXPRESSIONS) {
                // Token concatenation is only allowed inside a #define body
                // Arbitrary tokens won't resolve to an include path
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 25.5K bytes
    - Viewed (0)
  3. platforms/native/platform-native/src/main/java/org/gradle/language/nativeplatform/internal/Expression.java

         */
        String getAsSourceText();
    
        IncludeType getType();
    
        /**
         * When type is {@link IncludeType#QUOTED} or {@link IncludeType#SYSTEM}, then this returns the path, without the delimiters or escape characters.
         * When type is {@link IncludeType#MACRO} or {@link IncludeType#MACRO_FUNCTION}, then this returns the name of the macro.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  4. platforms/native/language-native/src/main/java/org/gradle/language/nativeplatform/internal/incremental/sourceparser/ArgsMappingMacroFunction.java

        static final int REPLACE_ARGS = -2;
        private final int[] argsMap;
        private final IncludeType type;
        private final String value;
        private final List<Expression> arguments;
    
        public ArgsMappingMacroFunction(String macroName, int parameters, int[] argsMap, IncludeType type,  String value, List<Expression> arguments) {
            super(macroName, parameters);
            this.argsMap = argsMap;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  5. platforms/native/language-native/src/main/java/org/gradle/language/nativeplatform/internal/incremental/sourceparser/AbstractExpression.java

        }
    
        static Expression asMacroExpansion(Expression expression) {
            if (expression.getType() == IncludeType.IDENTIFIER) {
                return new SimpleExpression(expression.getValue(), IncludeType.MACRO);
            }
            if (expression.getType() == IncludeType.TOKEN_CONCATENATION) {
                return new ComplexExpression(IncludeType.EXPAND_TOKEN_CONCATENATION, expression.getValue(), expression.getArguments());
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  6. platforms/native/language-native/src/test/groovy/org/gradle/language/nativeplatform/internal/incremental/sourceparser/IncludeDirectivesSerializerTest.groovy

            def expression2 = new ComplexExpression(IncludeType.MACRO_FUNCTION, "X", [new SimpleExpression("Y", IncludeType.MACRO), new SimpleExpression("Z", IncludeType.MACRO)])
            def expression3 = new ComplexExpression(IncludeType.TOKEN_CONCATENATION, null, [new SimpleExpression("X", IncludeType.IDENTIFIER), new SimpleExpression("Y", IncludeType.IDENTIFIER)])
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  7. platforms/native/language-native/src/main/java/org/gradle/language/nativeplatform/internal/incremental/sourceparser/IncludeWithMacroFunctionCallExpression.java

            this.name = name;
            this.isImport = isImport;
            this.arguments = arguments;
        }
    
        @Override
        public IncludeType getType() {
            return IncludeType.MACRO_FUNCTION;
        }
    
        @Override
        public String getValue() {
            return name;
        }
    
        @Override
        public boolean isImport() {
            return isImport;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  8. platforms/native/language-native/src/main/java/org/gradle/language/nativeplatform/internal/incremental/sourceparser/MacroWithSimpleExpression.java

    import org.gradle.language.nativeplatform.internal.IncludeType;
    
    import javax.annotation.Nullable;
    
    /**
     * An "object-like" macro #define whose body is an expression with no arguments.
     */
    public class MacroWithSimpleExpression extends AbstractMacro {
        private final IncludeType includeType;
        private final String value;
    
        public MacroWithSimpleExpression(String name, IncludeType includeType, @Nullable String value) {
            super(name);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  9. platforms/native/language-native/src/main/java/org/gradle/language/nativeplatform/internal/incremental/sourceparser/SimpleExpression.java

        static final Expression COMMA = new SimpleExpression(",", IncludeType.TOKEN);
        static final Expression RIGHT_PAREN = new SimpleExpression(")", IncludeType.TOKEN);
    
        private final String value;
        private final IncludeType type;
    
        public SimpleExpression(@Nullable String value, IncludeType type) {
            this.value = value;
            this.type = type;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  10. platforms/native/language-native/src/main/java/org/gradle/language/nativeplatform/internal/incremental/sourceparser/UnresolvableMacro.java

    import org.gradle.language.nativeplatform.internal.IncludeType;
    
    /**
     * A macro function whose body cannot be resolved.
     */
    public class UnresolvableMacro extends AbstractMacro {
        public UnresolvableMacro(String name) {
            super(name);
        }
    
        @Override
        public IncludeType getType() {
            return IncludeType.OTHER;
        }
    
        @Override
        public String getValue() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.1K bytes
    - Viewed (0)
Back to top