In Visual Studio (C++), is there a way to easily find duplicate headers that are defined in .cpp files?
I’m also trying to find ways to detect this situation:
- A includes B includes C
- A includes C
- => A doesn’t need to include C
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want to detect this situation you could add this macro to the top of every file. Substitute A for the name of the file