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.
| Paths 
 |  Differential  D63029  
[CUDA] Fix grep pattern in cuda-types.cu ClosedPublic Authored by hubert.reinterpretcast on Jun 7 2019, 3:05 PM. 
Details 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. 
Diff Detail 
 Event Timeline
 Comment Actions Fix grep pattern in cuda-types.cu As requested, further fix so that the SIZEOF and WIDTH macros are checked. hubert.reinterpretcast retitled this revision from [NFC][CUDA] Avoid undefined grep in cuda-types.cu to [CUDA] Fix grep pattern in cuda-types.cu.Jun 7 2019, 6:12 PM hubert.reinterpretcast marked 3 inline comments as done. hubert.reinterpretcast added inline comments. 
 This revision is now accepted and ready to land.Jun 10 2019, 9:19 AM Closed by commit rL362991: [CUDA] Fix grep pattern in cuda-types.cu (authored by hubert.reinterpretcast).  ·  Explain WhyJun 10 2019, 3:26 PM This revision was automatically updated to reflect the committed changes. hubert.reinterpretcast marked an inline comment as done. 
Revision Contents 
Diff 203631 test/Preprocessor/cuda-types.cu | |||||||||||||||||
I believe that was a typo in the original test. It should be TYPE|MAX|SIZEOF|WIDTH now.
SIZEOF and WIDTH are parts of different defines we're looking for.
E.g