[PATCH] D109359: [TableGen] Emit a warning for unused template args
Cullen Rhodes via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 1 04:47:34 PDT 2021
c-rhodes updated this revision to Diff 383777.
c-rhodes edited the summary of this revision.
c-rhodes added a comment.
- Emit warning by default in TableGen.
- Change `--warn-on-unused-template-args` to `--no-warn-on-unused-template-args` to disable warning.
- Warning is disabled for LLVM and sub-projects if `LLVM_ENABLE_WARNINGS=OFF.`
- Disable warning for existing TableGen tests with unused template args.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109359/new/
https://reviews.llvm.org/D109359
Files:
llvm/cmake/modules/TableGen.cmake
llvm/include/llvm/TableGen/Record.h
llvm/lib/TableGen/Main.cpp
llvm/lib/TableGen/Record.cpp
llvm/lib/TableGen/TGParser.cpp
llvm/lib/TableGen/TGParser.h
llvm/test/TableGen/2010-03-24-PrematureDefaults.td
llvm/test/TableGen/TemplateArgRename.td
llvm/test/TableGen/cond-subclass.td
llvm/test/TableGen/defmclass.td
llvm/test/TableGen/if.td
llvm/test/TableGen/isa.td
llvm/test/TableGen/pr8330.td
llvm/test/TableGen/warn-unused-template-arg.td
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109359.383777.patch
Type: text/x-patch
Size: 8928 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211101/ee662c8f/attachment.bin>
More information about the llvm-commits
mailing list