Lines Matching full:function

1 // RUN: %check_clang_tidy %s readability-function-cognitive-complexity %t -- \
3 // RUN: {readability-function-cognitive-complexity.Threshold: 0, \
4 // RUN: readability-function-cognitive-complexity.DescribeBasicIncrements: "false"}}'
5 // RUN: %check_clang_tidy -check-suffix=THRESHOLD5 %s readability-function-cognitive-complexity %t …
7 // RUN: {readability-function-cognitive-complexity.Threshold: 5, \
8 // RUN: readability-function-cognitive-complexity.DescribeBasicIncrements: "false"}}'
9 // RUN: %check_clang_tidy -check-suffix=IGNORE-MACROS %s readability-function-cognitive-complexity …
11 // RUN: {readability-function-cognitive-complexity.Threshold: 0, \
12 // RUN: readability-function-cognitive-complexity.IgnoreMacros: "true", \
13 // RUN: readability-function-cognitive-complexity.DescribeBasicIncrements: "false"}}'
14 // RUN: %check_clang_tidy -check-suffix=GLOBAL-IGNORE-MACROS %s readability-function-cognitive-comp…
16 // RUN: {readability-function-cognitive-complexity.Threshold: 0, \
18 // RUN: readability-function-cognitive-complexity.DescribeBasicIncrements: "false"}}'
21 …S: :[[@LINE-1]]:6: warning: function 'func_of_complexity_4' has cognitive complexity of 4 (thresho… in func_of_complexity_4()
22 …S: :[[@LINE-2]]:6: warning: function 'func_of_complexity_4' has cognitive complexity of 4 (thresho… in func_of_complexity_4()
23 …S: :[[@LINE-3]]:6: warning: function 'func_of_complexity_4' has cognitive complexity of 4 (thresho… in func_of_complexity_4()
43 …S: :[[@LINE-1]]:6: warning: function 'function_with_macro' has cognitive complexity of 11 (thresho… in function_with_macro()
44 …5: :[[@LINE-2]]:6: warning: function 'function_with_macro' has cognitive complexity of 11 (thresho… in function_with_macro()
45 …S: :[[@LINE-3]]:6: warning: function 'function_with_macro' has cognitive complexity of 1 (threshol… in function_with_macro()
46 …S: :[[@LINE-4]]:6: warning: function 'function_with_macro' has cognitive complexity of 11 (thresho… in function_with_macro()
63 …NOTES: :[[@LINE-1]]:6: warning: function 'func_macro_1' has cognitive complexity of 2 (threshold 0… in func_macro_1()
64 …ACROS: :[[@LINE-2]]:6: warning: function 'func_macro_1' has cognitive complexity of 1 (threshold 0… in func_macro_1()
65 …ACROS: :[[@LINE-3]]:6: warning: function 'func_macro_1' has cognitive complexity of 2 (threshold 0… in func_macro_1()
73 …NOTES: :[[@LINE-1]]:6: warning: function 'func_macro_2' has cognitive complexity of 4 (threshold 0… in func_macro_2()
74 …ACROS: :[[@LINE-2]]:6: warning: function 'func_macro_2' has cognitive complexity of 1 (threshold 0… in func_macro_2()
75 …ACROS: :[[@LINE-3]]:6: warning: function 'func_macro_2' has cognitive complexity of 4 (threshold 0… in func_macro_2()
80 // arguments are ignored. Optimally, macros should be treated like function in func_macro_2()
82 // complexity of this function is 2 (1 for the if statement above + 1 for in func_macro_2()