Comments (7)
Oke, it seems the Invoke CompileCommand via Tools doesn't work. When right clicking on a file in the editor and using the compile command it does produce output.
- Visual studio default include paths are not recognized? For example i get compile errors due to c:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt;c:\Program Files (x86)\Windows Kits\8.1\Include\um;c:\Program Files (x86)\Windows Kits\8.1\Include\shared\ not being searched? I already noticed the option to add include directories, but if you correctly parse visual studio projects and MSVC version you should be able to detect this? I did make an extension recently, so i am quite certain you are missing VS default include paths.
- Forced includes are not considered it seems. Its a visual studio option under C/C++ -> Advanced -> Forced include file. We use it for precompiled headers and a file which contains some macro's. In my case the macro's are not recognized now.
For both note that propertysheets need to be parsed recursively if you do this via PowerShell. At least in our case we have propertysheets within propertysheets! Yey!
Another small suggestion: document somewhere which commands are available and where. I just noticed you can do it via solution explorer right click on file, right click on a file in the editor and edit settings via Tools -> Options. Thanks for the big effort!
from clang-power-tools.
The error im getting:
Start Clang Compile
[ INFO ] WILL PROCESS PROJECTS:
TidyRepro.vcxproj
[ INFO ] 1. PROCESSING PROJECT D:\src\TidyRepro\TidyRepro\TidyRepro.vcxproj
clang++.exe: warning: treating 'c-header' input as 'c++-header' when in C++ mode, this behavior is deprecated [-Wdeprecated]
clang++.exe: warning: argument unused during compilation: '-e mit-pch' [-Wunused-command-line-argument]
In file included from D:\src\TidyRepro\TidyRepro\stdafx.h:8:
D:\src\TidyRepro\TidyRepro/targetver.h:8:10: fatal error: 'SDKDDKVer.h' file not found
#include <SDKDDKVer.h>
^~~~~~~~~~~~~
1 error generated.
Errors encountered during PCH creation
Done Clang Compile
In the end i didn't even need to do anything, this is just the default visual studio template.
from clang-power-tools.
from clang-power-tools.
Issue .2, regarding force includes, was also fixed
from clang-power-tools.
Hi,
Thanks for the feedback.
For [2] I created a new issue: #39 and we're going to address it soon.
from clang-power-tools.
For [1] we need some clarifications.
Can you send us a vcxproj file reproducing the issue described ?
from clang-power-tools.
Thanks for the attachment @jcageman. We'll look into it.
from clang-power-tools.
Related Issues (20)
- disable "illegal character encoding" error?
- Format adds an unnecessary empty line at the end of the file
- Does this tool support VS 2019? Why it finds on VS 2022 instead of 2019?
- Ability to Execute Clang-Tidy Workloads without Applying .clang-tidy Configuration HOT 2
- Not work with wdk HOT 5
- error: definition of macro differs between the precompiled header ('\\') and the command line(')" HOT 1
- Detection of .clang-tidy file not working HOT 5
- modernize-use-override IgnoreDestructors HOT 2
- When exporting the compilation database, the -imsvc compiler option is not recognized HOT 1
- Add LLVM 18.1.2
- could you please update the https://github.com/Caphyon/clang-format-editor HOT 2
- Several Tidy Checks are missing from the list (LLVM 18.1.2) HOT 2
- Interactive mode for multiple files
- Since CPT 2024.4 Clang Tidy Checks are no longer sorted alphabetically HOT 1
- Files to ignore - File picker HOT 4
- Compile - ignore third-party project files
- Is there a way to kill "release notes" pop up?
- NuGet Packages out-of-date
- Clang Format Editor missing Publisher HOT 3
- Missing context menu item after install. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clang-power-tools.