Thrift compiler code cleanup, comments, php inline generation, etc
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664822 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/compiler/cpp/src/parse/t_function.h b/compiler/cpp/src/parse/t_function.h
index 58667d8..3d07171 100644
--- a/compiler/cpp/src/parse/t_function.h
+++ b/compiler/cpp/src/parse/t_function.h
@@ -6,8 +6,9 @@
#include "t_struct.h"
/**
- * Representation of a function. Key parst are return type, function name,
- * optional modifiers, and an argument list.
+ * Representation of a function. Key parts are return type, function name,
+ * optional modifiers, and an argument list, which is implemented as a thrift
+ * struct.
*
* @author Mark Slee <mcslee@facebook.com>
*/
@@ -24,7 +25,6 @@
xceptions_ = new t_struct;
}
-
t_function(t_type* returntype,
std::string name,
t_struct* arglist,
@@ -38,11 +38,25 @@
~t_function() {}
- t_type* get_returntype() const { return returntype_; }
- const std::string& get_name() const { return name_; }
- t_struct* get_arglist() const { return arglist_; }
- t_struct* get_xceptions() const { return xceptions_; }
- bool is_async() const { return async_; }
+ t_type* get_returntype() const {
+ return returntype_;
+ }
+
+ const std::string& get_name() const {
+ return name_;
+ }
+
+ t_struct* get_arglist() const {
+ return arglist_;
+ }
+
+ t_struct* get_xceptions() const {
+ return xceptions_;
+ }
+
+ bool is_async() const {
+ return async_;
+ }
private:
t_type* returntype_;