Guy Middleton

- 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... -
Created Per-monitor font configurations
AnsweredI 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... -
Created odd template collapsing
AnsweredI 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}... -
Created deallocate() function in allocator marked as not used
AnsweredIn 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 ... -
Created Can't disable a clang-tidy warning
AnsweredI 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... -
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? -
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... -
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 ... -
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...