aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKrasimir Georgiev <krasimir@google.com>2017-07-03 15:05:14 +0000
committerKrasimir Georgiev <krasimir@google.com>2017-07-03 15:05:14 +0000
commit650ea04ef9a1eaa5513713a2cda0b980512aa7b5 (patch)
tree71059f78c4db9b3b370ffa05e1e82cc6d5bae8ed /include
parent71d3b5cd916106005ef23467e3f6c7fbca7bc499 (diff)
[clang-format] Support text proto messages
Summary: This patch adds support for textual protocol buffer messages. Reviewers: djasper Reviewed By: djasper Subscribers: cfe-commits, klimek, mgorny Differential Revision: https://reviews.llvm.org/D34441 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@307029 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/clang/Format/Format.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/clang/Format/Format.h b/include/clang/Format/Format.h
index ee24c55fef..c5fea62423 100644
--- a/include/clang/Format/Format.h
+++ b/include/clang/Format/Format.h
@@ -1120,7 +1120,10 @@ struct FormatStyle {
/// (https://developers.google.com/protocol-buffers/).
LK_Proto,
/// Should be used for TableGen code.
- LK_TableGen
+ LK_TableGen,
+ /// Should be used for Protocol Buffer messages in text format
+ /// (https://developers.google.com/protocol-buffers/).
+ LK_TextProto
};
bool isCpp() const { return Language == LK_Cpp || Language == LK_ObjC; }