Update clang-format to 3.8

pull/5895/head
Craig Tiller 9 years ago
parent fb6e13b1b5
commit f29d1f7799
  1. 10
      tools/dockerfile/grpc_clang_format/Dockerfile
  2. 2
      tools/dockerfile/grpc_clang_format/clang_format_all_the_things.sh

@ -27,9 +27,13 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
FROM ubuntu:vivid
FROM ubuntu:wily
RUN apt-get update
RUN apt-get -y install clang-format-3.6
RUN apt-get -y install wget
RUN echo deb http://llvm.org/apt/wily/ llvm-toolchain-wily main >> /etc/apt/sources.list
RUN echo deb-src http://llvm.org/apt/wily/ llvm-toolchain-wily main >> /etc/apt/sources.list
RUN wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key| apt-key add -
RUN apt-get update
RUN apt-get -y install clang-format-3.8
ADD clang_format_all_the_things.sh /
CMD ["echo 'Run with tools/distrib/clang_format_code.sh'"]

@ -37,7 +37,7 @@ DIRS="src/core src/cpp test/core test/cpp include"
GLOB="*.h *.c *.cc"
# clang format command
CLANG_FORMAT=clang-format-3.6
CLANG_FORMAT=clang-format-3.8
files=
for dir in $DIRS

Loading…
Cancel
Save