HomePhabricator

[clangd] Always call getFormatStyleForFile().

Authored by sammccall on May 6 2019, 1:39 AM.

Description

[clangd] Always call getFormatStyleForFile().

This means "format" will no longer return an error if the -fallback-style flag
is invalid, it will log and use LLVM style. This doesn't really matter.

Also document the dependence on global variables. (This patch is a
compromise - it's probably not worth actually avoiding the globals).

llvm-svn: 360020

Details

Committed
sammccallMay 6 2019, 1:39 AM
Parents
rGb5d3430d3df9: [NFC] This is a test for the commit access.
Branches
Unknown
Tags
Unknown