parse_entity_safety

Function parse_entity_safety 

Source
pub fn parse_entity_safety(entity: &Entity<'_>) -> Option<SafetyMode>
Expand description

Parse safety annotation from entity comment (for clang AST) Bug fix: Only match @safe/@unsafe at the START of comment lines (or after prefix like //, /*, *) This prevents false matches like “No @safe annotation” being treated as @safe