[PATCH] D58365: [attributes] Add a MIG server routine attribute.

Artem Dergachev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 19 11:23:07 PST 2019


NoQ marked an inline comment as done.
NoQ added inline comments.


================
Comment at: clang/include/clang/Basic/AttrDocs.td:4047-4048
+that have their return value of type ``kern_return_t`` unconditionally returned
+from the routine. The attribute can be applied to C++ methods, and in this case
+it will be automatically applied to overrides if the method is virtual.
+}];
----------------
Is there a way to enforce this automagically via adding some feature to the attribute? Or should i enforce it manually by teaching Static Analyzer to scan the overridden methods when looking for the attribute, like i did in D58397?


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D58365/new/

https://reviews.llvm.org/D58365





More information about the cfe-commits mailing list