diff options
author | Matteo Bernardini | 2022-02-26 11:37:27 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo | 2022-02-26 19:09:56 +0100 |
commit | be118be5fd05006130bad238aa9bc28764142ee0 (patch) | |
tree | 66c1f55a86b56be4f9625db0432c42d8b61d78fc /development/qt-creator-llvm/patches/120_D41688_Fix-crash-on-code-completion-in-comment-in-included-file.patch | |
parent | 550ceacf61d07290192db0f34c821feaee09c775 (diff) | |
download | slackbuilds-be118be5fd05006130bad238aa9bc28764142ee0.tar.gz |
development/qt-creator-llvm: Updated for version 13.0.0_d7b669b.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/qt-creator-llvm/patches/120_D41688_Fix-crash-on-code-completion-in-comment-in-included-file.patch')
-rw-r--r-- | development/qt-creator-llvm/patches/120_D41688_Fix-crash-on-code-completion-in-comment-in-included-file.patch | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/development/qt-creator-llvm/patches/120_D41688_Fix-crash-on-code-completion-in-comment-in-included-file.patch b/development/qt-creator-llvm/patches/120_D41688_Fix-crash-on-code-completion-in-comment-in-included-file.patch deleted file mode 100644 index 14fe744798..0000000000 --- a/development/qt-creator-llvm/patches/120_D41688_Fix-crash-on-code-completion-in-comment-in-included-file.patch +++ /dev/null @@ -1,47 +0,0 @@ ---- a/tools/clang/lib/Lex/PPCaching.cpp -+++ b/tools/clang/lib/Lex/PPCaching.cpp -@@ -105,8 +105,10 @@ - } - - void Preprocessor::EnterCachingLexMode() { -- if (InCachingLexMode()) -+ if (InCachingLexMode()) { -+ assert(CurLexerKind == CLK_CachingLexer && "Unexpected lexer kind"); - return; -+ } - - PushIncludeMacroStack(); - CurLexerKind = CLK_CachingLexer; ---- a/tools/clang/lib/Lex/PPLexerChange.cpp -+++ b/tools/clang/lib/Lex/PPLexerChange.cpp -@@ -444,6 +444,7 @@ - } - - CurPPLexer = nullptr; -+ recomputeCurLexerKind(); - return true; - } - ---- /dev/null -+++ b/tools/clang/test/CodeCompletion/Inputs/comments.h -@@ -0,0 +1,4 @@ -+// PR32732 -+struct B { -+ // <- code completion -+}; ---- /dev/null -+++ b/tools/clang/test/CodeCompletion/comments.cpp -@@ -0,0 +1,13 @@ -+// Note: the run lines follow their respective tests, since line/column -+// matter in this test. -+ -+#include "comments.h" -+ -+struct A { -+ // <- code completion -+ /* <- code completion */ -+}; -+ -+// RUN: %clang_cc1 -I %S/Inputs -fsyntax-only -code-completion-at=%s:7:6 %s -+// RUN: %clang_cc1 -I %S/Inputs -fsyntax-only -code-completion-at=%s:8:6 %s -+// RUN: %clang_cc1 -I %S/Inputs -fsyntax-only -code-completion-at=%S/Inputs/comments.h:3:6 %s |