Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef FASTCPP_GENERATOR_H__ | |
| 6 #define FASTCPP_GENERATOR_H__ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include <google/protobuf/compiler/code_generator.h> | |
|
Primiano Tucci (use gerrit)
2016/07/05 11:30:18
Can you make this an absolute include? i.e.
#inclu
| |
| 11 | |
| 12 namespace google { | |
|
Primiano Tucci (use gerrit)
2016/07/05 11:30:18
Is it required to put this into the google::protob
| |
| 13 namespace protobuf { | |
| 14 namespace compiler { | |
| 15 namespace fastcpp { | |
| 16 | |
| 17 class LIBPROTOC_EXPORT Generator : public CodeGenerator { | |
|
Primiano Tucci (use gerrit)
2016/07/05 11:30:18
not sure this needs to be _EXPORTed.
This seems t
| |
| 18 public: | |
| 19 Generator() {} | |
|
Primiano Tucci (use gerrit)
2016/07/05 11:30:18
Don't inline the ctor and dtor.
See https://www.ch
| |
| 20 ~Generator() override {} | |
| 21 | |
| 22 bool Generate(const FileDescriptor* file, | |
|
Primiano Tucci (use gerrit)
2016/07/05 11:30:18
Add a
// CodeGenerator implementation.
It's the
| |
| 23 const string& parameter, | |
| 24 GeneratorContext* context, | |
| 25 string* error) const override; | |
| 26 }; | |
|
Primiano Tucci (use gerrit)
2016/07/05 11:30:18
DISALLOW_COPY_AND_ASSIGN
| |
| 27 | |
| 28 } // namespace fastcpp | |
| 29 } // namespace compiler | |
| 30 } // namespace protobuf | |
| 31 } // namespace google | |
| 32 #endif // FASTCPP_GENERATOR_H__ | |
| OLD | NEW |