public class CxxFlags extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CxxFlags.TranslateMacrosArgsFunction
Function for translating cxx flag macros in list of Arg.
|
static class |
CxxFlags.TranslateMacrosFunction
Function for translating cxx flag macros.
|
Modifier and Type | Method and Description |
---|---|
static <T> com.google.common.collect.ImmutableList<T> |
getFlags(com.google.common.collect.ImmutableList<T> flags,
PatternMatchedCollection<com.google.common.collect.ImmutableList<T>> platformFlags,
CxxPlatform platform) |
static com.google.common.collect.ImmutableList<StringWithMacros> |
getFlagsWithMacrosWithPlatformMacroExpansion(com.google.common.collect.ImmutableList<StringWithMacros> flags,
PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>> platformFlags,
CxxPlatform platform) |
static com.google.common.collect.ImmutableList<String> |
getFlagsWithPlatformMacroExpansion(com.google.common.collect.ImmutableList<String> flags,
PatternMatchedCollection<com.google.common.collect.ImmutableList<String>> platformFlags,
CxxPlatform platform) |
static com.google.common.collect.ImmutableListMultimap<CxxSource.Type,String> |
getLanguageFlags(com.google.common.collect.ImmutableList<String> flags,
PatternMatchedCollection<com.google.common.collect.ImmutableList<String>> platformFlags,
com.google.common.collect.ImmutableMap<CxxSource.Type,com.google.common.collect.ImmutableList<String>> languageFlags,
CxxPlatform platform) |
static com.google.common.collect.ImmutableListMultimap<CxxSource.Type,StringWithMacros> |
getLanguageFlagsWithMacros(com.google.common.collect.ImmutableList<StringWithMacros> flags,
PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>> platformFlags,
com.google.common.collect.ImmutableMap<CxxSource.Type,? extends Collection<StringWithMacros>> languageFlags,
com.google.common.collect.ImmutableMap<CxxSource.Type,PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>>> languagePlatformFlags,
CxxPlatform platform) |
static void |
translateCxxPlatformFlags(CxxPlatform.Builder cxxPlatformBuilder,
CxxPlatform cxxPlatform,
com.google.common.collect.ImmutableMap<String,Arg> flagMacros)
Expand flag macros in all CxxPlatform StringArg flags.
|
public static com.google.common.collect.ImmutableList<String> getFlagsWithPlatformMacroExpansion(com.google.common.collect.ImmutableList<String> flags, PatternMatchedCollection<com.google.common.collect.ImmutableList<String>> platformFlags, CxxPlatform platform)
public static com.google.common.collect.ImmutableList<StringWithMacros> getFlagsWithMacrosWithPlatformMacroExpansion(com.google.common.collect.ImmutableList<StringWithMacros> flags, PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>> platformFlags, CxxPlatform platform)
public static <T> com.google.common.collect.ImmutableList<T> getFlags(com.google.common.collect.ImmutableList<T> flags, PatternMatchedCollection<com.google.common.collect.ImmutableList<T>> platformFlags, CxxPlatform platform)
public static com.google.common.collect.ImmutableListMultimap<CxxSource.Type,String> getLanguageFlags(com.google.common.collect.ImmutableList<String> flags, PatternMatchedCollection<com.google.common.collect.ImmutableList<String>> platformFlags, com.google.common.collect.ImmutableMap<CxxSource.Type,com.google.common.collect.ImmutableList<String>> languageFlags, CxxPlatform platform)
public static com.google.common.collect.ImmutableListMultimap<CxxSource.Type,StringWithMacros> getLanguageFlagsWithMacros(com.google.common.collect.ImmutableList<StringWithMacros> flags, PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>> platformFlags, com.google.common.collect.ImmutableMap<CxxSource.Type,? extends Collection<StringWithMacros>> languageFlags, com.google.common.collect.ImmutableMap<CxxSource.Type,PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>>> languagePlatformFlags, CxxPlatform platform)
public static void translateCxxPlatformFlags(CxxPlatform.Builder cxxPlatformBuilder, CxxPlatform cxxPlatform, com.google.common.collect.ImmutableMap<String,Arg> flagMacros)