Skip to content

Add a clang tidy check for filesystem path usage #1055

@pifopi

Description

@pifopi

Add something like this

Checks: '-*,bugprone-forbidden-functions'
CheckOptions:

  • key: bugprone-forbidden-functions.ForbiddenFunctions
    value: 'std::filesystem::path::path'
  • key: bugprone-forbidden-functions.ForbiddenFunctionsMessage
    value: 'Direct construction of std::filesystem::path from std::string is banned due to Windows Unicode issues. Use XXXXX instead.'

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions