Error message because of empty PCH directory
See original GitHub issueI don’t know if this is a bug or not, but when using clang-tidy on our projects (that is, single files from our projects), I get the following error/warning message (“stack trace” is attached):
Get-ProjectStdafxDir : Cannot bind argument to parameter 'pchHeaderName' because it is an empty string.
Should I be concerned about this or can I ignore it? Or, better yet, can I fix it? I’ll probably not be able to change the VS project files, since they are generated by our build system.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How to fix PCH error? - xcode
This is often a caching problem. Usually it can be resolved by holding down the Option key and choosing Product > Clean Build...
Read more >PCH not detected using Clang and CMake 3.16 · Issue #539
cxx is empty because CMake needs a source file in order to compile the pch file. In the second case, cmake_pch.hxx.pch is used...
Read more >iOS PCH File missing from project folder
I see a Precompiled header file in the cache area under /var which has the correct date. Why is it not being created...
Read more >Use ROOT without CLing
Hi, I develop a soft using ROOT as a library and I need to deploy it on a CentOS platform. So I used...
Read more >Precompiled Header Files
Precompiled header consistency rules. Because PCH files contain information about the machine environment and memory address information about ...
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
Attached is a sample project that shows the error: libdetours.zip
I used an existing project and stripped it down, hence the name. Hope this helps.
Looks like your projects follow an unsual pattern: not including
stdafx.h
in the PCH CPP and specifying it as aforce include
in the .vcxproj file, specifically for the PCH CPP.We’ve updated our PCH detection to handle this case as well. An updated version of ClangPowerTools (
v4.1
) is just about to be released; it will include this fix as well.Thank you for your feedback.