See <https://ci.trafficserver.apache.org/job/clang-format/646/changes>

Changes:

[James Peach] TS-4261: Split stats API from process API.

------------------------------------------
[...truncated 1632 lines...]
./proxy/Milestones.h
./proxy/Transform.cc
./proxy/test_xml_parser.cc
./proxy/AbstractBuffer.h
./proxy/CoreUtils.h
./proxy/ControlMatcher.cc
./proxy/ICPStats.cc
./proxy/TransformInternal.h
./proxy/Main.h
./proxy/ICPlog.h
./proxy/StatPages.cc
./proxy/ProtocolProbeSessionAccept.cc
./proxy/logcat.cc
./proxy/AbstractBuffer.cc
./proxy/TestDNS.cc
./proxy/Plugin.h
./proxy/congest/Congestion.h
./proxy/congest/CongestionTest.cc
./proxy/congest/CongestionStats.h
./proxy/congest/CongestionDB.h
./proxy/congest/CongestionStats.cc
./proxy/congest/CongestionDB.cc
./proxy/congest/Congestion.cc
./proxy/congest/MT_hashtable.h
./proxy/TestPreProc.cc
./proxy/ProtocolProbeSessionAccept.h
./proxy/FetchSM.h
./proxy/Crash.cc
./proxy/ParentRoundRobin.h
./proxy/InkAPIInternal.h
./proxy/Show.h
./proxy/spdy/SpdyDefs.h
./proxy/spdy/SpdySessionAccept.h
./proxy/spdy/SpdySessionAccept.cc
./proxy/spdy/SpdyClientSession.h
./proxy/spdy/SpdyClientSession.cc
./proxy/spdy/SpdyCallbacks.cc
./proxy/spdy/SpdyCommon.h
./proxy/spdy/SpdyCommon.cc
./proxy/spdy/SpdyCallbacks.h
./proxy/PluginVC.h
./proxy/RegressionSM.cc
./proxy/FetchSM.cc
./proxy/TestClusterHash.cc
./proxy/ParentRoundRobin.cc
./proxy/TimeTrace.h
./proxy/ParentSelection.h
./proxy/InkIOCoreAPI.cc
./proxy/Transform.h
./proxy/InkAPI.cc
./proxy/RegressionSM.h
./proxy/ProxyClientSession.cc
./proxy/CoreUtils.cc
./proxy/shared/Error.h
./proxy/shared/UglyLogStubs.cc
./proxy/shared/DiagsConfig.h
./proxy/shared/InkXml.cc
./proxy/shared/DiagsConfig.cc
./proxy/shared/InkXml.h
./proxy/shared/Error.cc
./proxy/UnixCompletionUtil.h
./proxy/ICPConfig.cc
./proxy/IPAllow.h
./proxy/TestProxy.cc
./proxy/ParentSelection.cc
./proxy/HttpTransStats.h
./proxy/PluginVC.cc
./proxy/EventName.h
./proxy/TestSimpleProxy.cc
./proxy/ConfigParse.h
./proxy/Prefetch.h
./proxy/http/TestUrl.cc
./proxy/http/HttpBodyFactory.h
./proxy/http/HttpClientSession.h
./proxy/http/HttpTransactHeaders.cc
./proxy/http/HttpTransact.cc
./proxy/http/HttpPages.h
./proxy/http/HttpProxyServerMain.cc
./proxy/http/HttpServerSession.h
./proxy/http/HttpPages.cc
./proxy/http/HttpTunnel.cc
./proxy/http/TestHttpTransact.cc
./proxy/http/test_socket_close.cc
./proxy/http/HttpSM.cc
./proxy/http/HttpConfig.h
./proxy/http/HttpUpdateTester.cc
./proxy/http/HttpSessionManager.h
./proxy/http/HttpProxyAPIEnums.h
./proxy/http/HttpCacheSM.cc
./proxy/http/HttpTransactHeaders.h
./proxy/http/HttpTransactCache.h
./proxy/http/HttpTransactCache.cc
./proxy/http/HttpProxyServerMain.h
./proxy/http/HttpTunnel.h
./proxy/http/HttpUpdateSM.h
./proxy/http/HttpDebugNames.h
./proxy/http/HttpBodyFactory.cc
./proxy/http/HttpClientSession.cc
./proxy/http/HttpTransact.h
./proxy/http/HttpConfig.cc
./proxy/http/HttpServerSession.cc
./proxy/http/HttpUpdateSM.cc
./proxy/http/HttpConnectionCount.h
./proxy/http/testheaders.cc
./proxy/http/HttpConnectionCount.cc
./proxy/http/HttpSessionAccept.h
./proxy/http/HttpDebugNames.cc
./proxy/http/RegressionHttpTransact.cc
./proxy/http/HttpSessionAccept.cc
./proxy/http/remap/RemapConfig.cc
./proxy/http/remap/UrlMapping.h
./proxy/http/remap/RemapProcessor.h
./proxy/http/remap/UrlRewrite.h
./proxy/http/remap/RemapPlugins.cc
./proxy/http/remap/UrlMapping.cc
./proxy/http/remap/AclFiltering.h
./proxy/http/remap/RemapPluginInfo.h
./proxy/http/remap/UrlMappingPathIndex.h
./proxy/http/remap/RemapProcessor.cc
./proxy/http/remap/RemapPlugins.h
./proxy/http/remap/UrlRewrite.cc
./proxy/http/remap/RemapPluginInfo.cc
./proxy/http/remap/RemapConfig.h
./proxy/http/remap/AclFiltering.cc
./proxy/http/remap/UrlMappingPathIndex.cc
./proxy/http/HttpSessionManager.cc
./proxy/http/HttpCacheSM.h
./proxy/http/HttpSM.h
./proxy/TestRegex.cc
./proxy/IPAllow.cc
./proxy/ICPProcessor.cc
./proxy/ReverseProxy.cc
./proxy/ControlMatcher.h
./proxy/SocksProxy.cc
./proxy/UDPAPITest.h
./proxy/UserNameCacheTest.h
./proxy/ICP.h
./proxy/ProxyClientSession.h
./proxy/ParentConsistentHash.h
./proxy/CacheControl.h
./proxy/InkAPITestTool.cc
./proxy/ControlBase.cc
./proxy/http2/Http2DebugNames.cc
./proxy/http2/Http2ClientSession.cc
./proxy/http2/RegressionHPACK.cc
./proxy/http2/Http2ConnectionState.h
./proxy/http2/test_Huffmancode.cc
./proxy/http2/Http2SessionAccept.h
./proxy/http2/Http2DebugNames.h
./proxy/http2/HuffmanCodec.h
./proxy/http2/Http2ConnectionState.cc
./proxy/http2/HTTP2.cc
./proxy/http2/Http2Stream.h
./proxy/http2/Http2ClientSession.h
./proxy/http2/HPACK.h
./proxy/http2/HTTP2.h
./proxy/http2/HuffmanCodec.cc
./proxy/http2/Http2SessionAccept.cc
./proxy/http2/Http2Stream.cc
./proxy/http2/HPACK.cc
./proxy/Main.cc
./proxy/UDPAPIClientTest.cc
./proxy/Plugin.cc
./proxy/TestClock.cc
./proxy/UDPAPIClientTest.h
./proxy/ICPProcessor.h
./proxy/InkAPITest.cc
./proxy/EventName.cc
./proxy/CompletionUtil.h
./proxy/ReverseProxy.h
./proxy/Prefetch.cc
./proxy/TestPreProc.h
./proxy/StatPages.h
./proxy/CacheControl.cc
./proxy/ICP.cc
./proxy/ControlBase.h
./proxy/hdrs/URL.cc
./proxy/hdrs/MIME.h
./proxy/hdrs/HdrTest.h
./proxy/hdrs/HdrTest.cc
./proxy/hdrs/HTTP.cc
./proxy/hdrs/HttpCompat.cc
./proxy/hdrs/HdrUtils.h
./proxy/hdrs/HdrUtils.cc
./proxy/hdrs/HdrToken.cc
./proxy/hdrs/HdrTSOnly.cc
./proxy/hdrs/HdrHeap.cc
./proxy/hdrs/test_urlhash.cc
./proxy/hdrs/HTTP.h
./proxy/hdrs/load_http_hdr.cc
./proxy/hdrs/URL.h
./proxy/hdrs/MIME.cc
./proxy/hdrs/HdrHeap.h
./proxy/hdrs/HdrToken.h
./proxy/hdrs/test_header.cc
./proxy/hdrs/HttpCompat.h
./proxy/sac.cc
./tools/http_load/timers.c
./tools/http_load/timers.h
./tools/http_load/http_load.c
./tools/http_load/port.h
./tools/lighttpd_mod_generator/mod_generator.c
./tools/jtest/jtest.cc
+ git diff --exit-code
diff --git a/lib/records/I_RecProcess.h b/lib/records/I_RecProcess.h
index 6b08df1..3b2da3f 100644
--- a/lib/records/I_RecProcess.h
+++ b/lib/records/I_RecProcess.h
@@ -74,7 +74,7 @@ int RecRawStatSyncIntMsecsToFloatSeconds(const char *name, 
RecDataT data_type, R
 int RecRawStatSyncMHrTimeAvg(const char *name, RecDataT data_type, RecData 
*data, RecRawStatBlock *rsb, int id);
 
 int RecRegisterRawStatSyncCb(const char *name, RecRawStatSyncCb sync_cb, 
RecRawStatBlock *rsb, int id);
-int RecRawStatUpdateSum(RecRawStatBlock* rsb, int id);
+int RecRawStatUpdateSum(RecRawStatBlock *rsb, int id);
 
 //-------------------------------------------------------------------------
 // RawStat Setting/Getting
diff --git a/lib/records/RecRawStats.cc b/lib/records/RecRawStats.cc
index 2de9ecb..850b349 100644
--- a/lib/records/RecRawStats.cc
+++ b/lib/records/RecRawStats.cc
@@ -276,7 +276,8 @@ _RecRegisterRawStat(RecRawStatBlock *rsb, RecT rec_type, 
const char *name, RecDa
   rsb->global[id]->last_count = 0;
 
   // setup the periodic sync callback
-  if (sync_cb) RecRegisterRawStatSyncCb(name, sync_cb, rsb, id);
+  if (sync_cb)
+    RecRegisterRawStatSyncCb(name, sync_cb, rsb, id);
 
 Ldone:
   return err;
@@ -600,11 +601,13 @@ RecExecRawStatSyncCbs()
 }
 
 int
-RecRawStatUpdateSum(RecRawStatBlock* rsb, int id)
+RecRawStatUpdateSum(RecRawStatBlock *rsb, int id)
 {
-  RecRawStat* raw = rsb->global[id];
+  RecRawStat *raw = rsb->global[id];
   if (NULL != raw) {
-    RecRecord* r = reinterpret_cast<RecRecord*>(reinterpret_cast<char*>(raw) - 
(reinterpret_cast<char*>(&reinterpret_cast<RecRecord*>(0)->stat_meta) - 
reinterpret_cast<char*>(reinterpret_cast<RecRecord*>(0))));
+    RecRecord *r = reinterpret_cast<RecRecord *>(reinterpret_cast<char *>(raw) 
-
+                                                 (reinterpret_cast<char 
*>(&reinterpret_cast<RecRecord *>(0)->stat_meta) -
+                                                  reinterpret_cast<char 
*>(reinterpret_cast<RecRecord *>(0))));
 
     RecDataSetFromInk64(r->data_type, &r->data, rsb->global[id]->sum);
     r->sync_required = REC_SYNC_REQUIRED;
Build step 'Execute shell' marked build as failure

Reply via email to