Guy Middleton

Avatar
  • Total activity 25
  • Last activity
  • Member since
  • Following 0 users
  • Followed by 0 users
  • Votes 2
  • Subscriptions 10
  • Edited

    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 follower
    • 0 comments
    • 0 votes
  • Created

    Per-monitor font configurations

    Answered
    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 followers
    • 3 comments
    • 5 votes
  • Created

    odd template collapsing

    Answered
    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 followers
    • 2 comments
    • 0 votes
  • Created

    deallocate() function in allocator marked as not used

    Answered
    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 followers
    • 1 comment
    • 0 votes
  • Created

    Can't disable a clang-tidy warning

    Answered
    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 followers
    • 1 comment
    • 0 votes
  • Created

    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 follower
    • 0 comments
    • 0 votes
  • Created

    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 followers
    • 1 comment
    • 0 votes
  • Created

    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 followers
    • 2 comments
    • 0 votes
  • Created

    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 follower
    • 2 comments
    • 0 votes