CodeQL library for C/C++
codeql/cpp-all 0.7.2 ( changelog , source )
Search

Member predicate DataFlow :: Configuration :: getAFeature

Gets a data flow configuration feature to add restrictions to the set of valid flow paths.

  • FeatureHasSourceCallContext: Assume that sources have some existing call context to disallow conflicting return-flow directly following the source.
  • FeatureHasSinkCallContext: Assume that sinks have some existing call context to disallow conflicting argument-to-parameter flow directly preceding the sink.
  • FeatureEqualSourceSinkCallContext: Implies both of the above and additionally ensures that the entire flow path preserves the call context.

These features are generally not relevant for typical end-to-end data flow queries, but should only be used for constructing paths that need to somehow be pluggable in another path context.

FlowFeature getAFeature ( )