#
3adfb6a3 |
| 17-Jan-2017 |
Antonio Maiorano <amaiorano@gmail.com> |
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
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
show more ...
|
#
03a04fe9 |
| 12-Dec-2016 |
Daniel Jasper <djasper@google.com> |
clang-format: Separate out a language kind for ObjC.
While C(++) and ObjC are generally formatted the same way and can be mixed, people might want to choose different styles based on the language. T
clang-format: Separate out a language kind for ObjC.
While C(++) and ObjC are generally formatted the same way and can be mixed, people might want to choose different styles based on the language. This patch recognizes .m and .mm files as ObjC and also implements a very crude detection of whether or not a .h file contains ObjC code. This can be improved over time.
Also move most of the ObjC tests into their own test file to keep file size maintainable.
llvm-svn: 289428
show more ...
|