]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/cp/cp-lang.c
Support string locations for C++ in -Wformat (PR c++/56856)
[thirdparty/gcc.git] / gcc / cp / cp-lang.c
index 26a1e6d29cf6f2c97611ead62570d17c5965b838..a0b0102f798f26907f1682626fe6d69939053fe0 100644 (file)
@@ -83,6 +83,9 @@ static tree cxx_enum_underlying_base_type (const_tree);
 #define LANG_HOOKS_RUN_LANG_SELFTESTS selftest::run_cp_tests
 #endif /* #if CHECKING_P */
 
+#undef LANG_HOOKS_GET_SUBSTRING_LOCATION
+#define LANG_HOOKS_GET_SUBSTRING_LOCATION c_get_substring_location
+
 /* Each front end provides its own lang hook initializer.  */
 struct lang_hooks lang_hooks = LANG_HOOKS_INITIALIZER;