]> granicus.if.org Git - clang/commit
[Frontend] Avoid running plugins during code completion parse
authorIvan Donchevskii <ivan.donchevskii@qt.io>
Thu, 17 May 2018 09:21:07 +0000 (09:21 +0000)
committerIvan Donchevskii <ivan.donchevskii@qt.io>
Thu, 17 May 2018 09:21:07 +0000 (09:21 +0000)
commit3303890be9b4217dfa673c5d0647a9bd2ae31851
tree470c69eb228401312b7b57e96668170d19c1878b
parente0cb87fda9c1af8bf5a288aa974e6bc25d52bd2d
[Frontend] Avoid running plugins during code completion parse

Second attempt. Proper line endings.

The parsing that is done for code completion is a special case that will
discard any generated diagnostics, so avoid running plugins for this
case in the first place to avoid performance penalties due to the
plugins.

A scenario for this is for example libclang with extra plugins like tidy.

Patch by Nikolai Kosjar

Differential Revision: https://reviews.llvm.org/D46050

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@332586 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Frontend/FrontendAction.cpp
test/Index/complete-and-plugins.c [new file with mode: 0644]