Package com.diffplug.gradle.spotless
Class CppExtension
- java.lang.Object
-
- com.diffplug.gradle.spotless.FormatExtension
-
- com.diffplug.gradle.spotless.CppExtension
-
- All Implemented Interfaces:
HasBuiltinDelimiterForLicense
public class CppExtension extends FormatExtension implements HasBuiltinDelimiterForLicense
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classCppExtension.EclipseConfig-
Nested classes/interfaces inherited from class com.diffplug.gradle.spotless.FormatExtension
FormatExtension.ClangFormatConfig, FormatExtension.EclipseWtpConfig, FormatExtension.LicenseHeaderConfig, FormatExtension.NpmStepConfig<T extends FormatExtension.NpmStepConfig<?>>, FormatExtension.PrettierConfig
-
-
Field Summary
-
Fields inherited from class com.diffplug.gradle.spotless.FormatExtension
steps, target, targetExclude
-
-
Constructor Summary
Constructors Constructor Description CppExtension(SpotlessExtension spotless)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CppExtension.EclipseConfigeclipseCdt()CppExtension.EclipseConfigeclipseCdt(String version)FormatExtension.LicenseHeaderConfiglicenseHeader(String licenseHeader)FormatExtension.LicenseHeaderConfiglicenseHeaderFile(Object licenseHeaderFile)protected voidsetupTask(SpotlessTask task)Sets up a format task according to the values in this extension.-
Methods inherited from class com.diffplug.gradle.spotless.FormatExtension
addStep, bumpThisNumberIfACustomStepChanges, clangFormat, clangFormat, clearSteps, createIndependentApplyTask, custom, custom, eclipseWtp, eclipseWtp, encoding, endWithNewline, getEncoding, getExistingStepIdx, getLineEndings, getProject, getRatchetFrom, ignoreErrorForPath, ignoreErrorForStep, indentWithSpaces, indentWithSpaces, indentWithTabs, indentWithTabs, isLicenseHeaderStep, licenseHeader, licenseHeaderFile, nativeCmd, noDefaultTargetException, parseTarget, prettier, prettier, prettier, provisioner, ratchetFrom, replace, replaceRegex, replaceStep, setEncoding, setEncoding, setLineEndings, setRatchetFrom, target, targetExclude, toggleOffOn, toggleOffOn, toggleOffOnDisable, toggleOffOnRegex, trimTrailingWhitespace, withinBlocks, withinBlocks, withinBlocksRegex, withinBlocksRegex
-
-
-
-
Constructor Detail
-
CppExtension
@Inject public CppExtension(SpotlessExtension spotless)
-
-
Method Detail
-
eclipseCdt
public CppExtension.EclipseConfig eclipseCdt()
-
eclipseCdt
public CppExtension.EclipseConfig eclipseCdt(String version)
-
setupTask
protected void setupTask(SpotlessTask task)
Description copied from class:FormatExtensionSets up a format task according to the values in this extension.- Overrides:
setupTaskin classFormatExtension
-
licenseHeader
public FormatExtension.LicenseHeaderConfig licenseHeader(String licenseHeader)
- Specified by:
licenseHeaderin interfaceHasBuiltinDelimiterForLicense- Parameters:
licenseHeader- Content that should be at the top of every file.
-
licenseHeaderFile
public FormatExtension.LicenseHeaderConfig licenseHeaderFile(Object licenseHeaderFile)
- Specified by:
licenseHeaderFilein interfaceHasBuiltinDelimiterForLicense- Parameters:
licenseHeaderFile- Content that should be at the top of every file.
-
-