Cannot perform tidy to header file.
See original GitHub issue// example.h
class A
{
public:
virtual ~A() = default;
virtual void func() = 0;
};
class B : public A
{
public:
void func(); // 'override' is missing.
};
// example.cpp
#include "example.h"
void B::func() {}
I can’t perform tidy to header file. I can only perform it to source file. But the tidy operation to the source file cannot detect the problem that ‘override’ keyword is missing in the header file.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:25 (10 by maintainers)
Top Results From Across the Web
Getting clang-tidy to fix header files - c++
The only workaround is to run clang-tidy -fix on each compilation unit sequentially as this answer suggests, so it never sees an unfixed...
Read more >clang-tidy cannot locate headers?
The project I'm working on is configured to run clang-tidy per file, and sometimes yield an "error" on file inclusions (but builds ...
Read more >clang-tidy doesn't recognize standard header in .h file, only ...
The problem is that I have clang-tidy configured to check my code. If the header files are .hpp files everything is fine.
Read more >Clang-Tidy — Extra Clang Tools 18.0.0git documentation
clang-tidy is a clang-based C++ “linter” tool. Its purpose is to provide an extensible framework for diagnosing and fixing typical programming errors, ...
Read more >modernize-deprecated-headers - clang-tidy
clang-tidy cannot know if the header file included by the currently analyzed C++ source file is not included by any other C source...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m having a hard time right now because of the same problem. I’m now using
nuget
, and property sheets ofnuget
packages add their include directories toC/C++ > General > Additional Include Directory
. I hope it will be resolved. 😃@cpp-red-lion
Oh, Looks so awesome idea. I’ll have a try 😃