-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Language ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.Check the Milestone for the release in which the fix is or will be available.
Milestone
Description
Type: LanguageService
Can't use module for a variable name when C++ Standard has not been selected
- OS and Version: Windows 10 10.0.17763
- VS Code Version: 1.45.1
- C/C++ Extension Version: 0.28.0
- Single file in workspace
Steps to reproduce
module.cpp
class Module
{
private:
int module;
public:
Module(int module);
~Module();
};
Module::Module(int module)
{
//module expects a ')'
}
c_cpp_properties.json
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
]
}
],
"version": 4
}
Expected behavior
Expect to variable names of module to not be identified as errors
Logs
-------- Diagnostics - 5/20/2020, 10:21:28 AM
Version: 0.28.0
Current Configuration:
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"compilerPath": "C:\\msys64\\mingw32\\bin",
"compilerArgs": [],
"intelliSenseMode": "gcc-x86",
"browse": {
"path": [
"${workspaceFolder}/**"
],
"limitSymbolsToIncludedHeaders": true
}
}
Translation Unit Mappings:
[ C:\Keny\Projects\VSCode Issues\module.cpp ]:
C:\KENY\PROJECTS\VSCODE ISSUES\MODULE.CPP
Translation Unit Configurations:
[ C:\Keny\Projects\VSCode Issues\module.cpp ]:
Process ID: 10264
Memory Usage: 15 MB
Compiler Path: C:\msys64\mingw32\bin\gcc.exe
Includes:
C:\MSYS64\MINGW32\INCLUDE\C++\10.1.0
C:\MSYS64\MINGW32\INCLUDE\C++\10.1.0\I686-W64-MINGW32
C:\MSYS64\MINGW32\INCLUDE\C++\10.1.0\BACKWARD
C:\MSYS64\MINGW32\LIB\GCC\I686-W64-MINGW32\10.1.0\INCLUDE
C:\MSYS64\MINGW32\INCLUDE
C:\MSYS64\MINGW32\LIB\GCC\I686-W64-MINGW32\10.1.0\INCLUDE-FIXED
C:\MSYS64\MINGW32\I686-W64-MINGW32\INCLUDE
Defines:
_DEBUG
UNICODE
_UNICODE
Standard Version: c++20
IntelliSense Mode: gcc-x86
Other Flags:
--g++
--gnu_version=100100
Total Memory Usage: 15 MB
Metadata
Metadata
Assignees
Labels
Language ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.Check the Milestone for the release in which the fix is or will be available.