[all-commits] [llvm/llvm-project] 6f5659: [AST] Fix the PrintQualifiedName for ObjC instance...

Haojian Wu via All-commits all-commits at lists.llvm.org
Tue May 19 06:18:09 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 6f56599c14af0a4b7a4d4b2c4f6ae44bc2754c0c
      https://github.com/llvm/llvm-project/commit/6f56599c14af0a4b7a4d4b2c4f6ae44bc2754c0c
  Author: Haojian Wu <hokein.wu at gmail.com>
  Date:   2020-05-19 (Tue, 19 May 2020)

  Changed paths:
    M clang/lib/AST/Decl.cpp
    M clang/unittests/AST/NamedDeclPrinterTest.cpp

  Log Message:
  -----------
  [AST] Fix the PrintQualifiedName for ObjC instance variable in class extension.

Summary:
Similar to property, we print the containing interface decl as the
nested name specifier for ivar; otherwise we will get "::ivar_name".

this would fix an assertion crash in clangd: https://github.com/clangd/clangd/issues/365

Reviewers: sammccall

Reviewed By: sammccall

Subscribers: ilya-biryukov, kadircet, usaxena95, cfe-commits

Tags: #clang

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




More information about the All-commits mailing list