llvm-project/llvm/lib/TableGen
Cullen Rhodes d968b173d3 [TableGen] Emit a warning for unused template args
Add a warning to TableGen for unused template arguments in classes and
multiclasses, for example:

  multiclass Foo<int x> {
    def bar;
  }

  $ llvm-tblgen foo.td

  foo.td:1:20: warning: unused template argument: Foo::x
  multiclass Foo<int x> {
                     ^
A flag '--no-warn-on-unused-template-args' is added to disable the
warning. The warning is disabled for LLVM and sub-projects if
'LLVM_ENABLE_WARNINGS=OFF'.

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D109359
2021-11-03 11:55:07 +00:00
..
CMakeLists.txt
DetailedRecordsBackend.cpp DetailedRecordsBackend.cpp - printSectionHeading - avoid std::string creation/copies. 2021-06-13 16:49:40 +01:00
Error.cpp [TableGen] Add support for the 'assert' statement in class definitions. 2021-03-29 09:20:29 -04:00
JSONBackend.cpp
Main.cpp [TableGen] Emit a warning for unused template args 2021-11-03 11:55:07 +00:00
Record.cpp [TableGen] Emit a warning for unused template args 2021-11-03 11:55:07 +00:00
SetTheory.cpp [TableGen] Use range-based for loops (NFC) 2021-03-06 15:52:55 -08:00
StringMatcher.cpp [TableGen] Use range-based for loops (NFC) 2021-03-06 15:52:55 -08:00
TGLexer.cpp [TableGen] Make the NUL character invalid in .td files 2021-05-13 10:17:45 -04:00
TGLexer.h [TableGen] Add the !find bang operator 2021-04-28 09:51:00 -04:00
TGParser.cpp [TableGen] Emit a warning for unused template args 2021-11-03 11:55:07 +00:00
TGParser.h [TableGen] Emit a warning for unused template args 2021-11-03 11:55:07 +00:00
TableGenBackend.cpp
TableGenBackendSkeleton.cpp