Extra patches to LLVM/Clang 5.0 =============================== The patches in this directory are applied to LLVM/Clang with: $ cd $LLVM_SOURCE_DIR $ git apply --whitespace=fix $QT_CREATOR_SOURCE/dist/clang/patches/*.patch Backported changes ------------------ ##### 110_D41016_Fix-crash-in-unused-lambda-capture-warning-for-VLAs.patch * [Sema] Fix crash in unused-lambda-capture warning for VLAs ##### 010_D35355_Fix-templated-type-alias-completion-when-using-global-completion-cache.patch * Fixes completion involving templated type alias. ##### 120_D41688_Fix-crash-on-code-completion-in-comment-in-included-file.patch * [Lex] Fix crash on code completion in comment in included file. ##### 100_D40841_Fix-a-crash-on-C++17-AST-for-non-trivial-construction-into-a-trivial-brace-initialize.patch * [analyzer] Fix a crash on C++17 AST for non-trivial construction into a trivial brace initializer. ##### 090_D40746_Correctly-handle-line-table-entries-without-filenames-during-AST-serialization.patch * Correctly handle line table entries without filenames during AST serialization Fixes crash during a reparse. ##### 050_D40027_Fix-cursors-for-in-class-initializer-of-field-declarations.patch * * [libclang] Fix cursors for in-class initializer of field declarations Fixes AST access to initializers of class members. Affects mostly semantic highlighting and highlighting of local uses. ##### 070_D40561_Fix-cursors-for-functions-with-trailing-return-type.patch * [libclang] Fix cursors for functions with trailing return type ##### 060_D40072_Support-querying-whether-a-declaration-is-invalid.patch * [libclang] Add support for checking abstractness of records Would need https://codereview.qt-project.org/#/c/211497/ on Qt Creator side. ##### 040_D39957_Honor-TerseOutput-for-constructors.patch * [DeclPrinter] Honor TerseOutput for constructors Avoids printing member initialization list and body for constructor. ##### 080_D40643_Add-function-to-get-the-buffer-for-a-file.patch * * [libclang] Add function to get the buffer for a file Together with https://codereview.qt-project.org/#/c/212972/ fixes highlighting ##### 030_D38615_Only-mark-CXCursors-for-explicit-attributes-with-a-type.patch * [libclang] Only mark CXCursors for explicit attributes with a type Some classes have totally broken highlighting (like classes inside texteditor.cpp) ##### 170_D40013_DeclPrinter-Allow-printing-fully-qualified-name.patch ##### 180_D39903_libclang-Allow-pretty-printing-declarations.patch * * [DeclPrinter] Allow printing fully qualified name of function declaration [libclang] Allow pretty printing declarations Improves pretty printing for tooltips. Additional changes ------------------ ##### 160_QTCREATORBUG-15449_Fix-files-lock-on-Windows.patch * * Significantly reduces problems when saving a header file on Windows. ##### 150_QTCREATORBUG-15157_Link-with-clazy_llvm.patch ##### 130_QTCREATORBUG-15157_Link-with-clazy_clang.patch ##### 140_QTCREATORBUG-15157_Link-with-clazy_extra.patch * Builds Clazy as an LLVM part and forces link for Clazy plugin registry entry. ##### 200_D36390_Fix-overloaded-static-functions-in-SemaCodeComplete.patch * * Fix overloaded static functions in SemaCodeComplete Happens when static function is accessed via the class variable. That leads to incorrect overloads number because the variable is considered as the first argument. ##### 210_D43453_Fix-overloaded-static-functions-for-templates.patch * Fix overloaded static functions for templates Apply almost the same fix as D36390 but for templates