Author: Arseniy Zaostrovnykh
Date: 2026-04-02T10:52:46Z
New Revision: 3468ee025ed5934f5fb224b497da15227c3de447

URL: 
https://github.com/llvm/llvm-project/commit/3468ee025ed5934f5fb224b497da15227c3de447
DIFF: 
https://github.com/llvm/llvm-project/commit/3468ee025ed5934f5fb224b497da15227c3de447.diff

LOG: fixup! [publish-sphinx-docs] Forward CTU-import failure conditions

Fix the Sphinx build failure
https://lab.llvm.org/buildbot/#/builders/45/builds/24533
introduced in e3cfcf48d0c966f163c9807839a900936af0e759 (PR #189064)
by using a dedicated group for CTU remarks.

Added: 
    

Modified: 
    clang/include/clang/Basic/DiagnosticCrossTUKinds.td
    clang/include/clang/Basic/DiagnosticGroups.td
    clang/test/Analysis/ctu/diag/load-threshold.cpp

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/Basic/DiagnosticCrossTUKinds.td 
b/clang/include/clang/Basic/DiagnosticCrossTUKinds.td
index 7785751651dfb..13498a7f16ac8 100644
--- a/clang/include/clang/Basic/DiagnosticCrossTUKinds.td
+++ b/clang/include/clang/Basic/DiagnosticCrossTUKinds.td
@@ -41,7 +41,7 @@ def err_ctu_import_failure: Error<
 
 def remark_ctu_import_threshold_reached: Remark<
   "reached a the CTU-import threshold before trying to import definition">,
-  InGroup<CrossTU>;
+  InGroup<CrossTURemarks>;
 
 def warn_ctu_incompat_lang : Warning<
   "imported AST from '%0' had been generated for a 
diff erent language, "

diff  --git a/clang/include/clang/Basic/DiagnosticGroups.td 
b/clang/include/clang/Basic/DiagnosticGroups.td
index 6e82203d858f5..dc7280c66ea79 100644
--- a/clang/include/clang/Basic/DiagnosticGroups.td
+++ b/clang/include/clang/Basic/DiagnosticGroups.td
@@ -1800,6 +1800,7 @@ def BoundsSafetyCountedByEltTyUnknownSize :
 
 // A group for cross translation unit static analysis related warnings.
 def CrossTU : DiagGroup<"ctu">;
+def CrossTURemarks : DiagGroup<"ctu-remarks">;
 
 def CTADMaybeUnsupported : DiagGroup<"ctad-maybe-unsupported">;
 

diff  --git a/clang/test/Analysis/ctu/diag/load-threshold.cpp 
b/clang/test/Analysis/ctu/diag/load-threshold.cpp
index 4353dab60d0cd..222dac6b98b78 100644
--- a/clang/test/Analysis/ctu/diag/load-threshold.cpp
+++ b/clang/test/Analysis/ctu/diag/load-threshold.cpp
@@ -25,7 +25,7 @@
 // RUN:   -analyzer-config experimental-enable-naive-ctu-analysis=true \
 // RUN:   -analyzer-config ctu-dir=%t \
 // RUN:   -analyzer-config ctu-import-cpp-threshold=1 \
-// RUN:   -Rctu \
+// RUN:   -Rctu-remarks \
 // RUN:   -verify %s
 
 // foo is loaded successfully (first load, within threshold).


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

Reply via email to