thrift: Add -cpp_use_include_prefix flag to compiler
authorkholst <dev-null@apache.org>
Wed, 16 Jan 2008 02:47:41 +0000 (02:47 +0000)
committerkholst <dev-null@apache.org>
Wed, 16 Jan 2008 02:47:41 +0000 (02:47 +0000)
commit76f2c88edad82d3f6c0b7407295d9f7263394bdf
tree1e86f4ba7dc0e2ddadbf3408c8a28826f55e7620
parent2e8a8d40951ba3708ddb377e90e34b270bfc5446
thrift: Add -cpp_use_include_prefix flag to compiler

Summary: Adds a new flag to allow for a mode where #include statements in generated c++ will include path context information.  For example, if my .thrift file includes "foo/bar/baz.thrift", the generated source files will contain #include statements like:

         #include "foo/bar/gen-cpp/baz_types.h"

         instead of just:

         #include "baz_types.h"

         -cpp_use_include_prefix is OFF by default.

Reviewed By: dreiss

Test Plan: Tested against multiple thrift input files both with and without the new flag.

Revert: OK

DiffCamp Revision: 5522

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665431 13f79535-47bb-0310-9956-ffa450edef68
compiler/cpp/src/generate/t_cpp_generator.cc
compiler/cpp/src/generate/t_cpp_generator.h
compiler/cpp/src/generate/t_generator.h
compiler/cpp/src/main.cc
compiler/cpp/src/parse/t_program.h
compiler/cpp/src/thrifty.yy