We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a7420c commit 291cc0aCopy full SHA for 291cc0a
cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/TypeFlow.qll
@@ -120,10 +120,13 @@ private module Input implements TypeFlowInput<Location> {
120
* calls to this function.
121
*/
122
private predicate isPrivate(Function func) {
123
+ // static functions have internal linkage
124
func.isStatic()
125
or
- func.getNamespace().getParentNamespace*().isInline()
126
+ // anonymous namespaces have internal linkage
127
+ func.getNamespace().getParentNamespace*().isAnonymous()
128
129
+ // private member functions are only called internally from inside the class
130
func.(MemberFunction).isPrivate()
131
}
132
0 commit comments