[clang] [clang][Sema] Suggest/Hint Standard Library Include File (PR #146227)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 1 06:22:00 PDT 2025
================
@@ -5990,6 +5990,10 @@ def err_template_expansion_into_fixed_list : Error<
"template|concept}0">;
def note_parameter_type : Note<
"parameter of type %0 is declared here">;
+def note_standard_lib_include_suggestion : Note<
+ "maybe try to include %0; '%1' is defined in %0">;
+def note_standard_lib_version : Note<
+ "'%0' is a %1 feature">;
----------------
erichkeane wrote:
We should probably be doing something more like:
"'%0::%1' is a %enum_select..." for this.
https://github.com/llvm/llvm-project/pull/146227
More information about the cfe-commits
mailing list