See 
<https://ci.trafficserver.apache.org/job/macOS-master/compiler=clang,label=macOS,type=release/2013/display/redirect?page=changes>

Changes:

[Bryan Call] Ran clang-tidy with modernize-loop-convert

------------------------------------------
[...truncated 25.53 KB...]
checking for sys/prctl.h... no
checking arpa/nameser.h usability... yes
checking arpa/nameser.h presence... yes
checking for arpa/nameser.h... yes
checking arpa/nameser_compat.h usability... yes
checking arpa/nameser_compat.h presence... yes
checking for arpa/nameser_compat.h... yes
checking for execinfo.h... (cached) yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking siginfo.h usability... no
checking siginfo.h presence... no
checking for siginfo.h... no
checking malloc.h usability... no
checking malloc.h presence... no
checking for malloc.h... no
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking libgen.h usability... yes
checking libgen.h presence... yes
checking for libgen.h... yes
checking values.h usability... no
checking values.h presence... no
checking for values.h... no
checking alloca.h usability... yes
checking alloca.h presence... yes
checking for alloca.h... yes
checking cpio.h usability... yes
checking cpio.h presence... yes
checking for cpio.h... yes
checking stropts.h usability... no
checking stropts.h presence... no
checking for stropts.h... no
checking for sys/param.h... (cached) yes
checking sys/sysmacros.h usability... no
checking sys/sysmacros.h presence... no
checking for sys/sysmacros.h... no
checking for stdint.h... (cached) yes
checking stdbool.h usability... yes
checking stdbool.h presence... yes
checking for stdbool.h... yes
checking sysexits.h usability... yes
checking sysexits.h presence... yes
checking for sysexits.h... yes
checking net/ppp_defs.h usability... no
checking net/ppp_defs.h presence... no
checking for net/ppp_defs.h... no
checking ifaddrs.h usability... yes
checking ifaddrs.h presence... yes
checking for ifaddrs.h... yes
checking for readline/readline.h... (cached) yes
checking editline/readline.h usability... yes
checking editline/readline.h presence... yes
checking for editline/readline.h... yes
checking ucred.h usability... no
checking ucred.h presence... no
checking for ucred.h... no
checking for pthread_np.h... no
checking sys/statfs.h usability... no
checking sys/statfs.h presence... no
checking for sys/statfs.h... no
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking sys/disk.h usability... yes
checking sys/disk.h presence... yes
checking for sys/disk.h... yes
checking sys/disklabel.h usability... no
checking sys/disklabel.h presence... no
checking for sys/disklabel.h... no
checking linux/hdreg.h usability... no
checking linux/hdreg.h presence... no
checking for linux/hdreg.h... no
checking linux/fs.h usability... no
checking linux/fs.h presence... no
checking for linux/fs.h... no
checking linux/major.h usability... no
checking linux/major.h presence... no
checking for linux/major.h... no
checking for sys/sysctl.h... yes
checking for sys/cpuset.h... no
checking for sys/mount.h... yes
checking for arpa/inet.h... yes
checking for netinet/ip.h... yes
checking for netinet/ip_icmp.h... yes
checking for 1-parameter version of pthread_setname_np()... yes
checking for 2-parameter version of pthread_setname_np()... no
checking for 2-parameter version of pthread_set_name_np()... no
checking for struct sockaddr.sa_len... yes
checking for struct sockaddr_in.sin_len... yes
checking for struct sockaddr_in6.sin6_len... yes
checking for struct stat.st_mtimespec.tv_nsec... yes
checking for struct stat.st_mtim.tv_nsec... no
checking whether to enable transparent proxy... no
checking for SO_PEERCRED socket option... no
checking for SO_MARK socket option... no
checking for IP_TOS socket option... yes
checking for loopback network interface... lo0
checking IN6_IS_ADDR_UNSPECIFIED macro works... no
checking for struct tcp_info... no
checking search.h usability... yes
checking search.h presence... yes
checking for search.h... yes
checking for struct hsearch_data... no
checking for hcreate_r... no
checking for hsearch_r... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating cmd/Makefile
config.status: creating cmd/traffic_cache_tool/Makefile
config.status: creating cmd/traffic_cop/Makefile
config.status: creating cmd/traffic_crashlog/Makefile
config.status: creating cmd/traffic_ctl/Makefile
config.status: creating cmd/traffic_layout/Makefile
config.status: creating cmd/traffic_manager/Makefile
config.status: creating cmd/traffic_top/Makefile
config.status: creating cmd/traffic_via/Makefile
config.status: creating cmd/traffic_wccp/Makefile
config.status: creating doc/Makefile
config.status: creating doc/ext/local-config.py
config.status: creating doc/uml/Makefile
config.status: creating example/Makefile
config.status: creating iocore/Makefile
config.status: creating iocore/aio/Makefile
config.status: creating iocore/cache/Makefile
config.status: creating iocore/dns/Makefile
config.status: creating iocore/eventsystem/Makefile
config.status: creating iocore/hostdb/Makefile
config.status: creating iocore/net/Makefile
config.status: creating iocore/utils/Makefile
config.status: creating lib/Makefile
config.status: creating lib/cppapi/Makefile
config.status: creating lib/bindings/Makefile
config.status: creating lib/perl/Makefile
config.status: creating lib/perl/lib/Apache/TS.pm
config.status: creating lib/records/Makefile
config.status: creating lib/ts/Makefile
config.status: creating lib/ts/apidefs.h
config.status: creating lib/ts/ink_config.h
config.status: creating lib/tsconfig/Makefile
config.status: creating lib/wccp/Makefile
config.status: creating mgmt/Makefile
config.status: creating mgmt/api/Makefile
config.status: creating mgmt/api/include/Makefile
config.status: creating mgmt/utils/Makefile
config.status: creating plugins/Makefile
config.status: creating proxy/Makefile
config.status: creating proxy/api/ts/Makefile
config.status: creating proxy/config/Makefile
config.status: creating proxy/config/body_factory/Makefile
config.status: creating proxy/config/body_factory/default/Makefile
config.status: creating proxy/config/records.config.default
config.status: creating proxy/config/storage.config.default
config.status: creating proxy/congest/Makefile
config.status: creating proxy/hdrs/Makefile
config.status: creating proxy/http/Makefile
config.status: creating proxy/http/remap/Makefile
config.status: creating proxy/http2/Makefile
config.status: creating proxy/logging/Makefile
config.status: creating proxy/shared/Makefile
config.status: creating rc/Makefile
config.status: creating rc/trafficserver
config.status: creating rc/trafficserver.conf
config.status: creating rc/trafficserver.service
config.status: creating rc/trafficserver.xml
config.status: creating tools/Makefile
config.status: creating tools/trafficserver.pc
config.status: creating tools/tsxs
config.status: creating tests/unit_tests/Makefile
config.status: creating lib/ink_autoconf.h
config.status: executing depfiles commands
config.status: executing libtool commands
configure: Build option summary:
    CC:                 clang
    CXX:                clang++
    CPP:                clang -E
    CPPFLAGS:           -D_GNU_SOURCE -I/usr/local/opt/openssl/include 
-DOPENSSL_NO_SSL_INTERN -I/usr/local/Cellar/pcre/8.40/include
    AM_CFLAGS:          -std=gnu99 -g -pipe -Wall -Wno-deprecated-declarations 
-Qunused-arguments -Wextra -Wno-ignored-qualifiers -Wno-unused-parameter -O3 
-fno-strict-aliasing -Werror -mcx16
    AM_CXXFLAGS:        -g -pipe -Wall -Wno-deprecated-declarations 
-Qunused-arguments -Wextra -Wno-ignored-qualifiers -Wno-unused-parameter -O3 
-fno-strict-aliasing -Werror -Wno-invalid-offsetof  -mcx16
    AM_CPPFLAGS:        -Ddarwin -D_LARGEFILE64_SOURCE=1 
-D_COMPILE64BIT_SOURCE=1 -D_REENTRANT -D__STDC_LIMIT_MACROS=1 
-D__STDC_FORMAT_MACROS=1
    AM_LDFLAGS:         -R/usr/local/opt/openssl/lib 
-R/usr/local/Cellar/pcre/8.40/lib
    TS_INCLUDES:        
-I/System/Library/Frameworks/Tcl.framework/Versions/8.5/Headers
    OPENSSL_LDFLAGS:    -L/usr/local/opt/openssl/lib
    OPENSSL_INCLUDES:   -I/usr/local/opt/openssl/include
    LUAJIT_CFLAGS:       -Wno-parentheses-equality -Wno-tautological-compare 
-Wno-varargs
    LUAJIT_CPPFLAGS:    -I$(abs_top_srcdir)/lib/luajit/src
    LUAJIT_LDFLAGS:     -Wl,-pagezero_size,10000 -Wl,-image_base,100000000

+ make -j6
Making all in proxy/api/ts
make[1]: Nothing to be done for `all'.
Making all in lib
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in ts
  CXX      Arena.lo
  CXX      BaseLogFile.lo
  CXX      Bitops.lo
  CXX      BufferWriterFormat.lo
  CXX      ConsistentHash.lo
  CXX      ContFlags.lo
  CXX      CryptoHash.lo
  CXX      Diags.lo
  CXX      EventNotify.lo
  CC       fastlz.lo
  CXX      Hash.lo
  CXX      HashFNV.lo
  CXX      HashMD5.lo
  CXX      HashSip.lo
  CXX      HostLookup.lo
  CXX      hugepages.lo
  CXX      ink_args.lo
  CXX      ink_assert.lo
  CXX      ink_base64.lo
  CXX      ink_cap.lo
  CXX      ink_code.lo
  CXX      ink_defs.lo
  CXX      InkErrno.lo
  CXX      ink_error.lo
  CXX      ink_file.lo
  CXX      ink_hash_table.lo
  CXX      ink_hrtime.lo
  CXX      ink_inet.lo
  CXX      ink_memory.lo
  CXX      ink_mutex.lo
  CXX      ink_queue.lo
  CXX      ink_queue_utils.lo
  CXX      ink_rand.lo
  CXX      ink_res_init.lo
  CXX      ink_res_mkquery.lo
../../../lib/ts/ink_inet.cc:315:31: error: use of undeclared identifier 
'htobe64'
              mask          = htobe64(~static_cast<uint64_t>(0) << (64 - cidr));
                              ^
../../../lib/ts/ink_inet.cc:329:24: error: use of undeclared identifier 
'htobe64'
                mask = htobe64(~static_cast<uint64_t>(0) << (128 - cidr));
                       ^
  CXX      ink_resource.lo
2 errors generated.
make[3]: *** [ink_inet.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1
Build step 'Execute shell' marked build as failure

Reply via email to