Thanks to visit codestin.com
Credit goes to github.com

Skip to content

False positive for min and max #296

@takenori-y

Description

@takenori-y

Version: 2.0.0

The following code

// Copyright 2024 test
int main() {
  int max(0);
  return 0;
}

causes the following error.

test.cc:3:  Add #include <algorithm> for max  [build/include_what_you_use] [4]
Done processing test.cc
Total errors found: 1

min has the same issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions