We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96098c5 commit 156a174Copy full SHA for 156a174
cpp/ql/src/Best Practices/Hiding/DeclarationHidesParameter.ql
@@ -29,6 +29,11 @@ Function getConstructedFrom(Function f) {
29
* This should not happen in a single application but since we
30
* have a system wide view it is likely to happen for instance for
31
* the main function.
32
+ *
33
+ * Note: we use `getConstructedFrom` to ensure that we look at template
34
+ * functions rather than their instantiations. We get better results this way
35
+ * as the instantiation is artificial and may have inherited parameter names
36
+ * from the declaration rather than the definition.
37
*/
38
ParameterDeclarationEntry functionParameterNames(Function f, string name) {
39
exists(FunctionDeclarationEntry fe |
0 commit comments