[Rprotobuf-commits] r617 - pkg/src

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sat Dec 28 00:39:38 CET 2013


Author: murray
Date: 2013-12-28 00:39:37 +0100 (Sat, 28 Dec 2013)
New Revision: 617

Modified:
   pkg/src/wrapper_EnumValueDescriptor.cpp
Log:
Consistent spacing/indentation with clang-format.



Modified: pkg/src/wrapper_EnumValueDescriptor.cpp
===================================================================
--- pkg/src/wrapper_EnumValueDescriptor.cpp	2013-12-27 23:37:32 UTC (rev 616)
+++ pkg/src/wrapper_EnumValueDescriptor.cpp	2013-12-27 23:39:37 UTC (rev 617)
@@ -22,31 +22,35 @@
 #include "rprotobuf.h"
 #include "RcppMacros.h"
 
-namespace rprotobuf{
+namespace rprotobuf {
 
 #undef METHOD
-#define METHOD(__NAME__) RCPP_PP_CAT(EnumValueDescriptor__,__NAME__)
+#define METHOD(__NAME__) RCPP_PP_CAT(EnumValueDescriptor__, __NAME__)
 
-RPB_XP_METHOD_0( METHOD(as_character) , GPB::EnumValueDescriptor , DebugString) ;
+RPB_XP_METHOD_0(METHOD(as_character), GPB::EnumValueDescriptor, DebugString);
 
-RPB_FUNCTION_1(S4_Message, METHOD(as_Message) , Rcpp::XPtr<GPB::EnumValueDescriptor> d ){
-	GPB::EnumValueDescriptorProto* message = new GPB::EnumValueDescriptorProto() ; 
-	d->CopyTo( message ); 
-	return S4_Message(message) ;
+RPB_FUNCTION_1(S4_Message, METHOD(as_Message),
+               Rcpp::XPtr<GPB::EnumValueDescriptor> d) {
+    GPB::EnumValueDescriptorProto* message =
+        new GPB::EnumValueDescriptorProto();
+    d->CopyTo(message);
+    return S4_Message(message);
 }
-		
-RPB_FUNCTION_2( std::string, METHOD(name), Rcpp::XPtr<GPB::EnumValueDescriptor> d, bool full) {
-	return full ? d->full_name() : d->name() ;
+
+RPB_FUNCTION_2(std::string, METHOD(name),
+               Rcpp::XPtr<GPB::EnumValueDescriptor> d, bool full) {
+    return full ? d->full_name() : d->name();
 }
 
-RPB_FUNCTION_1( int, METHOD(number), Rcpp::XPtr<GPB::EnumValueDescriptor> d) {
-        return d->number() ;
+RPB_FUNCTION_1(int, METHOD(number), Rcpp::XPtr<GPB::EnumValueDescriptor> d) {
+    return d->number();
 }
 
-RPB_FUNCTION_1(S4_EnumDescriptor, METHOD(enum_type), Rcpp::XPtr<GPB::EnumValueDescriptor> d ){
-	return S4_EnumDescriptor( d->type());
+RPB_FUNCTION_1(S4_EnumDescriptor, METHOD(enum_type),
+               Rcpp::XPtr<GPB::EnumValueDescriptor> d) {
+    return S4_EnumDescriptor(d->type());
 }
 
 #undef METHOD
 
-} // namespace rprotobuf
+}  // namespace rprotobuf



More information about the Rprotobuf-commits mailing list