clang-power-tools: Does not work for default console application
Step to reproduce: 1 VS File->New->Project->Console application 2. Select Solution/Project/File, Clang Power Tools->Compile Bug: Start Clang Compile
C:\Users\Mariusz\AppData\Local\Microsoft\VisualStudio\15.0_a46b25cb\Extensions\jdeqctnp.s5e\clang-build.ps1 : Cannot
bind argument to parameter 'aDirectory' because it is an empty string.
At line:1 char:537
+ ... e') -Verbose -parallel -vs-ver 2017 -vs-sku Community -dir '' -litera ...
+ ~~
+ CategoryInfo : InvalidData: (:) [clang-build.ps1], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,clang-build.ps1
Done Clang Compile
Comments:
- According to https://github.com/Caphyon/clang-power-tools/issues/104. I do not see command line for calling clang-build.ps1
- I have seen command line for my other project:
VERBOSE: clang-build.ps1 invocation args:
aVcxprojToCompile = G:\test\LibWin10.vcxproj
aCppToCompile = AdmobHelper.cpp
aVcxprojConfigPlatform = Release|x64
aClangCompileFlags = -Werror -std=c++14 -Wall -fms-compatibility-version=19.10 -fms-compatibility -Wmicrosoft
-Wno-invalid-token-paste -Wno-unknown-pragmas -Wno-unused-variable -Wno-unused-value
Verbose = True
aUseParallelCompile = True
aVisualStudioVersion = 2017
aVisualStudioSku = Community
aDirectory = G:\test
aDisableNameRegexMatching = True
But I do not know how to use it. I would like to just copy clang-build.ps1 command line from Visual Studio output and use it… I would like to see something like below visual studio output:
====Call clang-build.ps1:
C:\Users\Mariusz\AppData\Local\Microsoft\VisualStudio\15.0_a46b25cb\Extensions\jdeqctnp.s5e\clang-build.ps1 param1 param2 param2
.......
===== Call clang.exe
C:\path\clang.exe params
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 18 (11 by maintainers)
I think that command line should be displayed to output before is called. And in case compiling PCH and cpp it will be nice do display both command lines
Yes. It think that VS extension itself should print the clang-build.ps1. Only in that place we really know what we are calling.
OK . When I save files as UTF-8 it works:
C:\full_path\clang.exe all parametersoutput