[Rprotobuf-commits] r684 - pkg/src
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Wed Jan 1 07:55:25 CET 2014
Author: murray
Date: 2014-01-01 07:55:24 +0100 (Wed, 01 Jan 2014)
New Revision: 684
Modified:
pkg/src/ConnectionCopyingInputStream.cpp
pkg/src/ConnectionCopyingOutputStream.cpp
pkg/src/ConnectionInputStream.cpp
pkg/src/ConnectionOutputStream.cpp
pkg/src/DescriptorPoolLookup.cpp
pkg/src/RSourceTree.cpp
pkg/src/RWarningErrorCollector.cpp
pkg/src/RconnectionCopyingInputStream.cpp
pkg/src/SocketCopyingInputStream.cpp
pkg/src/ZeroCopyInputStreamWrapper.cpp
pkg/src/ZeroCopyOutputStreamWrapper.cpp
pkg/src/extensions.cpp
pkg/src/extractors.cpp
pkg/src/lookup.cpp
pkg/src/mutators.cpp
pkg/src/rprotobuf.cpp
pkg/src/streams.cpp
pkg/src/wrapper_ArrayInputStream.cpp
pkg/src/wrapper_ArrayOutputStream.cpp
pkg/src/wrapper_Descriptor.cpp
pkg/src/wrapper_EnumDescriptor.cpp
pkg/src/wrapper_EnumValueDescriptor.cpp
pkg/src/wrapper_FieldDescriptor.cpp
pkg/src/wrapper_FileDescriptor.cpp
pkg/src/wrapper_Message.cpp
pkg/src/wrapper_MethodDescriptor.cpp
pkg/src/wrapper_ServiceDescriptor.cpp
pkg/src/wrapper_ZeroCopyInputStream.cpp
Log:
Add uniform file-level comments to the first line of each file that
match exactly what is specified in the directory level emacs config. Specifically:
// -*- indent-tabs-mode: nil; tab-width: 4; show-trailing-whitespace: t; c-indent-level: 4; c-basic-offset: 4; -*-
This is accomplished by running awk in a for loop over every .cpp file in this directory:
awk -v s="// -*- indent-tabs-mode: nil; tab-width: 4; show-trailing-whitespace: t; c-indent-level: 4; c-basic-offset: 4; -*-" 'NR == 1 {print s} {print}' $x > $x.new
Modified: pkg/src/ConnectionCopyingInputStream.cpp
===================================================================
--- pkg/src/ConnectionCopyingInputStream.cpp 2014-01-01 06:02:34 UTC (rev 683)
+++ pkg/src/ConnectionCopyingInputStream.cpp 2014-01-01 06:55:24 UTC (rev 684)
@@ -1,3 +1,4 @@
+// -*- indent-tabs-mode: nil; tab-width: 4; show-trailing-whitespace: t; c-indent-level: 4; c-basic-offset: 4; -*-
#include "rprotobuf.h"
#include "ConnectionCopyingInputStream.h"
Modified: pkg/src/ConnectionCopyingOutputStream.cpp
===================================================================
--- pkg/src/ConnectionCopyingOutputStream.cpp 2014-01-01 06:02:34 UTC (rev 683)
+++ pkg/src/ConnectionCopyingOutputStream.cpp 2014-01-01 06:55:24 UTC (rev 684)
@@ -1,3 +1,4 @@
+// -*- indent-tabs-mode: nil; tab-width: 4; show-trailing-whitespace: t; c-indent-level: 4; c-basic-offset: 4; -*-
#include "rprotobuf.h"
#include "ConnectionCopyingOutputStream.h"
Modified: pkg/src/ConnectionInputStream.cpp
===================================================================
--- pkg/src/ConnectionInputStream.cpp 2014-01-01 06:02:34 UTC (rev 683)
+++ pkg/src/ConnectionInputStream.cpp 2014-01-01 06:55:24 UTC (rev 684)
@@ -1,3 +1,4 @@
+// -*- indent-tabs-mode: nil; tab-width: 4; show-trailing-whitespace: t; c-indent-level: 4; c-basic-offset: 4; -*-
#include "rprotobuf.h"
#include "ConnectionInputStream.h"
#include "ConnectionCopyingInputStream.h"
Modified: pkg/src/ConnectionOutputStream.cpp
===================================================================
--- pkg/src/ConnectionOutputStream.cpp 2014-01-01 06:02:34 UTC (rev 683)
+++ pkg/src/ConnectionOutputStream.cpp 2014-01-01 06:55:24 UTC (rev 684)
@@ -1,3 +1,4 @@
+// -*- indent-tabs-mode: nil; tab-width: 4; show-trailing-whitespace: t; c-indent-level: 4; c-basic-offset: 4; -*-
#include "rprotobuf.h"
#include "ConnectionOutputStream.h"
#include "ConnectionCopyingOutputStream.h"
Modified: pkg/src/DescriptorPoolLookup.cpp
===================================================================
--- pkg/src/DescriptorPoolLookup.cpp 2014-01-01 06:02:34 UTC (rev 683)
+++ pkg/src/DescriptorPoolLookup.cpp 2014-01-01 06:55:24 UTC (rev 684)
@@ -1,3 +1,4 @@
+// -*- indent-tabs-mode: nil; tab-width: 4; show-trailing-whitespace: t; c-indent-level: 4; c-basic-offset: 4; -*-
// DescriptorPoolLookup.cpp: R/C++ interface class library
//
// Copyright (C) 2010 - 2011 Dirk Eddelbuettel and Romain Francois
Modified: pkg/src/RSourceTree.cpp
===================================================================
--- pkg/src/RSourceTree.cpp 2014-01-01 06:02:34 UTC (rev 683)
+++ pkg/src/RSourceTree.cpp 2014-01-01 06:55:24 UTC (rev 684)
@@ -1,3 +1,4 @@
+// -*- indent-tabs-mode: nil; tab-width: 4; show-trailing-whitespace: t; c-indent-level: 4; c-basic-offset: 4; -*-
#include "rprotobuf.h"
#include "RSourceTree.h"
Modified: pkg/src/RWarningErrorCollector.cpp
===================================================================
--- pkg/src/RWarningErrorCollector.cpp 2014-01-01 06:02:34 UTC (rev 683)
+++ pkg/src/RWarningErrorCollector.cpp 2014-01-01 06:55:24 UTC (rev 684)
@@ -1,3 +1,4 @@
+// -*- indent-tabs-mode: nil; tab-width: 4; show-trailing-whitespace: t; c-indent-level: 4; c-basic-offset: 4; -*-
#include "rprotobuf.h"
#include "RWarningErrorCollector.h"
Modified: pkg/src/RconnectionCopyingInputStream.cpp
===================================================================
--- pkg/src/RconnectionCopyingInputStream.cpp 2014-01-01 06:02:34 UTC (rev 683)
+++ pkg/src/RconnectionCopyingInputStream.cpp 2014-01-01 06:55:24 UTC (rev 684)
@@ -1,3 +1,4 @@
+// -*- indent-tabs-mode: nil; tab-width: 4; show-trailing-whitespace: t; c-indent-level: 4; c-basic-offset: 4; -*-
#include "rprotobuf.h"
#include "RconnectionCopyingInputStream.h"
Modified: pkg/src/SocketCopyingInputStream.cpp
===================================================================
--- pkg/src/SocketCopyingInputStream.cpp 2014-01-01 06:02:34 UTC (rev 683)
+++ pkg/src/SocketCopyingInputStream.cpp 2014-01-01 06:55:24 UTC (rev 684)
@@ -1,3 +1,4 @@
+// -*- indent-tabs-mode: nil; tab-width: 4; show-trailing-whitespace: t; c-indent-level: 4; c-basic-offset: 4; -*-
#include "rprotobuf.h"
#include "SocketCopyingInputStream.h"
Modified: pkg/src/ZeroCopyInputStreamWrapper.cpp
===================================================================
--- pkg/src/ZeroCopyInputStreamWrapper.cpp 2014-01-01 06:02:34 UTC (rev 683)
+++ pkg/src/ZeroCopyInputStreamWrapper.cpp 2014-01-01 06:55:24 UTC (rev 684)
@@ -1,3 +1,4 @@
+// -*- indent-tabs-mode: nil; tab-width: 4; show-trailing-whitespace: t; c-indent-level: 4; c-basic-offset: 4; -*-
#include "rprotobuf.h"
namespace rprotobuf {
Modified: pkg/src/ZeroCopyOutputStreamWrapper.cpp
===================================================================
--- pkg/src/ZeroCopyOutputStreamWrapper.cpp 2014-01-01 06:02:34 UTC (rev 683)
+++ pkg/src/ZeroCopyOutputStreamWrapper.cpp 2014-01-01 06:55:24 UTC (rev 684)
@@ -1,3 +1,4 @@
+// -*- indent-tabs-mode: nil; tab-width: 4; show-trailing-whitespace: t; c-indent-level: 4; c-basic-offset: 4; -*-
#include "rprotobuf.h"
namespace rprotobuf {
Modified: pkg/src/extensions.cpp
===================================================================
--- pkg/src/extensions.cpp 2014-01-01 06:02:34 UTC (rev 683)
+++ pkg/src/extensions.cpp 2014-01-01 06:55:24 UTC (rev 684)
@@ -1,4 +1,4 @@
-/*
+/* -*- indent-tabs-mode: nil; tab-width: 4; show-trailing-whitespace: t; c-indent-level: 4; c-basic-offset: 4; -*-
* Copyright 2012 Google Inc. All Rights Reserved.
* Author: Murray Stokely
*
Modified: pkg/src/extractors.cpp
===================================================================
--- pkg/src/extractors.cpp 2014-01-01 06:02:34 UTC (rev 683)
+++ pkg/src/extractors.cpp 2014-01-01 06:55:24 UTC (rev 684)
@@ -1,3 +1,4 @@
+// -*- indent-tabs-mode: nil; tab-width: 4; show-trailing-whitespace: t; c-indent-level: 4; c-basic-offset: 4; -*-
// Copyright (C) 2010 - 2011 Dirk Eddelbuettel and Romain Francois
//
// This file is part of RProtoBuf.
Modified: pkg/src/lookup.cpp
===================================================================
--- pkg/src/lookup.cpp 2014-01-01 06:02:34 UTC (rev 683)
+++ pkg/src/lookup.cpp 2014-01-01 06:55:24 UTC (rev 684)
@@ -1,3 +1,4 @@
+// -*- indent-tabs-mode: nil; tab-width: 4; show-trailing-whitespace: t; c-indent-level: 4; c-basic-offset: 4; -*-
#include "rprotobuf.h"
#include "DescriptorPoolLookup.h"
Modified: pkg/src/mutators.cpp
===================================================================
--- pkg/src/mutators.cpp 2014-01-01 06:02:34 UTC (rev 683)
+++ pkg/src/mutators.cpp 2014-01-01 06:55:24 UTC (rev 684)
@@ -1,3 +1,4 @@
+// -*- indent-tabs-mode: nil; tab-width: 4; show-trailing-whitespace: t; c-indent-level: 4; c-basic-offset: 4; -*-
// Copyright (C) 2010 - 2011 Dirk Eddelbuettel and Romain Francois
//
// This file is part of RProtoBuf.
Modified: pkg/src/rprotobuf.cpp
===================================================================
--- pkg/src/rprotobuf.cpp 2014-01-01 06:02:34 UTC (rev 683)
+++ pkg/src/rprotobuf.cpp 2014-01-01 06:55:24 UTC (rev 684)
@@ -1,3 +1,4 @@
+// -*- indent-tabs-mode: nil; tab-width: 4; show-trailing-whitespace: t; c-indent-level: 4; c-basic-offset: 4; -*-
#include "rprotobuf.h"
#include "DescriptorPoolLookup.h"
#include "RcppMacros.h"
Modified: pkg/src/streams.cpp
===================================================================
--- pkg/src/streams.cpp 2014-01-01 06:02:34 UTC (rev 683)
+++ pkg/src/streams.cpp 2014-01-01 06:55:24 UTC (rev 684)
@@ -1,3 +1,4 @@
+// -*- indent-tabs-mode: nil; tab-width: 4; show-trailing-whitespace: t; c-indent-level: 4; c-basic-offset: 4; -*-
#include "rprotobuf.h"
#include "ConnectionInputStream.h"
#include "ConnectionOutputStream.h"
Modified: pkg/src/wrapper_ArrayInputStream.cpp
===================================================================
--- pkg/src/wrapper_ArrayInputStream.cpp 2014-01-01 06:02:34 UTC (rev 683)
+++ pkg/src/wrapper_ArrayInputStream.cpp 2014-01-01 06:55:24 UTC (rev 684)
@@ -1,3 +1,4 @@
+// -*- indent-tabs-mode: nil; tab-width: 4; show-trailing-whitespace: t; c-indent-level: 4; c-basic-offset: 4; -*-
#include "rprotobuf.h"
#include "RcppMacros.h"
Modified: pkg/src/wrapper_ArrayOutputStream.cpp
===================================================================
--- pkg/src/wrapper_ArrayOutputStream.cpp 2014-01-01 06:02:34 UTC (rev 683)
+++ pkg/src/wrapper_ArrayOutputStream.cpp 2014-01-01 06:55:24 UTC (rev 684)
@@ -1,3 +1,4 @@
+// -*- indent-tabs-mode: nil; tab-width: 4; show-trailing-whitespace: t; c-indent-level: 4; c-basic-offset: 4; -*-
#include "rprotobuf.h"
#include "RcppMacros.h"
Modified: pkg/src/wrapper_Descriptor.cpp
===================================================================
--- pkg/src/wrapper_Descriptor.cpp 2014-01-01 06:02:34 UTC (rev 683)
+++ pkg/src/wrapper_Descriptor.cpp 2014-01-01 06:55:24 UTC (rev 684)
@@ -1,3 +1,4 @@
+// -*- indent-tabs-mode: nil; tab-width: 4; show-trailing-whitespace: t; c-indent-level: 4; c-basic-offset: 4; -*-
#include "rprotobuf.h"
#include "RcppMacros.h"
Modified: pkg/src/wrapper_EnumDescriptor.cpp
===================================================================
--- pkg/src/wrapper_EnumDescriptor.cpp 2014-01-01 06:02:34 UTC (rev 683)
+++ pkg/src/wrapper_EnumDescriptor.cpp 2014-01-01 06:55:24 UTC (rev 684)
@@ -1,3 +1,4 @@
+// -*- indent-tabs-mode: nil; tab-width: 4; show-trailing-whitespace: t; c-indent-level: 4; c-basic-offset: 4; -*-
// wrapper_EnumDescriptor.cpp: R/C++ interface class library
//
// Copyright (C) 2010 - 2011 Dirk Eddelbuettel and Romain Francois
Modified: pkg/src/wrapper_EnumValueDescriptor.cpp
===================================================================
--- pkg/src/wrapper_EnumValueDescriptor.cpp 2014-01-01 06:02:34 UTC (rev 683)
+++ pkg/src/wrapper_EnumValueDescriptor.cpp 2014-01-01 06:55:24 UTC (rev 684)
@@ -1,3 +1,4 @@
+// -*- indent-tabs-mode: nil; tab-width: 4; show-trailing-whitespace: t; c-indent-level: 4; c-basic-offset: 4; -*-
// wrapper_EnumValueDescriptor.h: R/C++ interface class library
//
// Copyright (C) 2010 - 2011 Dirk Eddelbuettel and Romain Francois
Modified: pkg/src/wrapper_FieldDescriptor.cpp
===================================================================
--- pkg/src/wrapper_FieldDescriptor.cpp 2014-01-01 06:02:34 UTC (rev 683)
+++ pkg/src/wrapper_FieldDescriptor.cpp 2014-01-01 06:55:24 UTC (rev 684)
@@ -1,3 +1,4 @@
+// -*- indent-tabs-mode: nil; tab-width: 4; show-trailing-whitespace: t; c-indent-level: 4; c-basic-offset: 4; -*-
// Copyright (C) 2010 - 2011 Dirk Eddelbuettel and Romain Francois
//
// This file is part of RProtoBuf.
Modified: pkg/src/wrapper_FileDescriptor.cpp
===================================================================
--- pkg/src/wrapper_FileDescriptor.cpp 2014-01-01 06:02:34 UTC (rev 683)
+++ pkg/src/wrapper_FileDescriptor.cpp 2014-01-01 06:55:24 UTC (rev 684)
@@ -1,3 +1,4 @@
+// -*- indent-tabs-mode: nil; tab-width: 4; show-trailing-whitespace: t; c-indent-level: 4; c-basic-offset: 4; -*-
#include "rprotobuf.h"
#include "RcppMacros.h"
Modified: pkg/src/wrapper_Message.cpp
===================================================================
--- pkg/src/wrapper_Message.cpp 2014-01-01 06:02:34 UTC (rev 683)
+++ pkg/src/wrapper_Message.cpp 2014-01-01 06:55:24 UTC (rev 684)
@@ -1,3 +1,4 @@
+// -*- indent-tabs-mode: nil; tab-width: 4; show-trailing-whitespace: t; c-indent-level: 4; c-basic-offset: 4; -*-
#include "rprotobuf.h"
#include "fieldtypes.h"
#include "RcppMacros.h"
Modified: pkg/src/wrapper_MethodDescriptor.cpp
===================================================================
--- pkg/src/wrapper_MethodDescriptor.cpp 2014-01-01 06:02:34 UTC (rev 683)
+++ pkg/src/wrapper_MethodDescriptor.cpp 2014-01-01 06:55:24 UTC (rev 684)
@@ -1,3 +1,4 @@
+// -*- indent-tabs-mode: nil; tab-width: 4; show-trailing-whitespace: t; c-indent-level: 4; c-basic-offset: 4; -*-
#include "rprotobuf.h"
#include "RcppMacros.h"
Modified: pkg/src/wrapper_ServiceDescriptor.cpp
===================================================================
--- pkg/src/wrapper_ServiceDescriptor.cpp 2014-01-01 06:02:34 UTC (rev 683)
+++ pkg/src/wrapper_ServiceDescriptor.cpp 2014-01-01 06:55:24 UTC (rev 684)
@@ -1,3 +1,4 @@
+// -*- indent-tabs-mode: nil; tab-width: 4; show-trailing-whitespace: t; c-indent-level: 4; c-basic-offset: 4; -*-
#include "rprotobuf.h"
#include "RcppMacros.h"
Modified: pkg/src/wrapper_ZeroCopyInputStream.cpp
===================================================================
--- pkg/src/wrapper_ZeroCopyInputStream.cpp 2014-01-01 06:02:34 UTC (rev 683)
+++ pkg/src/wrapper_ZeroCopyInputStream.cpp 2014-01-01 06:55:24 UTC (rev 684)
@@ -1,3 +1,4 @@
+// -*- indent-tabs-mode: nil; tab-width: 4; show-trailing-whitespace: t; c-indent-level: 4; c-basic-offset: 4; -*-
#include "rprotobuf.h"
namespace rprotobuf {
More information about the Rprotobuf-commits
mailing list