-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Parameter hint" problem #902
Comments
As a workaround, you can get parameter hints a 2nd time by doing Ctrl+Shift+Space after the opening (, for the ("test", ) case. Parameter hints with direct initialization doesn't even work in VS 2017, but it works with the {} initialization syntax (we still don't). We don't yet have the semantic aware completion for non-prefixed words (only after -> . ::). |
@sean-mcmanus Thank you for your answer #819 also has the same problem Another question
#include <windows.h>
#include <iostream>
int main(){
return 0;
}
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceRoot}",
"D:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.4.0/include",
"D:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.4.0/include-fixed",
"D:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.4.0/../../../../x86_64-w64-mingw32/include",
"D:/mingw64/lib/gcc/../../x86_64-w64-mingw32/include/c++",
"D:/mingw64/lib/gcc/../../x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32",
"D:/mingw64/lib/gcc/../../x86_64-w64-mingw32/include/c++/backward"
],
"defines": [
"__GNUC__=5",
"__cdecl=__attribute__((__cdecl__))"
],
"intelliSenseMode": "clang-x64",
"browse": {
"path": [
"${workspaceRoot}",
"D:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.4.0/include",
"D:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.4.0/include-fixed",
"D:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.4.0/../../../../x86_64-w64-mingw32/include",
"D:/mingw64/lib/gcc/../../x86_64-w64-mingw32/include/c++",
"D:/mingw64/lib/gcc/../../x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32",
"D:/mingw64/lib/gcc/../../x86_64-w64-mingw32/include/c++/backward"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
}
}
],
"version": 2
} How should I solve this problem? |
I don't think windows.h is intended to be compiled with the clang-x64 compiler. I assume it requires the msvc-x64 intelliSenseMode set. I thought mingw was meant for compiling Linux code and not Windows OS code. |
I can take a look at this. windows.h ships with MinGW and you can create Windows apps with it. |
@sean-mcmanus Thank you for your answer, but I can not fully understand what you said. |
@lh123 Yeah, ignore what I said. Bob is more familiar with MinGW, so he'll investigate. |
@bobbrow In the latest version, I found that adding |
I'm so sorry I dropped the ball on this. We've seen a large increase in the number of issues reported per week as more people start using the extension and it's getting harder to keep track of them all. |
So should the MinGW docs be updated to include the __stdcall definition? https://github.com/Microsoft/vscode-cpptools/blob/master/Documentation/LanguageServer/MinGW.md |
@sean-mcmanus If this is correct, I think the MinGW docs should be updated |
I was starting to look at this before I took a few days off. MinGW-w64 seems to behave differently than my other MinGW installation (which defines __stdcall in the Windows headers without manual intervention by the c_cpp_properties.json file). I'm still looking at this when I'm not getting pulled in to other issues, but I haven't settled on a final answer yet. We may need to have some footnotes for the different distributions of MinGW. |
@bobbrow I think you can use the |
@lh123 Thanks for the info. Our pending update will try to get the default includePath from the compiler, but the defines might not be till a later update. |
Parameter hint works only once when i open paren. So i noticed that smart pointer constructor and their make don't show object constructor parameters. |
This should be fixed with version 0.14.3 |
using namespace std
has been commented outSorry my English is very bad
The text was updated successfully, but these errors were encountered: