This change fixes the fact that fallback style set to "none" should not format. Without this change, fallback style "none" ends up applying LLVM formatting.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Format/Format.cpp | ||
---|---|---|
1906 ↗ | (On Diff #84795) | Technically, we don't need to initialize FallbackStyle to getNoStyle() here as the call to getPredefinedStyle just below will initialize it. Let me know what you would prefer here. |
test/Format/style-on-command-line.cpp | ||
15 ↗ | (On Diff #84795) | Tests no config file found, WebKit fallback style is applied |
16 ↗ | (On Diff #84795) | Tests no config file found, no fallback style, LLVM style is applied |
17 ↗ | (On Diff #84795) | Tests no config file found, fallback style set to "none", no formatting is applied |