summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format/Format.cpp
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2013-09-02 16:39:23 +0000
committerAlexander Kornienko <alexfh@google.com>2013-09-02 16:39:23 +0000
commite3648fbe1a78340dbcd8c17f9cd7dceeaffdf339 (patch)
tree65f37c3844a29b0fdbecf9e33a63cadd9653db21 /clang/lib/Format/Format.cpp
parent815c635cec733e183b2408af493182a4718e1261 (diff)
downloadbcm5719-llvm-e3648fbe1a78340dbcd8c17f9cd7dceeaffdf339.tar.gz
bcm5719-llvm-e3648fbe1a78340dbcd8c17f9cd7dceeaffdf339.zip
Added WebKit style to the BasedOnStyle handling and to the relevant help messages.
llvm-svn: 189765
Diffstat (limited to 'clang/lib/Format/Format.cpp')
-rw-r--r--clang/lib/Format/Format.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp
index 39d2c0f96c3..76e6faa40ca 100644
--- a/clang/lib/Format/Format.cpp
+++ b/clang/lib/Format/Format.cpp
@@ -68,7 +68,8 @@ struct ScalarEnumerationTraits<
template <> struct MappingTraits<clang::format::FormatStyle> {
static void mapping(llvm::yaml::IO &IO, clang::format::FormatStyle &Style) {
if (IO.outputting()) {
- StringRef StylesArray[] = { "LLVM", "Google", "Chromium", "Mozilla" };
+ StringRef StylesArray[] = { "LLVM", "Google", "Chromium",
+ "Mozilla", "WebKit" };
ArrayRef<StringRef> Styles(StylesArray);
for (size_t i = 0, e = Styles.size(); i < e; ++i) {
StringRef StyleName(Styles[i]);
OpenPOWER on IntegriCloud