HomePhabricator

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

Authored by amaiorano on Jan 16 2017, 4:12 PM.

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

llvm-svn: 292174

Details

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