You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by je...@ci.trafficserver.apache.org on 2015/10/06 09:23:17 UTC

Build failed in Jenkins: clang-format #331

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

------------------------------------------
[...truncated 4380 lines...]
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit -e lib/tsconfig`'
+ echo src/proxy/DynamicStats.h
src/proxy/DynamicStats.h
+ clang-format -i src/proxy/DynamicStats.h
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit -e lib/tsconfig`'
+ echo src/proxy/StatSystem.cc
src/proxy/StatSystem.cc
+ clang-format -i src/proxy/StatSystem.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit -e lib/tsconfig`'
+ echo src/proxy/StatPages.h
src/proxy/StatPages.h
+ clang-format -i src/proxy/StatPages.h
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit -e lib/tsconfig`'
+ echo src/proxy/CacheControl.cc
src/proxy/CacheControl.cc
+ clang-format -i src/proxy/CacheControl.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit -e lib/tsconfig`'
+ echo src/proxy/ICP.cc
src/proxy/ICP.cc
+ clang-format -i src/proxy/ICP.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit -e lib/tsconfig`'
+ echo src/proxy/ControlBase.h
src/proxy/ControlBase.h
+ clang-format -i src/proxy/ControlBase.h
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit -e lib/tsconfig`'
+ echo src/proxy/hdrs/URL.cc
src/proxy/hdrs/URL.cc
+ clang-format -i src/proxy/hdrs/URL.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit -e lib/tsconfig`'
+ echo src/proxy/hdrs/MIME.h
src/proxy/hdrs/MIME.h
+ clang-format -i src/proxy/hdrs/MIME.h
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit -e lib/tsconfig`'
+ echo src/proxy/hdrs/HdrTest.h
src/proxy/hdrs/HdrTest.h
+ clang-format -i src/proxy/hdrs/HdrTest.h
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit -e lib/tsconfig`'
+ echo src/proxy/hdrs/HdrTest.cc
src/proxy/hdrs/HdrTest.cc
+ clang-format -i src/proxy/hdrs/HdrTest.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit -e lib/tsconfig`'
+ echo src/proxy/hdrs/HTTP.cc
src/proxy/hdrs/HTTP.cc
+ clang-format -i src/proxy/hdrs/HTTP.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit -e lib/tsconfig`'
+ echo src/proxy/hdrs/HttpCompat.cc
src/proxy/hdrs/HttpCompat.cc
+ clang-format -i src/proxy/hdrs/HttpCompat.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit -e lib/tsconfig`'
+ echo src/proxy/hdrs/HdrUtils.h
src/proxy/hdrs/HdrUtils.h
+ clang-format -i src/proxy/hdrs/HdrUtils.h
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit -e lib/tsconfig`'
+ echo src/proxy/hdrs/HdrUtils.cc
src/proxy/hdrs/HdrUtils.cc
+ clang-format -i src/proxy/hdrs/HdrUtils.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit -e lib/tsconfig`'
+ echo src/proxy/hdrs/HdrToken.cc
src/proxy/hdrs/HdrToken.cc
+ clang-format -i src/proxy/hdrs/HdrToken.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit -e lib/tsconfig`'
+ echo src/proxy/hdrs/HdrTSOnly.cc
src/proxy/hdrs/HdrTSOnly.cc
+ clang-format -i src/proxy/hdrs/HdrTSOnly.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit -e lib/tsconfig`'
+ echo src/proxy/hdrs/HdrHeap.cc
src/proxy/hdrs/HdrHeap.cc
+ clang-format -i src/proxy/hdrs/HdrHeap.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit -e lib/tsconfig`'
+ echo src/proxy/hdrs/test_urlhash.cc
src/proxy/hdrs/test_urlhash.cc
+ clang-format -i src/proxy/hdrs/test_urlhash.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit -e lib/tsconfig`'
+ echo src/proxy/hdrs/HTTP.h
src/proxy/hdrs/HTTP.h
+ clang-format -i src/proxy/hdrs/HTTP.h
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit -e lib/tsconfig`'
+ echo src/proxy/hdrs/load_http_hdr.cc
src/proxy/hdrs/load_http_hdr.cc
+ clang-format -i src/proxy/hdrs/load_http_hdr.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit -e lib/tsconfig`'
+ echo src/proxy/hdrs/URL.h
src/proxy/hdrs/URL.h
+ clang-format -i src/proxy/hdrs/URL.h
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit -e lib/tsconfig`'
+ echo src/proxy/hdrs/MIME.cc
src/proxy/hdrs/MIME.cc
+ clang-format -i src/proxy/hdrs/MIME.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit -e lib/tsconfig`'
+ echo src/proxy/hdrs/HdrHeap.h
src/proxy/hdrs/HdrHeap.h
+ clang-format -i src/proxy/hdrs/HdrHeap.h
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit -e lib/tsconfig`'
+ echo src/proxy/hdrs/HdrToken.h
src/proxy/hdrs/HdrToken.h
+ clang-format -i src/proxy/hdrs/HdrToken.h
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit -e lib/tsconfig`'
+ echo src/proxy/hdrs/test_header.cc
src/proxy/hdrs/test_header.cc
+ clang-format -i src/proxy/hdrs/test_header.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit -e lib/tsconfig`'
+ echo src/proxy/hdrs/HttpCompat.h
src/proxy/hdrs/HttpCompat.h
+ clang-format -i src/proxy/hdrs/HttpCompat.h
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit -e lib/tsconfig`'
+ echo src/proxy/sac.cc
src/proxy/sac.cc
+ clang-format -i src/proxy/sac.cc
+ cd src
+ git diff --exit-code
diff --git a/plugins/header_rewrite/header_rewrite_test.cc b/plugins/header_rewrite/header_rewrite_test.cc
index f4fdabd..4c836e4 100644
--- a/plugins/header_rewrite/header_rewrite_test.cc
+++ b/plugins/header_rewrite/header_rewrite_test.cc
@@ -27,45 +27,53 @@
 const char PLUGIN_NAME[] = "TEST_header_rewrite";
 const char PLUGIN_NAME_DBG[] = "TEST_dbg_header_rewrite";
 
-extern "C" void TSError(const char* fmt, ...) {
+extern "C" void
+TSError(const char *fmt, ...)
+{
   char buf[2048];
   int bytes = 0;
   va_list args;
-  va_start (args, fmt);
-  if((bytes = vsnprintf (buf, sizeof(buf), fmt, args)) > 0) {
+  va_start(args, fmt);
+  if ((bytes = vsnprintf(buf, sizeof(buf), fmt, args)) > 0) {
     fprintf(stderr, "TSError: %s: %.*s\n", PLUGIN_NAME, bytes, buf);
   }
 }
 
-extern "C" void TSDebug(const char *tag, const char* fmt, ...) {
+extern "C" void
+TSDebug(const char *tag, const char *fmt, ...)
+{
   char buf[2048];
   int bytes = 0;
   va_list args;
-  va_start (args, fmt);
-  if((bytes = vsnprintf (buf, sizeof(buf), fmt, args)) > 0) {
+  va_start(args, fmt);
+  if ((bytes = vsnprintf(buf, sizeof(buf), fmt, args)) > 0) {
     fprintf(stdout, "TSDebug: %s: %.*s\n", PLUGIN_NAME, bytes, buf);
   }
 }
 
-#define CHECK_EQ(x, y) \
-  do { \
-   if ( (x) != (y) ) { \
-    fprintf(stderr, "CHECK FAILED\n"); \
-    return 1; \
-   } \
+#define CHECK_EQ(x, y)                   \
+  do {                                   \
+    if ((x) != (y)) {                    \
+      fprintf(stderr, "CHECK FAILED\n"); \
+      return 1;                          \
+    }                                    \
   } while (false);
 
-class ParserTest : public Parser {
+class ParserTest : public Parser
+{
 public:
-  ParserTest(std::string line) : Parser(line) { }
+  ParserTest(std::string line) : Parser(line) {}
 
-  std::vector<std::string> getTokens() {
+  std::vector<std::string>
+  getTokens()
+  {
     return _tokens;
   }
 };
 
-int test_parsing() {
-
+int
+test_parsing()
+{
   {
     ParserTest p("cond      %{READ_REQUEST_HDR_HOOK}");
     CHECK_EQ(p.getTokens().size(), 2);
@@ -177,8 +185,9 @@ int test_parsing() {
   return 0;
 }
 
-int test_processing() {
-
+int
+test_processing()
+{
   /*
    * These tests are designed to verify that the processing of the parsed input is correct.
    */
@@ -210,16 +219,18 @@ int test_processing() {
   return 0;
 }
 
-int tests() {
-  if (test_parsing() ||
-      test_processing()) {
+int
+tests()
+{
+  if (test_parsing() || test_processing()) {
     return 1;
   }
 
   return 0;
 }
 
-int main () {
+int
+main()
+{
   return tests();
 }
-
diff --git a/plugins/header_rewrite/parser.cc b/plugins/header_rewrite/parser.cc
index e7e32c3..43ead4a 100644
--- a/plugins/header_rewrite/parser.cc
+++ b/plugins/header_rewrite/parser.cc
@@ -36,9 +36,7 @@ Parser::Parser(const std::string &line) : _cond(false), _empty(false)
   off_t cur_token_start = 0;
   size_t cur_token_length = 0;
   for (size_t i = 0; i < line.size(); ++i) {
-
-    if (!inquote &&
-        (std::isspace(line[i]) || (line[i] == '=' || line[i] == '>' || line[i] == '<'))) {
+    if (!inquote && (std::isspace(line[i]) || (line[i] == '=' || line[i] == '>' || line[i] == '<'))) {
       if (extracting_token) {
         cur_token_length = i - cur_token_start;
 
@@ -129,9 +127,8 @@ Parser::preprocess(std::vector<std::string> tokens)
       std::string s = tokens[0].substr(2, tokens[0].size() - 3);
 
       _op = s;
-      if (tokens.size() > 2
-          && (tokens[1][0] == '=' || tokens[1][0] == '>' || tokens[1][0] == '<')) { // cond + (=/</>) + argument
-         _arg = tokens[1] + tokens[2];
+      if (tokens.size() > 2 && (tokens[1][0] == '=' || tokens[1][0] == '>' || tokens[1][0] == '<')) { // cond + (=/</>) + argument
+        _arg = tokens[1] + tokens[2];
       } else if (tokens.size() > 1) {
         _arg = tokens[1];
       } else
Build step 'Execute shell' marked build as failure

Jenkins build is back to normal : clang-format #332

Posted by je...@ci.trafficserver.apache.org.
See <https://ci.trafficserver.apache.org/job/clang-format/332/changes>