Comments (2)
Thanks for reporting this issue. It looks like what you are experiencing is by-design behavior. Due to the limitations of what we can differentiate header files by, you can't use the filename as the relative path in this case. It would be more correct to provide the folder that each file resides in as well. See the example below:
Does this help you with your issue?
from vscode-cpptools.
@Saitama10000 To add more info, I believe it's caused by usage of "${workspaceFolder}/**"
in which the include order is non-deterministic. You may be able to workaround the issue by adding a path to your include path before that to cause that path to get precedence.
from vscode-cpptools.
Related Issues (20)
- launch.json HOT 1
- cpptools IntelliSense Updating and Parsing Wrokspace speed is much slower than previous versions HOT 2
- Intellisense fails to find system headers in 1.20.5 (possible cmake integration issue?) HOT 12
- Make hover menu show documentation from source file instead of header file if it's written in the Doxygen format HOT 1
- Goto Definition takes a couple of seconds each time to complete the jump HOT 3
- Detection of clang-format version fails in SSH remote session when clang-format is a symlink
- Cannot deduce class template arguments HOT 1
- Display entire definition line when pointing at variable HOT 2
- Feature Request: Suggest [nodiscard] as a C++ Keyword HOT 1
- Search freezes with cpptools enabled HOT 3
- [opensuse] language server crashes HOT 4
- Error: Attempting to use languageClient before initialized HOT 3
- The 'auto' keyword is not colored HOT 1
- Inconsistent naming of command options for "IntelliSense" configurations
- includePath does not support ${fileDirname} HOT 4
- Code analysis fails to get configured for non-open files the 1st time it's run
- When a function is referenced via a macro definition, the referencing function cannot find it HOT 1
- Support additional visualizers directories
- Not All Doxygen Comment Blocks Supported 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 vscode-cpptools.