Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 18, 2009, 11:39:32 PM (15 years ago)
Author:
rgrieder
Message:

Improved Visual Studio IntelliSense (tool that suggests function names etc.) performance by excluding all external libraries (headers used in our projects still get parsed) and the compilations (double work otherwise).
Curiously there is no official switch to disable IntelliSense. There's only a local and unofficial version that deals with removing a particular DLL.
However if Microsoft dares to create bugs, we dare to exploit them: Specifying "-Zm1000" instead of "/Zm1000" as compile flag messes with IntelliSense. It once took me half a day to figure that out since the causality between that and "IntelliSense is not working at all for any project" is rather unexpected ;)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/cmake/CompilerConfigMSVC.cmake

    r5929 r5963  
    6868ADD_COMPILER_FLAGS("-D__WIN32__ -D_WIN32"      CACHE)
    6969ADD_COMPILER_FLAGS("-D_CRT_SECURE_NO_WARNINGS" CACHE)
     70
     71# We need this flag to hack-disable IntelliSense for certain files/projects
     72# Our precompiled headers should not be larger than 50MB anyway
     73# because otherwise they get rendered useless due to too many file fragments
     74REMOVE_COMPILER_FLAGS("-Zm1000" CACHE)
    7075
    7176# Overwrite CMake default flags here.
Note: See TracChangeset for help on using the changeset viewer.