[PATCH] D72326: [clang-format] Rebased on master: Add option to specify explicit config file

MyDeveloperDay via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 30 04:43:57 PDT 2020


MyDeveloperDay added a comment.

These tests still fail

running the following in the build directory (if your build directory is side-by-side with the llvm-project directory):

c:/Python37/python ./bin/llvm-lit.py -v ./tools/clang/test/Format

  $ ./run_format_lit_tests.sh
  llvm-lit.py: C:\cygwin64\buildareas\clang\build\bin\..\..\llvm-project\llvm\utils\lit\lit\llvm\config.py:343: note: using clang: c:\cygwin64\buildareas\clang\build\bin\clang.exe
  -- Testing: 21 tests, 12 workers --
  PASS: Clang :: Format/cursor.cpp (1 of 21)
  FAIL: Clang :: Format/dump-config-objc.h (2 of 21)
  ******************** TEST 'Clang :: Format/dump-config-objc.h' FAILED ********************
  Script:
  --
  : 'RUN: at line 1';   c:\cygwin64\buildareas\clang\build\bin\clang-format.exe -dump-config C:\cygwin64\buildareas\clang\llvm-project\clang\test\Format\dump-config-objc.h | c:\cygwin64\buildareas\clang\build\bin\filecheck.exe C:\cygwin64\buildareas\clang\llvm-project\clang\test\Format\dump-config-objc.h
  --
  Exit Code: 1
  
  Command Output (stdout):
  --
  $ ":" "RUN: at line 1"
  $ "c:\cygwin64\buildareas\clang\build\bin\clang-format.exe" "-dump-config" "C:\cygwin64\buildareas\clang\llvm-project\clang\test\Format\dump-config-objc.h"
  $ "c:\cygwin64\buildareas\clang\build\bin\filecheck.exe" "C:\cygwin64\buildareas\clang\llvm-project\clang\test\Format\dump-config-objc.h"
  # command stderr:
  C:\cygwin64\buildareas\clang\llvm-project\clang\test\Format\dump-config-objc.h:3:11: error: CHECK: expected string not found in input
  // CHECK: Language: ObjC
            ^
  <stdin>:1:1: note: scanning from here
  ---
  ^
  <stdin>:2:1: note: possible intended match here
  Language: Cpp
  ^
  
  error: command failed with exit status: 1
  
  --
  
  ********************


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D72326/new/

https://reviews.llvm.org/D72326





More information about the cfe-commits mailing list