Clang: Ensure that an unparsed translation unit is not suspended
Currently this might happen when registerTranslationUnitsForEditor is
called with visible documents that are not the ones that are registered.
Change-Id: I9ae5f75c8bbff6a11161a3387633726066001062
Reviewed-by:
Marco Bubke <marco.bubke@qt.io>
Showing
- src/tools/clangbackend/ipcsource/clangdocument.cpp 5 additions, 0 deletionssrc/tools/clangbackend/ipcsource/clangdocument.cpp
- src/tools/clangbackend/ipcsource/clangdocument.h 1 addition, 0 deletionssrc/tools/clangbackend/ipcsource/clangdocument.h
- src/tools/clangbackend/ipcsource/clangdocumentsuspenderresumer.cpp 2 additions, 1 deletion.../clangbackend/ipcsource/clangdocumentsuspenderresumer.cpp
- tests/unit/unittest/clangdocumentsuspenderresumer-test.cpp 27 additions, 0 deletionstests/unit/unittest/clangdocumentsuspenderresumer-test.cpp
Please register or sign in to comment