[PATCH] D122965: Correct Command

Priyansh Singh via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 1 23:26:19 PDT 2022


ps-19 created this revision.
ps-19 added reviewers: aaron.ballman, ktkachov, beanz, phosek, ldionne, smeenai, compnerd.
Herald added a subscriber: pengfei.
Herald added a project: All.
ps-19 requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

In https://github.com/llvm/llvm-project/blob/main/clang/test/CodeGen/c-unicode.c

I can not find command RUN: %clang --target=x86_64--linug-gnu -S %s -o - | FileCheck %s -check-prefix=ALLOWED .
So corrected it.

As given here https://unix.stackexchange.com/questions/206410/why-gcc-show-unknown-in-target-x86-64-unknown-linux-gnu-in-arch-linux#:~:text=lto%2Dwrapper%0A%20Target%3A-,x86_64%2Dubuntu%2Dlinux%2Dgnu,-linux


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D122965

Files:
  clang/test/CodeGen/c-unicode.c
  mypatch.patch


Index: mypatch.patch
===================================================================
--- /dev/null
+++ mypatch.patch
@@ -0,0 +1,13 @@
+diff --git a/llvm/utils/vim/indent/llvm.vim b/llvm/utils/vim/indent/llvm.vim
+index d1d8c83d1186..75ee9ef485d4 100644
+--- a/llvm/utils/vim/indent/llvm.vim
++++ b/llvm/utils/vim/indent/llvm.vim
+@@ -52,7 +52,7 @@ function! GetLLVMIndent()
+ 
+   " Find a non-blank not-completely commented line above the current line.
+   let prev_lnum = prevnonblank(v:lnum - 1)
+-  while prev_lnum > 0 && synIDattr(synID(prev_lnum, indent(prev_lnum)+1, 0), "name") =? "string\|comment"
++  while prev_lnum > 0 && synIDattr(synID(prev_lnum, indent(prev_lnum)+1, 0), "name") =~? "string\|comment"
+     let prev_lnum = prevnonblank(prev_lnum-1)
+   endwhile
+   " Hit the start of the file, use zero indent.
Index: clang/test/CodeGen/c-unicode.c
===================================================================
--- clang/test/CodeGen/c-unicode.c
+++ clang/test/CodeGen/c-unicode.c
@@ -1,5 +1,5 @@
 // REQUIRES: x86-registered-target
-// RUN: %clang --target=x86_64--linug-gnu -S %s -o - | FileCheck %s -check-prefix=ALLOWED
+// RUN: %clang --target=x86_64--linux-gnu -S %s -o - | FileCheck %s -check-prefix=ALLOWED
 // RUN: not %clang --target=x86_64--linux-gnu -std=c89 -S %s -o - 2>&1 | FileCheck %s -check-prefix=DENIED
 int \uaccess = 0;
 // ALLOWED: "곎ss":


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122965.419943.patch
Type: text/x-patch
Size: 1390 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220402/354a13bc/attachment-0001.bin>


More information about the cfe-commits mailing list