Skip to content

17.0.6 misc-include-cleaner requires header providing "true"/"false" #85323

Open
@artemisveizi

Description

@artemisveizi

I think this is a false positive. My understanding is that true and false are built in to the language, and should not need an explicit #include. I get the following warnings from clang-tidy:

pmanager.h:47:24: warning: no header providing "true" is directly included [misc-include-cleaner]
   15 |                 return true;
      |                        ^
pmanager:50:16: warning: no header providing "false" is directly included [misc-include-cleaner]
   15 |         return false;
      |                ^

Just to try and resolve this, I #include . This does not resolve the warnings above, and instead adds the warning: "included header cstdbool is not used directly [misc-include-cleaner]"

This seems like an error, based on my understanding of the documentation.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions