question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:25 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
serenity320commented, Feb 25, 2019

I’m having a hard time right now because of the same problem. I’m now using nuget, and property sheets of nuget packages add their include directories to C/C++ > General > Additional Include Directory. I hope it will be resolved. 😃

1reaction
taegukcommented, Jan 30, 2018

@cpp-red-lion

Use a custom .clang-tidy file in the directory you want to exclude, specifying no checks to perform there.

Oh, Looks so awesome idea. I’ll have a try 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found