-
Notifications
You must be signed in to change notification settings - Fork 2
cpp Configuration
moznion edited this page Apr 22, 2020
·
2 revisions
CPP formatter configuration.
lazy val root = (project in file("."))
.settings(
name := "Example",
spotlessCpp := CppConfig(
eclipseCpp = EclipseCppConfig(),
),
)
spotlessCpp
: CppConfig
This configuration accepts to embed Formatter Common Configuration.
${baseDir}/**/*.c
${baseDir}/**/*.h
${baseDir}/**/*.C
${baseDir}/**/*.cpp
${baseDir}/**/*.cxx
${baseDir}/**/*.cc
${baseDir}/**/*.c++
${baseDir}/**/*.h
${baseDir}/**/*.hpp
${baseDir}/**/*.hh
${baseDir}/**/*.hxx
${baseDir}/**/*.inc
Default Value: no value
The formatter configuration for Eclipse cdt Formatter.
eclipseCpp = EclipseCppConfig(
version = null,
configFiles = null,
)
Default Value: depends on dependent Spotless version
The version of Eclipse cdt Formatter.
Supported versions are on the following: https://github.com/diffplug/spotless/tree/master/lib-extra/src/main/resources/com/diffplug/spotless/extra/eclipse_cdt_formatter
Default Value: empty list
A seq of files for cpp eclipse configuration
default value: null
License header string to prefix a that before the package statement.
default value: null
License header file to prefix a that before the package statement.