Coder Social home page Coder Social logo

Comments (7)

jcageman avatar jcageman commented on July 17, 2024 2

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.

  1. 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.
  2. 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.

jcageman avatar jcageman commented on July 17, 2024 1

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.

TidyRepro.zip

from clang-power-tools.

hero101111 avatar hero101111 commented on July 17, 2024 1

Fixed issue

from clang-power-tools.

hero101111 avatar hero101111 commented on July 17, 2024 1

Issue .2, regarding force includes, was also fixed

from clang-power-tools.

cpp-red-lion avatar cpp-red-lion commented on July 17, 2024

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.

cpp-red-lion avatar cpp-red-lion commented on July 17, 2024

For [1] we need some clarifications.
Can you send us a vcxproj file reproducing the issue described ?

from clang-power-tools.

cpp-red-lion avatar cpp-red-lion commented on July 17, 2024

Thanks for the attachment @jcageman. We'll look into it.

from clang-power-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.