vscode-cpptools icon indicating copy to clipboard operation
vscode-cpptools copied to clipboard

[Bug] IntelliSense autocomplete incorrectly suggests "pre" and "post" as "C++ keyword"

Open ScrapW opened this issue 2 months ago • 5 comments

Type: Bug

IntelliSense autocomplete incorrectly suggests "pre" and "post" as "C++ keyword". This behavior did not occur in version 1.27.7.

Image Image

Extension version: 1.28.3 VS Code version: Code 1.105.1 (7d842fb85a0275a4a8e4d7e040d2625abbf7f084, 2025-10-14T22:33:36.618Z) OS version: Windows_NT x64 10.0.26100

ScrapW avatar Oct 30 '25 10:10 ScrapW

@ScrapW This is from https://en.cppreference.com/w/cpp/language/functions/function_contract_specifiers .

We're tracking potentially hiding C++26 keywords when that standard isn't used in https://github.com/microsoft/vscode-cpptools/issues/13984 .

sean-mcmanus avatar Oct 30 '25 11:10 sean-mcmanus

#include using namespace std; int main (){ cout <<"hello word"; return 0; }

altafali2034-star avatar Oct 30 '25 14:10 altafali2034-star

@altafali2034-star Why did you post that?

cD1rtX3 avatar Oct 30 '25 16:10 cD1rtX3

@cD1rtX3 I assume it's just some random spam post.

sean-mcmanus avatar Oct 30 '25 16:10 sean-mcmanus

hello word

cD1rtX3 avatar Oct 30 '25 16:10 cD1rtX3