[clang] Warning for incorrect useof 'pure' attribute (PR #78200)

Chuanqi Xu via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 18 01:03:38 PST 2024


================
@@ -692,6 +692,13 @@ def warn_maybe_falloff_nonvoid_function : Warning<
 def warn_falloff_nonvoid_function : Warning<
   "non-void function does not return a value">,
   InGroup<ReturnType>;
+def warn_const_attr_with_pure_attr : Warning<
+  "'const' attribute imposes more restrictions, 'pure' attribute ignored">,
+  InGroup<IgnoredAttributes>;
----------------
ChuanqiXu9 wrote:

While this is not required, **incorrect** is too broad. e.g., a lot of clang's change  can be summarized as fixing incorrect  implementation for C++.

https://github.com/llvm/llvm-project/pull/78200


More information about the cfe-commits mailing list