Thrift: docstring revamp step 2.
authorDavid Reiss <dreiss@apache.org>
Tue, 14 Aug 2007 17:12:33 +0000 (17:12 +0000)
committerDavid Reiss <dreiss@apache.org>
Tue, 14 Aug 2007 17:12:33 +0000 (17:12 +0000)
commitcbd4bacc307c0103aa07d5bbc2104e14b8a29aac
treedc310c28edd3010778afb33995a0884e4e5da651
parentcdffe260f1c8d21dbd3b6904e6ca596c7f4c6b06
Thrift: docstring revamp step 2.

Summary:
It was a bad idea to let doxygen comments become a part of the parse tree.
We now get them a totally different way.  The lexer stashes the docsting
contents in a global, and the parser actions (not the rules) pull it out.
This should prevent doxygen comments from ever causing parse errors.

Blame Rev: 52678, 52732

Reviewed By: mcslee

Test Plan:
Recompiled thrift.
Thrifted a bunch of files and saw no parse errors (or C++ compile errors).
Thrifted DocTest.thrift with dump_docs on.

Revert Plan: ok

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665201 13f79535-47bb-0310-9956-ffa450edef68
compiler/cpp/Makefile.am
compiler/cpp/src/globals.h
compiler/cpp/src/main.cc
compiler/cpp/src/main.h
compiler/cpp/src/thriftl.ll
compiler/cpp/src/thrifty.yy
test/DocTest.thrift