commit | a7d62366e4842e16da2116517b7993c58e070265 | [log] [tgz] |
---|---|---|
author | amaiorano <amaiorano> | Tue Jan 17 00:12:27 2017 |
committer | amaiorano <amaiorano> | Tue Jan 17 00:12:27 2017 |
tree | a89b33de8b3d23478a2bd15a87bfe1776e04985c | |
parent | 4be7a6c06697b4300179feccfb49be43a0f8d3df [diff] |
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 git-svn-id: svn://svn.chromium.org/llvm-project/cfe/trunk/tools/clang-format@292174 0b72dbe1-c17f-4bc7-b9db-2b4152be0356