Guy Middleton

Avatar
  • 活动总数 25
  • 最后的活动
  • 成员加入日期
  • 关注 0 名用户
  • 关注者数 0 名用户
  • 投票数 2
  • 订阅数 10
  • 已编辑于

    int x definition, GLOBAL_VARIABLE_PREDECLARATION and tkDecls.h on MacOS

    Create a new project, with this main.cpp int x = 1;int main() { return 0;} then follow the definition/declaration gutter icon: This takes you to /Applications/Xcode.app/Contents/Developer/Platf...
    • 1 个关注者
    • 0 条评论
    • 0 票
  • 创建于

    Per-monitor font configurations

    已回答
    I have a laptop which I use both at work and at home, on different monitors. On my home monitor, I prefer font size 13, while at work it looks best at 15. So I go into Preferences each time, change...
    • 4 个关注者
    • 3 条评论
    • 5 票
  • 创建于

    odd template collapsing

    已回答
    I like CLion's code collapsing, but it sometimes gives strange results. For example, this: template <typename T, typename = std::enable_if_t<std::is_integral<T>::value>>void foo(T n) {// process n}...
    • 3 个关注者
    • 2 条评论
    • 0 票
  • 创建于

    deallocate() function in allocator marked as not used

    已回答
    In a custom allocator, the IDE marks the deallocate function (but not allocate) as never used: template<typename T>class e_allocator {public:    using value_type = T;    using pointer = value_type ...
    • 2 个关注者
    • 1 条评论
    • 0 票
  • 创建于

    Can't disable a clang-tidy warning

    已回答
    I have this, which causes no warnings, either in the IDE or when compiled:     string rtext;    int out_len1 = 1;    int out_len2 = 1;    int out_len = out_len1 + out_len2;    rtext.resize(static_c...
    • 2 个关注者
    • 1 条评论
    • 0 票
  • 创建于

    Highlight pass-by-reference arguments?

    Is there some way to configure the editor to highlight function arguments (in the calling code) where the function parameter is pass-by-reference?  
    • 1 个关注者
    • 0 条评论
    • 0 票
  • 创建于

    Warning when initializing a vector<pair<>> from a map

    This compiles clean, but CLion flags the initializer with an error: map<string, int> works;for (string l: {"a", "a", "b", "c"}) { works[l]++;}vector<pair<string, int>> scores{works.begin(), work...
    • 2 个关注者
    • 1 条评论
    • 0 票
  • 创建于

    How to set up alternate builds with optional libraries

    I have some code which I want to package into two different binaries: one as a command-line tool, and the other using the wxWidgets toolkit. This is a very simple project, all the code is the same ...
    • 2 个关注者
    • 2 条评论
    • 0 票
  • 创建于

    Clion IDE and inspector finds errors not flagged by compiler

    I have some code which compiles with no errors on OSX 10.10.4 using clang++: vector<string> test_clion2(const string &b) {    vector<string> names;    names.emplace_back(b);    return names;}When I...
    • 1 个关注者
    • 2 条评论
    • 0 票