@@ -17,6 +17,7 @@ use crate::clang_ql::matchers::IsDeletedMethodMatcher;
1717use crate :: clang_ql:: matchers:: IsDestructorMatcher ;
1818use crate :: clang_ql:: matchers:: IsFunctionDeclaration ;
1919use crate :: clang_ql:: matchers:: IsFunctionDefination ;
20+ use crate :: clang_ql:: matchers:: IsInlineFunction ;
2021use crate :: clang_ql:: matchers:: IsMethodMatcher ;
2122use crate :: clang_ql:: matchers:: IsMoveConstructorMatcher ;
2223use crate :: clang_ql:: matchers:: IsPureVirtualMatcher ;
@@ -38,6 +39,7 @@ pub(crate) fn register_function_matchers_functions(
3839 map. insert ( "m_function_def" , match_function_defination) ;
3940 map. insert ( "m_template_function" , match_template_function) ;
4041 map. insert ( "m_conversion_function" , match_conversion_function) ;
42+ map. insert ( "m_inlined" , match_inlined_function) ;
4143 map. insert ( "m_virtual" , match_virtual_function) ;
4244 map. insert ( "m_pure_virtual" , match_pure_virtual_function) ;
4345 map. insert ( "m_static" , match_static_function) ;
@@ -84,6 +86,11 @@ pub(crate) fn register_function_matchers_signatures(map: &mut HashMap<&'static s
8486 Signature :: with_return ( Box :: new ( FunctionMatcherType ) ) ,
8587 ) ;
8688
89+ map. insert (
90+ "m_inlined" ,
91+ Signature :: with_return ( Box :: new ( FunctionMatcherType ) ) ,
92+ ) ;
93+
8794 map. insert (
8895 "m_conversion_function" ,
8996 Signature :: with_return ( Box :: new ( FunctionMatcherType ) ) ,
@@ -190,6 +197,11 @@ fn match_conversion_function(_values: &[Box<dyn Value>]) -> Box<dyn Value> {
190197 Box :: new ( FunctionMatcherValue :: new ( matcher) )
191198}
192199
200+ fn match_inlined_function ( _values : & [ Box < dyn Value > ] ) -> Box < dyn Value > {
201+ let matcher = Box :: new ( IsInlineFunction ) ;
202+ Box :: new ( FunctionMatcherValue :: new ( matcher) )
203+ }
204+
193205fn match_virtual_function ( _values : & [ Box < dyn Value > ] ) -> Box < dyn Value > {
194206 let matcher = Box :: new ( IsVirtualMatcher ) ;
195207 Box :: new ( FunctionMatcherValue :: new ( matcher) )
0 commit comments