[clang] 39f36d5 - [Driver] Give warn_drv_include_probe_gch a dedicated flag
Hans Wennborg via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 26 05:15:00 PDT 2023
Author: Hans Wennborg
Date: 2023-09-26T14:14:37+02:00
New Revision: 39f36d5d5c88f49eaa946a3ee9ef887c04275a33
URL: https://github.com/llvm/llvm-project/commit/39f36d5d5c88f49eaa946a3ee9ef887c04275a33
DIFF: https://github.com/llvm/llvm-project/commit/39f36d5d5c88f49eaa946a3ee9ef887c04275a33.diff
LOG: [Driver] Give warn_drv_include_probe_gch a dedicated flag
See discussion on https://github.com/llvm/llvm-project/pull/67084
Added:
Modified:
clang/include/clang/Basic/DiagnosticDriverKinds.td
clang/include/clang/Basic/DiagnosticGroups.td
Removed:
################################################################################
diff --git a/clang/include/clang/Basic/DiagnosticDriverKinds.td b/clang/include/clang/Basic/DiagnosticDriverKinds.td
index 839e7930b51efcd..30d8f05dc92f9f0 100644
--- a/clang/include/clang/Basic/DiagnosticDriverKinds.td
+++ b/clang/include/clang/Basic/DiagnosticDriverKinds.td
@@ -433,7 +433,7 @@ def warn_drv_treating_input_as_cxx : Warning<
InGroup<Deprecated>;
def warn_drv_include_probe_gch : Warning<
"'%0' probing .gch is deprecated. Use '-include-pch %1' or switch to .pch instead">,
- InGroup<Deprecated>;
+ InGroup<DeprecatedIncludeGch>;
def warn_drv_pch_not_first_include : Warning<
"precompiled header '%0' was ignored because '%1' is not first '-include'">;
def warn_missing_sysroot : Warning<"no such sysroot directory: '%0'">,
diff --git a/clang/include/clang/Basic/DiagnosticGroups.td b/clang/include/clang/Basic/DiagnosticGroups.td
index afbf0f0ed22e57f..0b09c002191848a 100644
--- a/clang/include/clang/Basic/DiagnosticGroups.td
+++ b/clang/include/clang/Basic/DiagnosticGroups.td
@@ -209,6 +209,7 @@ def DeprecatedWritableStr : DiagGroup<"deprecated-writable-strings",
[CXX11CompatDeprecatedWritableStr]>;
def DeprecatedPragma : DiagGroup<"deprecated-pragma">;
def DeprecatedType : DiagGroup<"deprecated-type">;
+def DeprecatedIncludeGch : DiagGroup<"deprecated-include-gch">;
// FIXME: Why is DeprecatedImplementations not in this group?
def Deprecated : DiagGroup<"deprecated", [DeprecatedAnonEnumEnumConversion,
DeprecatedArrayCompare,
@@ -232,6 +233,7 @@ def Deprecated : DiagGroup<"deprecated", [DeprecatedAnonEnumEnumConversion,
DeprecatedVolatile,
DeprecatedWritableStr,
DeprecatedRedundantConstexprStaticDef,
+ DeprecatedIncludeGch
]>,
DiagCategory<"Deprecations">;
More information about the cfe-commits
mailing list