[PATCH] D116833: [clang][Sema] Introduce support for disabling warnings in system macros

Carlos Galvez via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Jan 8 02:19:16 PST 2022


carlosgalvezp updated this revision to Diff 398324.
carlosgalvezp retitled this revision from "[clang][Sema] Disable -Wc++20-designator in system macros" to "[clang][Sema] Introduce support for disabling warnings in system macros".
carlosgalvezp edited the summary of this revision.
carlosgalvezp added a comment.
Herald added subscribers: usaxena95, arphaman.

Introduce centralized framework for suppressing warnings,
to avoid code duplication for each check.

Clean up the code for -Wshadow and -Wold-style-cast, which
was introduced together with their unit tests in 
https://github.com/llvm/llvm-project/commit/15ab37321cbdb8c38e30cf8bd59bad52f4497580


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D116833/new/

https://reviews.llvm.org/D116833

Files:
  clang/include/clang/Basic/Diagnostic.td
  clang/include/clang/Basic/DiagnosticAST.h
  clang/include/clang/Basic/DiagnosticAnalysis.h
  clang/include/clang/Basic/DiagnosticComment.h
  clang/include/clang/Basic/DiagnosticCrossTU.h
  clang/include/clang/Basic/DiagnosticDriver.h
  clang/include/clang/Basic/DiagnosticFrontend.h
  clang/include/clang/Basic/DiagnosticIDs.h
  clang/include/clang/Basic/DiagnosticLex.h
  clang/include/clang/Basic/DiagnosticParse.h
  clang/include/clang/Basic/DiagnosticRefactoring.h
  clang/include/clang/Basic/DiagnosticSema.h
  clang/include/clang/Basic/DiagnosticSemaKinds.td
  clang/include/clang/Basic/DiagnosticSerialization.h
  clang/lib/Basic/DiagnosticIDs.cpp
  clang/lib/Sema/SemaDecl.cpp
  clang/lib/Sema/SemaExpr.cpp
  clang/test/SemaCXX/warn-sysheader-macro.cpp
  clang/test/TableGen/DiagnosticBase.inc
  clang/test/TableGen/deferred-diag.td
  clang/tools/diagtool/DiagnosticNames.cpp
  clang/utils/TableGen/ClangDiagnosticsEmitter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116833.398324.patch
Type: text/x-patch
Size: 18813 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220108/610920a6/attachment-0001.bin>


More information about the cfe-commits mailing list