llvm-project/clang/tools
Eric Liu b4adc9110d [clang-format] Add a default format style that can be used by users of `getStyle`
Summary:
Tools that reformat code often call `getStyle` to decide the format style
to use on a certain source file. In practice, "file" style is widely used. As a
result, many tools hardcode "file" when calling `getStyle`, which makes it hard
to control the default style in tools across a codebase when needed. This change
introduces a `DefaultFormatStyle` constant (default to "file" in upstream), which
can be modified downstream if wanted, so that all users/tools built from the same
source tree can have a consistent default format style.

This also adds an DefaultFallbackStyle that is recommended to be used by tools and can be modified downstream.

Reviewers: sammccall, djasper

Reviewed By: sammccall

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D48492

llvm-svn: 335492
2018-06-25 16:29:19 +00:00
..
arcmt-test [CMake] Use PRIVATE in target_link_libraries for executables 2017-12-05 21:49:56 +00:00
c-arcmt-test [CMake] Use PRIVATE in target_link_libraries for executables 2017-12-05 21:49:56 +00:00
c-index-test [CMAKE][c-index-test] Honor CMAKE_OSX_SYSROOT to compute include dir for libxml2 2018-06-14 18:20:04 +00:00
clang-check Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
clang-diff [CMake] Use PRIVATE in target_link_libraries for executables 2017-12-05 21:49:56 +00:00
clang-format [clang-format] Add a default format style that can be used by users of `getStyle` 2018-06-25 16:29:19 +00:00
clang-format-vs Update copyright year to 2018. 2018-06-18 12:22:17 +00:00
clang-func-mapping [CMake] Use PRIVATE in target_link_libraries for executables 2017-12-05 21:49:56 +00:00
clang-fuzzer Attempt to fix latent tablegen dependency issue 2018-06-23 17:32:51 +00:00
clang-import-test Fix case of LLVM library names. 2018-04-23 15:41:08 +00:00
clang-offload-bundler Refactor ExecuteAndWait to take StringRefs. 2018-06-12 17:43:52 +00:00
clang-refactor Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
clang-rename Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
diag-build
diagtool [diagtool] Add diagtool to install target. 2018-05-16 10:23:25 +00:00
driver [cmake] Add linker detection for Apple platforms 2018-06-14 23:26:33 +00:00
libclang [liblang] Remove DOS line endings in libclang.exports 2018-06-21 13:40:50 +00:00
scan-build Fix typos in clang 2018-04-06 15:14:32 +00:00
scan-build-py Fix typos in clang 2018-04-06 15:14:32 +00:00
scan-view Fix typos in clang 2018-04-06 15:14:32 +00:00
CMakeLists.txt Add Cross Translation Unit support library 2017-09-22 11:11:01 +00:00