File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
clang/include/clang/Basic Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -874,4 +874,9 @@ def warn_drv_openacc_without_cir
874
874
: Warning<"OpenACC directives will result in no runtime behavior; use "
875
875
"-fclangir to enable runtime effect">,
876
876
InGroup<SourceUsesOpenACC>;
877
+
878
+ def warn_drv_sanitize_trap_mismatch : Warning<
879
+ "-fsanitize-trap=%0 has no effect because the matching sanitizer is not enabled; "
880
+ "did you mean to pass \"-fsanitize=%0\" as well?">,
881
+ InGroup<SanitizeTrapMismatch>;
877
882
}
Original file line number Diff line number Diff line change @@ -1752,3 +1752,6 @@ def ExplicitSpecializationStorageClass : DiagGroup<"explicit-specialization-stor
1752
1752
1753
1753
// A warning for options that enable a feature that is not yet complete
1754
1754
def ExperimentalOption : DiagGroup<"experimental-option">;
1755
+
1756
+ // Warnings for sanitizer arguments
1757
+ def SanitizeTrapMismatch : DiagGroup<"sanitize-trap-mismatch">;
You can’t perform that action at this time.
0 commit comments