Skip to content

A27-0-4: C-Style strings used when accessing __func__ #302

Closed
@lcartey

Description

@lcartey

Affected rules

  • A27-0-4
  • A18-1-1

Description

__func__ triggers the use of C-Style strings and arrays because it generates a local variable called __func__ with a c-style string/array as its initializer. We want to exclude this as it is defined outside of the control of the user, and is the standard way to access the name of the enclosing function,

Example

__func__; // triggers c-style arrays and strings

Metadata

Metadata

Assignees

Labels

false positive/false negativeAn issue related to observed false positives or false negatives.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions