diff options
author | Caroline Tice <cmtice@google.com> | 2019-06-12 11:11:46 -0700 |
---|---|---|
committer | Caroline Tice <cmtice@chromium.org> | 2019-06-13 15:56:46 +0000 |
commit | 00c84a4594d5aaaa17129904fabf3c6615d3051e (patch) | |
tree | 2a63be5e0c2e41b9ea14186071b24ccd26f4d980 /clang_tidy | |
parent | a16e5cddc4820258fd63277ebb41740b3c4c3c98 (diff) | |
download | toolchain-utils-00c84a4594d5aaaa17129904fabf3c6615d3051e.tar.gz |
clang-tidy: Add warnings_pb2.py to clang-tidy work repo.
Ideally this file would be generated, via the compile_proto.sh.
However the Chrome OS builders do not have protc on them, and we
have no way of installing it on them, so we need to generate the
file ourselves and commit it (hence this CL).
BUG=chromium:973535
TEST=None
Change-Id: I7a738ed5268cf9e85c5c7953c3ffa890a7cfa740
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/1656157
Reviewed-by: George Burgess <gbiv@chromium.org>
Tested-by: Caroline Tice <cmtice@chromium.org>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Commit-Queue: Caroline Tice <cmtice@chromium.org>
Diffstat (limited to 'clang_tidy')
-rw-r--r-- | clang_tidy/warnings_pb2.py | 188 |
1 files changed, 188 insertions, 0 deletions
diff --git a/clang_tidy/warnings_pb2.py b/clang_tidy/warnings_pb2.py new file mode 100644 index 00000000..798988c3 --- /dev/null +++ b/clang_tidy/warnings_pb2.py @@ -0,0 +1,188 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: warnings.proto + +import sys +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + +DESCRIPTOR = _descriptor.FileDescriptor( + name='warnings.proto', + package='clang_tidy', + syntax='proto2', + serialized_pb=_b( + '\n\x0ewarnings.proto\x12\nclang_tidy\"\xad\x02\n\x07Warning\x12\x33\n\x08severity\x18\x01 \x01(\x0e\x32!.clang_tidy.Warning.SeverityClass\x12\x14\n\x0cwarning_text\x18\x02 \x01(\t\x12\x11\n\tfile_path\x18\x04 \x01(\t\x12\x13\n\x0bline_number\x18\x05 \x01(\x05\x12\x12\n\ncol_number\x18\x06 \x01(\x05\x12 \n\x18matching_compiler_output\x18\x07 \x01(\t\"y\n\rSeverityClass\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0c\n\x08\x46IXMENOW\x10\x01\x12\x08\n\x04HIGH\x10\x02\x12\n\n\x06MEDIUM\x10\x03\x12\x07\n\x03LOW\x10\x04\x12\x0c\n\x08\x41NALYZER\x10\x05\x12\x08\n\x04TIDY\x10\x06\x12\x0c\n\x08HARMLESS\x10\x07\x12\x08\n\x04SKIP\x10\x08' + )) + +_WARNING_SEVERITYCLASS = _descriptor.EnumDescriptor( + name='SeverityClass', + full_name='clang_tidy.Warning.SeverityClass', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=0, number=0, options=None, type=None), + _descriptor.EnumValueDescriptor( + name='FIXMENOW', index=1, number=1, options=None, type=None), + _descriptor.EnumValueDescriptor( + name='HIGH', index=2, number=2, options=None, type=None), + _descriptor.EnumValueDescriptor( + name='MEDIUM', index=3, number=3, options=None, type=None), + _descriptor.EnumValueDescriptor( + name='LOW', index=4, number=4, options=None, type=None), + _descriptor.EnumValueDescriptor( + name='ANALYZER', index=5, number=5, options=None, type=None), + _descriptor.EnumValueDescriptor( + name='TIDY', index=6, number=6, options=None, type=None), + _descriptor.EnumValueDescriptor( + name='HARMLESS', index=7, number=7, options=None, type=None), + _descriptor.EnumValueDescriptor( + name='SKIP', index=8, number=8, options=None, type=None), + ], + containing_type=None, + options=None, + serialized_start=211, + serialized_end=332, +) +_sym_db.RegisterEnumDescriptor(_WARNING_SEVERITYCLASS) + +_WARNING = _descriptor.Descriptor( + name='Warning', + full_name='clang_tidy.Warning', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='severity', + full_name='clang_tidy.Warning.severity', + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='warning_text', + full_name='clang_tidy.Warning.warning_text', + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode('utf-8'), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='file_path', + full_name='clang_tidy.Warning.file_path', + index=2, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode('utf-8'), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='line_number', + full_name='clang_tidy.Warning.line_number', + index=3, + number=5, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='col_number', + full_name='clang_tidy.Warning.col_number', + index=4, + number=6, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='matching_compiler_output', + full_name='clang_tidy.Warning.matching_compiler_output', + index=5, + number=7, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode('utf-8'), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None), + ], + extensions=[], + nested_types=[], + enum_types=[ + _WARNING_SEVERITYCLASS, + ], + options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[], + serialized_start=31, + serialized_end=332, +) + +_WARNING.fields_by_name['severity'].enum_type = _WARNING_SEVERITYCLASS +_WARNING_SEVERITYCLASS.containing_type = _WARNING +DESCRIPTOR.message_types_by_name['Warning'] = _WARNING +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +Warning = _reflection.GeneratedProtocolMessageType( + 'Warning', + (_message.Message,), + dict( + DESCRIPTOR=_WARNING, + __module__='warnings_pb2' + # @@protoc_insertion_point(class_scope:clang_tidy.Warning) + )) +_sym_db.RegisterMessage(Warning) + +# @@protoc_insertion_point(module_scope) |