public class CxxSourceTypes extends Object
Modifier and Type | Method and Description |
---|---|
static CompilerProvider |
getCompiler(CxxPlatform cxxPlatform,
CxxSource.Type type) |
static com.google.common.collect.ImmutableList<Arg> |
getPlatformCompilerFlags(CxxPlatform cxxPlatform,
CxxSource.Type type) |
static com.google.common.collect.ImmutableList<Arg> |
getPlatformPreprocessFlags(CxxPlatform cxxPlatform,
CxxSource.Type type) |
static PreprocessorProvider |
getPreprocessor(CxxPlatform cxxPlatform,
CxxSource.Type type) |
static CxxSource.Type |
getPreprocessorOutputType(CxxSource.Type type) |
static boolean |
isCompilableType(CxxSource.Type sourceType)
Returns true for source types which can be built with the C compiler without a preprocessor.
|
static boolean |
isOptimizableType(CxxSource.Type sourceType)
Returns true for source types which can be optimized with the C++ compiler during an
incremental ThinLTO build.
|
static boolean |
isPreprocessableType(CxxSource.Type sourceType)
Returns true for source types which can be run through the C preprocessor.
|
static boolean |
supportsDepFiles(CxxSource.Type type) |
static String |
toName(CxxSource.Type type)
Normalize the input type to a language name
|
public static boolean isPreprocessableType(CxxSource.Type sourceType)
public static boolean isCompilableType(CxxSource.Type sourceType)
public static boolean isOptimizableType(CxxSource.Type sourceType)
public static PreprocessorProvider getPreprocessor(CxxPlatform cxxPlatform, CxxSource.Type type)
Tool
representing the preprocessor.public static com.google.common.collect.ImmutableList<Arg> getPlatformPreprocessFlags(CxxPlatform cxxPlatform, CxxSource.Type type)
CxxPlatform
.public static CxxSource.Type getPreprocessorOutputType(CxxSource.Type type)
public static boolean supportsDepFiles(CxxSource.Type type)
public static CompilerProvider getCompiler(CxxPlatform cxxPlatform, CxxSource.Type type)
public static com.google.common.collect.ImmutableList<Arg> getPlatformCompilerFlags(CxxPlatform cxxPlatform, CxxSource.Type type)
CxxPlatform
.public static String toName(CxxSource.Type type)