ReSharper C++ 支持单下划线关键字
ReSharper C++ support for single-underscore keywords
我正在将 ReSharper 用于一个大型遗留 C/C++ 项目。该项目恰好使用了单下划线版本的 ANSI 关键字,例如 _int64 和 _int32。 ReSharper 不识别这些类型,所以我有成千上万的红色波浪线。
例如,在一行中:
unsigned _int64 x;
当我将鼠标悬停在生成的红色波浪形上时,我看到:
"(Local variable) unsigned _int64"
"Local variable '_int64' is never used"
"Expected ';'"
如果我将其更改为双下划线 __int64 那么一切都很好,但我不想为了让 ReSharper 满意而进行数千次更改。
,Microsoft 支持关键字的单下划线和双下划线版本
For backward compatibility, single-underscore versions of all the
double-underscored keywords except __except, __finally, __leave, and
__try are supported.
是否有任何方法可以在 ReSharper C++ 中启用对单下划线类型的支持?
从 JetBrains 得到了明确的答复:
There's no way to enable it at the moment, but we'll soon add support
for single-underscore keywords (hopefully in 2017.1 or a patch
release). You can follow
https://youtrack.jetbrains.com/issue/RSCPP-18673 to receive updates.
我正在将 ReSharper 用于一个大型遗留 C/C++ 项目。该项目恰好使用了单下划线版本的 ANSI 关键字,例如 _int64 和 _int32。 ReSharper 不识别这些类型,所以我有成千上万的红色波浪线。
例如,在一行中:
unsigned _int64 x;
当我将鼠标悬停在生成的红色波浪形上时,我看到:
"(Local variable) unsigned _int64"
"Local variable '_int64' is never used"
"Expected ';'"
如果我将其更改为双下划线 __int64 那么一切都很好,但我不想为了让 ReSharper 满意而进行数千次更改。
,Microsoft 支持关键字的单下划线和双下划线版本For backward compatibility, single-underscore versions of all the double-underscored keywords except __except, __finally, __leave, and __try are supported.
是否有任何方法可以在 ReSharper C++ 中启用对单下划线类型的支持?
从 JetBrains 得到了明确的答复:
There's no way to enable it at the moment, but we'll soon add support for single-underscore keywords (hopefully in 2017.1 or a patch release). You can follow https://youtrack.jetbrains.com/issue/RSCPP-18673 to receive updates.