This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP][NFC] Fix `not` sustitution in tests
ClosedPublic

Authored by jdenny on May 6 2020, 5:06 PM.

Details

Summary

D78566 introduced a \bnot\b lit substitution in OpenMP test suites.
However, that would corrupt a command like
FileCheck -implicit-check-not or any file name like %t.not. We
could use lookbehind/lookahead assertions to avoid such cases, but
this patch switches to %not (suggested during the D78566 review) as
a safer option.

Diff Detail

Event Timeline

jdenny created this revision.May 6 2020, 5:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 6 2020, 5:06 PM
This revision is now accepted and ready to land.May 6 2020, 10:39 PM

FWIW, if you feel confident you can just commit a patch like this one.

This revision was automatically updated to reflect the committed changes.

Is there any documentation available for not. It does not accept -h, it does not come with a man page. And it's not trivial to google for information on not.
How is not supposed to be used?

Is there any documentation available for not. It does not accept -h, it does not come with a man page. And it's not trivial to google for information on not.
How is not supposed to be used?

The best reference I have is: llvm/utils/not/not.cpp