On the PC of my collegue Visual Studio 2015 displays a message sometimes:
Low memory detected. Solution wide analysis is switched off.
To enable or disable automatic code analysis In Solution Explorer, right-click the project, and then click Properties. In the properties dialog box for the project, click Code Analysis. Specify the build type in Configuration and the target platform in Platform. To enable or disable automatic code analysis, select or clear the Enable Code Analysis on Build (defines CODE_ANALYSIS constant) check box.
Reference
To disable full solution analysis in Visual Studio 2015, go to Tools -> Options -> Text Editor -> C# -> Advanced, and uncheck the "Enable full solution analysis" checkbox.
Note that after installing the latest version of VS2015 Update 2, this settings is now disabled by default.