Advanced View Clang Intellisense Forces Unnecessary Re-Parses

Sysprogs forums Forums VisualGDB Advanced View Clang Intellisense Forces Unnecessary Re-Parses

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #37057
    Dan712
    Participant

    If I use the advanced view hover of clang Intellisense and switch away from “Quick Info” clang will attempt to re-parse after any changes to the file, which can cause debilitating slow downs if editing a header file in particular.  Opening up advanced view again and switching back to “Quick Info” fixes the issue.

    #37061
    support
    Keymaster

    Hi,

    Normally, the quick info mode should not affect reparse times. We have just rechecked it as follows:

    1. Created a new project from scratch (Embedded STM32, Advanced CMake)
    2. Enabled Clang IntelliSense Diagnostics Console
    3. Tried adding one empty line at a time to the main source file, observing the diagnostics console for reparse messages (Starting operation: Parse)
    4. Triggered a Quick Info popup and switched it to References
    5. Closed the popup and tried adding empty lines again

    In both cases, the file is reparsed whenever you make a large enough break between adding new lines (or when you explicitly save the file). To be more precise, VisualGDB keeps a track on how long it took to parse the file last time, so it waits until there are no edits to the file for 5x the last parse time before it triggers another parse. It should not be related to Quick Info, but can appear inconsistent if the parse time varies between iterations.

    Either way, you can fully tweak this behavior via Tools->Options->Text Editor->C/C++ (VisualGDB) -> Adaptive Reparse. E.g. set the additional delay, or the minimum reparse interval.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.