diff options
| author | Krasimir Georgiev <krasimir@google.com> | 2018-06-29 14:25:25 +0000 | 
|---|---|---|
| committer | Krasimir Georgiev <krasimir@google.com> | 2018-06-29 14:25:25 +0000 | 
| commit | 61f46f2247258709b780ae5ad11786da8305d15b (patch) | |
| tree | 9916768a1594576110b02f650ea719d94647b51c /clang | |
| parent | dbaafe6766bf719288e79f468893547c9a12639a (diff) | |
| download | bcm5719-llvm-61f46f2247258709b780ae5ad11786da8305d15b.tar.gz bcm5719-llvm-61f46f2247258709b780ae5ad11786da8305d15b.zip | |
[clang-format] Support additional common functions for text proto formatting
Summary: This adds a few more common function names expecting a text proto argument.
Reviewers: djasper
Reviewed By: djasper
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D48760
llvm-svn: 335978
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/lib/Format/Format.cpp | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp index 741584d138a..59d34308c0a 100644 --- a/clang/lib/Format/Format.cpp +++ b/clang/lib/Format/Format.cpp @@ -775,8 +775,11 @@ FormatStyle getGoogleStyle(FormatStyle::LanguageKind Language) {            },            /*EnclosingFunctionNames=*/            { -              "PARSE_TEXT_PROTO",                "EqualsProto", +              "EquivToProto", +              "PARSE_TEST_PROTO", +              "PARSE_TEXT_PROTO", +              "ParseTextOrDie",            },            /*CanonicalDelimiter=*/"",            /*BasedOnStyle=*/"google", | 

