/[Apache-SVN]
ViewVC logotype

Revision 665431


Jump to revision: Previous Next
Author: kholst
Date: Wed Jan 16 02:47:41 2008 UTC (16 years, 9 months ago)
Changed paths: 6
Log Message:
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


Changed paths

Path Details
Directoryincubator/thrift/trunk/compiler/cpp/src/generate/t_cpp_generator.cc modified , text changed
Directoryincubator/thrift/trunk/compiler/cpp/src/generate/t_cpp_generator.h modified , text changed
Directoryincubator/thrift/trunk/compiler/cpp/src/generate/t_generator.h modified , text changed
Directoryincubator/thrift/trunk/compiler/cpp/src/main.cc modified , text changed
Directoryincubator/thrift/trunk/compiler/cpp/src/parse/t_program.h modified , text changed
Directoryincubator/thrift/trunk/compiler/cpp/src/thrifty.yy modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26