Thriftpy / thriftpy

Thriftpy has been deprecated, please migrate to https://github.com/Thriftpy/thriftpy2
MIT License
1.15k stars 286 forks source link

Recognize the `cpp_include` header keyword #316

Closed jparise closed 6 years ago

jparise commented 6 years ago

cpp_include adds a custom C++ include to the output of the C++ code generator for this Thrift document. While (obviously) not used by the Python implementation, it can still appear in Thrift IDL files that we need to parse, so we recognize the keyword and just discard the value.

See also: https://thrift.apache.org/docs/idl#c-include

Fixes #297