HomePhabricator

clang-format: Make GetStyle return Expected<FormatStyle> instead of FormatStyle

Description

clang-format: Make GetStyle return Expected<FormatStyle> instead of FormatStyle

Change the contract of GetStyle so that it returns an error when an error occurs
(i.e. when it writes to stderr), and only returns the fallback style when it
can't find a configuration file.

Differential Revision: https://reviews.llvm.org/D28081

Details

Committed
amaioranoJan 16 2017, 4:12 PM
Differential Revision
D28081: Make GetStyle return Expected<FormatStyle> instead of FormatStyle
Branches
Unknown
Tags
Unknown