You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2013/06/18 03:59:39 UTC
[1/2] git commit: First cut at the clang-format config,
this is not done
Updated Branches:
refs/heads/master 052da6724 -> 237b700c3
First cut at the clang-format config, this is not done
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/237b700c
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/237b700c
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/237b700c
Branch: refs/heads/master
Commit: 237b700c3a84a96f58df0f907822ad04318c409f
Parents: 198f139
Author: Leif Hedstrom <zw...@apache.org>
Authored: Mon Jun 17 19:59:08 2013 -0600
Committer: Leif Hedstrom <zw...@apache.org>
Committed: Mon Jun 17 19:59:11 2013 -0600
----------------------------------------------------------------------
.clang-format | 25 +++++++++++++++++++++++++
ci/rat-excludes.txt | 1 +
2 files changed, 26 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/237b700c/.clang-format
----------------------------------------------------------------------
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 0000000..df89c8d
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,25 @@
+# BasedOnStyle: LLVM
+AccessModifierOffset: -2
+AlignEscapedNewlinesLeft: true
+AllowAllParametersOfDeclarationOnNextLine: false
+AllowShortIfStatementsOnASingleLine: false
+AllowShortLoopsOnASingleLine: false
+AlwaysBreakTemplateDeclarations: false
+BinPackParameters: true
+ColumnLimit: 120
+ConstructorInitializerAllOnOneLineOrOnePerLine: true
+DerivePointerBinding: false
+IndentCaseLabels: false
+MaxEmptyLinesToKeep: 2
+ObjCSpaceBeforeProtocolList: true
+PenaltyBreakComment: 45
+PenaltyBreakString: 1000
+PenaltyExcessCharacter: 1000000
+PenaltyReturnTypeOnItsOwnLine: 0
+PointerBindsToType: true
+SpacesBeforeTrailingComments: 4
+SpacesInBracedLists: true
+Standard: C++03
+IndentWidth: 2
+UseTab: false
+BreakBeforeBraces: Linux
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/237b700c/ci/rat-excludes.txt
----------------------------------------------------------------------
diff --git a/ci/rat-excludes.txt b/ci/rat-excludes.txt
index ebb4f0d..e07d602 100644
--- a/ci/rat-excludes.txt
+++ b/ci/rat-excludes.txt
@@ -13,6 +13,7 @@ proxy/config/
**/Makefile
**/TODO
.vimrc
+.clang-format
.gitignore
**/.gitignore
.git/
[2/2] git commit: TS-1820 Remove a few more old NOWARNs
Posted by zw...@apache.org.
TS-1820 Remove a few more old NOWARNs
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/198f139c
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/198f139c
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/198f139c
Branch: refs/heads/master
Commit: 198f139c36a703fec5207052358a2a82f1dc98cf
Parents: 052da67
Author: Leif Hedstrom <zw...@apache.org>
Authored: Wed Jun 12 14:31:02 2013 -0600
Committer: Leif Hedstrom <zw...@apache.org>
Committed: Mon Jun 17 19:59:11 2013 -0600
----------------------------------------------------------------------
example/app-template/app-template.cc | 1 -
iocore/cache/Cache.cc | 4 ----
2 files changed, 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/198f139c/example/app-template/app-template.cc
----------------------------------------------------------------------
diff --git a/example/app-template/app-template.cc b/example/app-template/app-template.cc
index 737e20a..cb1d9c3 100644
--- a/example/app-template/app-template.cc
+++ b/example/app-template/app-template.cc
@@ -122,7 +122,6 @@ int
MyAccept::main_event(int event, void *data) {
if (event == NET_EVENT_ACCEPT) {
//NetVConnection *netvc = (NetVConnection*)data;
- NOWARN_UNUSED(data);
// allocate continuation to handle this connection/request
//
// ..handle request, etc
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/198f139c/iocore/cache/Cache.cc
----------------------------------------------------------------------
diff --git a/iocore/cache/Cache.cc b/iocore/cache/Cache.cc
index f577730..6e0eec7 100644
--- a/iocore/cache/Cache.cc
+++ b/iocore/cache/Cache.cc
@@ -234,9 +234,6 @@ cache_stats_bytes_used_cb(const char *name, RecDataT data_type, RecData *data, R
int volume = -1;
char *p;
- NOWARN_UNUSED(data_type);
- NOWARN_UNUSED(data);
-
// Well, there's no way to pass along the volume ID, so extracting it from the stat name.
p = strstr((char *) name, "volume_");
if (p != NULL) {
@@ -329,7 +326,6 @@ CacheVC::do_io_read(Continuation *c, int64_t nbytes, MIOBuffer *abuf)
VIO *
CacheVC::do_io_pread(Continuation *c, int64_t nbytes, MIOBuffer *abuf, int64_t offset)
{
- NOWARN_UNUSED(nbytes);
ink_assert(vio.op == VIO::READ);
vio.buffer.writer_for(abuf);
vio.set_continuation(c);