]> granicus.if.org Git - clang/commit
[CUDA] Fix grep pattern in cuda-types.cu
authorHubert Tong <hubert.reinterpretcast@gmail.com>
Mon, 10 Jun 2019 22:28:20 +0000 (22:28 +0000)
committerHubert Tong <hubert.reinterpretcast@gmail.com>
Mon, 10 Jun 2019 22:28:20 +0000 (22:28 +0000)
commit9f8da5e95de4424bb6e83d5e02d518953b5a570f
treee3fbd84fcdf93feac11ee7d0ba0dd527e66dc6c0
parent94d43dcd1affd05914a49f78f71c1b5de8fac3c6
[CUDA] Fix grep pattern in cuda-types.cu

Summary:
vertical-line is not a BRE special character.

POSIX.1-2017 XBD Section 9.3.2 indicates that the interpretation of `\|`
is undefined. This patch uses EREs instead.

Additionally, the pattern is further fixed so that `SIZEOF` and `WIDTH`
macros are checked.

Reviewers: jlebar, daltenty, xingxue, jasonliu, tra

Reviewed By: tra

Subscribers: jfb, jsji, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D63029

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@362991 91177308-0d34-0410-b5e6-96231b3b80d8
test/Preprocessor/cuda-types.cu