Skip to content

Exclude some clang-tidy checks#793

Merged
JF002 merged 1 commit intoInfiniTimeOrg:developfrom
Riksu9000:tidy_warnings
Oct 30, 2021
Merged

Exclude some clang-tidy checks#793
JF002 merged 1 commit intoInfiniTimeOrg:developfrom
Riksu9000:tidy_warnings

Conversation

@Riksu9000
Copy link
Copy Markdown
Contributor

The first check shows a warning on almost every include. Doesn't seem very helpful.
The second one says to use dynamic_cast, but we can't because we use -fno-rtti

I don't see these warnings when running clang-tidy from CLI, but they're shown in my editor. Not sure why that is, but disabling them should be fine right?

https://clang.llvm.org/extra/clang-tidy/checks/llvmlibc-restrict-system-libc-headers.html
https://clang.llvm.org/extra/clang-tidy/checks/cppcoreguidelines-pro-type-static-cast-downcast.html

@Avamander
Copy link
Copy Markdown
Collaborator

Not sure why that is,

Because you have a lower version in CLI than your editor.

@JF002 JF002 added this to the 1.7.0 milestone Oct 30, 2021
@JF002 JF002 merged commit 4cf746f into InfiniTimeOrg:develop Oct 30, 2021
@Riksu9000 Riksu9000 deleted the tidy_warnings branch December 5, 2022 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants