================
@@ -2806,10 +2806,29 @@ void Sema::clearDocumentationDiagsCache() {
   DocDiagsExactComputed = 0;
 }
 
+bool Sema::areDocumentationDiagsSourceLocationDependent() {
+  // Documentation diagnostics are not location-dependent, except if a
+  // (location-dependent) warning suppression mapping is active.
+  if (!DocDiagsInSuppressionMapping) {
+    if (Diags.hasDiagSuppressionMapping()) {
+      SmallVector<diag::kind, 64> DocDiags;
+      for (StringRef Group : {"documentation", "documentation-pedantic"})
----------------
zmodem wrote:

Can these get out-of-sync with the group names and other parts of the code? Is 
there some more symbolic way to refer to them, how does other code do it?

https://github.com/llvm/llvm-project/pull/244714
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to