Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 321 for sourceLine (0.16 sec)

  1. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/ExeWithDiamondDependencyHelloWorldApp.groovy

        @Override
        String getFrenchOutput() {
            return HELLO_WORLD_FRENCH + "\n"
        }
    
        @Override
        SourceFile getMainSource() {
            sourceFile("cpp", "main.cpp", """
                #include <iostream>
                #include "hello.h"
                #include "greetings.h"
    
                const char* getExeHello() {
                    #ifdef FRENCH
                    return "${HELLO_WORLD_FRENCH}";
                    #else
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  2. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/SwiftAlternateGreeter.groovy

     * limitations under the License.
     */
    
    package org.gradle.nativeplatform.fixtures.app
    
    import org.gradle.integtests.fixtures.SourceFile
    
    class SwiftAlternateGreeter extends SourceFileElement implements GreeterElement {
        @Override
        SourceFile getSourceFile() {
            sourceFile("swift", "greeter.swift", """
                public class Greeter {
                    public init() {}
                    public func sayHello() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  3. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/SwiftAppWithLibraryAndOptionalFeature.groovy

    import org.gradle.integtests.fixtures.SourceFile
    
    /**
     * A Swift app composed of 2 modules, an application and a library, and an optional compile time feature.
     */
    class SwiftAppWithLibraryAndOptionalFeature {
        final library = new SwiftGreeterWithOptionalFeature()
        final application = new SwiftMainWithOptionalFeature(library.withFeatureDisabled()) {
            @Override
            List<SourceFile> getFiles() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  4. platforms/jvm/language-java/src/integTest/groovy/org/gradle/java/compile/incremental/BaseJavaSourceIncrementalCompilationIntegrationTest.groovy

        CompiledLanguage language = CompiledLanguage.JAVA
    
        def "deletes headers when source file is deleted"() {
            given:
            def sourceFile = file("src/main/java/my/org/Foo.java")
            sourceFile.text = """
                package my.org;
    
                public class Foo {
                    public native void foo();
    
                    public static class Inner {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  5. platforms/native/language-native/src/main/java/org/gradle/language/nativeplatform/internal/incremental/IncrementalNativeCompiler.java

            if (spec.getPreCompiledHeader() != null) {
                ImmutableList.Builder<File> sourceFiles = ImmutableList.builder();
                for (File sourceFile : spec.getSourceFiles()) {
                    SourceFileState state = incrementalCompilation.getFinalState().getState(sourceFile);
                    final HashCode hash = state.getHash();
                    List<String> headers = new ArrayList<>();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  6. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/SwiftGreeterWithOptionalFeature.groovy

     * limitations under the License.
     */
    
    package org.gradle.nativeplatform.fixtures.app
    
    import org.gradle.integtests.fixtures.SourceFile
    
    class SwiftGreeterWithOptionalFeature extends SourceFileElement {
        @Override
        SourceFile getSourceFile() {
            sourceFile("swift", "greeter.swift", """
                public class Greeter {
                    public init() {}
                    public func sayHello() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  7. platforms/native/language-native/src/test/groovy/org/gradle/language/c/tasks/CPreCompiledHeaderCompileTest.groovy

        def setup() {
            cPCHCompile = TestUtil.createTask(CPreCompiledHeaderCompile, project)
        }
    
        def "executes using the C PCH Compiler"() {
            def sourceFile = temporaryFolder.createFile("sourceFile")
            def result = Mock(WorkResult)
            when:
            cPCHCompile.toolChain = toolChain
            cPCHCompile.targetPlatform = platform
            cPCHCompile.compilerArgs = ["arg"]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3K bytes
    - Viewed (0)
  8. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/CppLoggerWithGreeterApi.groovy

     */
    
    package org.gradle.nativeplatform.fixtures.app
    
    import org.gradle.integtests.fixtures.SourceFile
    
    import static org.gradle.nativeplatform.fixtures.app.SourceFileElement.ofFile
    
    class CppLoggerWithGreeterApi extends CppSourceFileElement {
        final SourceFileElement header = ofFile(new SourceFile("headers", "logger.h", """
    #ifdef _WIN32
    #define EXPORT_FUNC __declspec(dllexport)
    #else
    #define EXPORT_FUNC
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  9. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r18/BuildScriptModelCrossVersionSpec.groovy

            then:
            project.buildScript.sourceFile == buildFile
    
            when:
            def custom = file('gradle/my-project.gradle') << '//empty'
            file('settings.gradle') << "rootProject.buildFileName = 'gradle/my-project.gradle'"
            project = withConnection { it.getModel(GradleProject.class) }
    
            then:
            project.buildScript.sourceFile == custom
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  10. platforms/native/language-native/src/main/java/org/gradle/language/nativeplatform/internal/incremental/DefaultSourceIncludesParser.java

            this.sourceParser = sourceParser;
            this.importAware = importAware;
        }
    
        @Override
        public IncludeDirectives parseIncludes(File sourceFile) {
            IncludeDirectives parsedIncludes = sourceParser.parseSource(sourceFile);
            if (importAware) {
                return parsedIncludes;
            } else {
                return parsedIncludes.discardImports();
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.5K bytes
    - Viewed (0)
Back to top