ReSharper C++ 2017.2

添加對 C++11 和 C++17 功能的更多支援。
9月 1, 2017
新版本

特性

  • C++11 and C++17 Features - ReSharper C++ 2017.2 now understands C++11 extended friend declarations and finalizes support for string and floating-point user-defined literals. The ongoing work on C++17 support is also progressing: selection statements with initializer, using in attribute namespaces, and capturing *this by value are all supported now. In addition, code inspections now take C++17 [[nodiscard]] and [[maybe_unused]] attributes into account.
  • Performance - In an ongoing effort to improve performance, ReSharper C++ 2017.2 focuses on switching build configurations - by default, this operation now does not require reindexing of project files. In addition, Visual Studio's Lightweight Solution Load mode is supported for C++ projects starting with Visual Studio 2017 15.3. This reduces UI lags caused by reading project properties and improves memory usage.
  • Language Improvements
    • Find usages and Rename can now handle user-defined literals.
    • Declaration search now works inside bodies of macro definitions.
    • Anonymous nested structures are now supported in C code.
    • Expression SFINAE support is improved.
    • Completion lists inside class bodies include virtual methods from base classes that can be overridden.
    • More standard type traits are now supported, including all traits with names prefixed by is_trivially.
  • Code Formatting
    • ClangFormat configuration files are now supported and get automatically used as a source of formatting style settings.
    • Long lines can now be optionally wrapped, with a number of new settings for the wrapping behavior.
    • Line breaks after template headers and function return types.
    • Indentation of parentheses in function declarations, method calls and if/while/for statements.
  • Code Inspections and Quick-fixes
    • Inconsistent Naming detects violations of naming rules in your code. Additionally, the Naming Style options page has been updated to allow you to add custom naming rules, which let you configure this inspection.
    • Local variable may be const highlights local variables that can be made immutable.
    • Unused entity inspections extend their scope from local variables and function parameters to also include global variables/classes/enums that have internal linkage or are members of an anonymous namespace.
    • A number of new quick-fixes for existing inspections were also introduced, including Add std::move when cannot bind rvalue reference to lvalue, Return unused expression, and Add an #ifndef/#define/#endif include guard.
  • Navigation Improvements
    • Navigate to file nearby displays project structure around the current file.
    • Go to Text is integrated into Search Everywhere.
    • Go to Everything searches now return results even when word order inside a CamelCased identifier is incorrect.
    • Exact search supports adding quotes and using wildcards inside quotes to enforce a more precise match.
C++11 extended friend declarations.

ReSharper C++

用於 C++ 開發的 Visual Studio 擴展。

有任何疑問嗎?

Live Chat現在與我們的JetBrains 專家即時聊天詢問。