aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/TargetLibraryInfo.cpp
diff options
context:
space:
mode:
authorEric Liu <ioeric@google.com>2018-06-25 16:29:19 +0000
committerEric Liu <ioeric@google.com>2018-06-25 16:29:19 +0000
commitb4adc9110da2b22f15288cc79c245d1b4b32c12b (patch)
tree43c27326bc4f4f7a6b38fa832a3ff207f9d4eda2 /llvm/lib/Analysis/TargetLibraryInfo.cpp
parente4788178f5628d2e1117ba7bdf425aa000164ca6 (diff)
downloadllvm-b4adc9110da2b22f15288cc79c245d1b4b32c12b.zip
llvm-b4adc9110da2b22f15288cc79c245d1b4b32c12b.tar.gz
llvm-b4adc9110da2b22f15288cc79c245d1b4b32c12b.tar.bz2
[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
Diffstat (limited to 'llvm/lib/Analysis/TargetLibraryInfo.cpp')
0 files changed, 0 insertions, 0 deletions