This adds the ClangTidyOptions::User field and fills it from the USER
or the USERNAME environment variable, if possible. The FileOptionsProvider now
takes "default" options instead of "fallback" options, as it now uses these when
an option is not set in the configuration file (one exception is the checks
list).
Details
Details
Diff Detail
Diff Detail
Event Timeline
clang-tidy/ClangTidyOptions.h | ||
---|---|---|
58 | I'd probably default to empty, so checks can decide not to insert something in case there's no user name available. |
Comment Actions
Use llvm::None to signal that there's no value for the User setting.
clang-tidy/ClangTidyOptions.h | ||
---|---|---|
58 | llvm::None would work better for signalling that there's no value available. |
I'd probably default to empty, so checks can decide not to insert something in case there's no user name available.