Comments (3)
Hi @leidegre I can repro this issue with 1.20.5, but it appears to be fixed in the latest prerelease (1.21.0). Closing as fixed.
from vscode-cpptools.
Could you provide the code snippet that is causing the issue?
Does this issue persist when all other extension except for C/C++ are disabled?
from vscode-cpptools.
If I try to goto the definition of the _countof macro I end up here, in vcruntime.h. __crt_countof
happens to be the same length as the incorrectly colored tokens, so it is somehow mistaking _countof
for __crt_countof
(it's five additional characters that gets colored incorrectly).
#ifdef __cplusplus
extern "C++"
{
template <typename _CountofType, size_t _SizeOfArray>
char (*__countof_helper(_UNALIGNED _CountofType (&_Array)[_SizeOfArray]))[_SizeOfArray];
#define __crt_countof(_Array) (sizeof(*__countof_helper(_Array)) + 0)
}
#else
#define __crt_countof(_Array) (sizeof(_Array) / sizeof(_Array[0]))
#endif
The actual definition of _countof
is in stdlib.h and looks like this
#ifndef _countof
#define _countof __crt_countof
#endif
This happens with all other extensions disabled.
from vscode-cpptools.
Related Issues (20)
- Enable switching between different workspace symbol search implementations using C_Cpp.experimentalFeatures HOT 1
- The language server crashed. Restarting... error when opening a .cpp file HOT 10
- Extension overrides C/C++ standard settings from configuration HOT 1
- Request to let some functions to work for inactive regions, too. HOT 2
- Incorrect IntelliSense Error on SSH remote: identifier "Point" is undefined HOT 9
- Add Invalid Setting Warnings to Setting Validation Logic
- Notification of breaking api change with v1.92 release of VS Code HOT 2
- C:\MinGW\bin
- Incorrect Doxygen comments generated HOT 4
- Language server crashing HOT 2
- C++ language services support for Copilot Chat Code Blocks HOT 1
- File with non-standard extension causes editor's Language Mode to keep reverting back to C HOT 1
- Add LLDB and MIEngine hardware breakpoint support
- cannot resolve namespace llvm on macos VS code HOT 1
- Missing all text on extension readme image HOT 1
- The debugger doesn't hit the breakpoints set in Editor
- could not be opened because the file was not found HOT 11
- cpptools 1.21.x sometimes crashes repeatedly in modules_cleanup HOT 1
- Find All References may fail to find references after a rename
- GCC stack usage 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.