Validity check introduce in D90241 are a bit too restrict and this patch propose to losen
them a bit. The duplicate clauses is now check only between the three allowed lists and between the
requiredClauses and allowedClauses lists. This allows to enable some check where a clause can be
required but also appear only once on the directive. We found these kind of restriction useful
on the set directive in OpenACC for example.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
LGTM.
llvm/utils/TableGen/DirectiveEmitter.cpp | ||
---|---|---|
161–168 | Nit: Does the return value match the name of this function? Shouldn't it be like the following? |
llvm/utils/TableGen/DirectiveEmitter.cpp | ||
---|---|---|
161–168 | Right it is misleading. I'll update that to be consistent between the name and the return value. |
llvm/utils/TableGen/DirectiveEmitter.cpp | ||
---|---|---|
134 | nit: - Is clang-tidy suggesting something? if not ignore me on this. |
llvm/utils/TableGen/DirectiveEmitter.cpp | ||
---|---|---|
134 | Good catch. clang-tidy is not followed always in TableGen backends but this one should be. Thanks! |
clang-tidy: warning: invalid case style for variable 'hasDuplicate' [readability-identifier-naming]
not useful