[all-commits] [llvm/llvm-project] ffa96f: [clang] Fix range for forward-declared enums

kadir çetinkaya via All-commits all-commits at lists.llvm.org
Mon Oct 25 04:16:57 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ffa96f022c3ff03888afca8fdda766fe556eb9c5
      https://github.com/llvm/llvm-project/commit/ffa96f022c3ff03888afca8fdda766fe556eb9c5
  Author: Kadir Cetinkaya <kadircet at google.com>
  Date:   2021-10-25 (Mon, 25 Oct 2021)

  Changed paths:
    M clang/include/clang/AST/Decl.h
    M clang/lib/AST/Decl.cpp
    M clang/unittests/AST/DeclTest.cpp

  Log Message:
  -----------
  [clang] Fix range for forward-declared enums

This used to span just the `[[enum foo]] : bar;` in the absence of a
body. This patch expands the range to cover the base specifier, so that the
various consumers can detect the full range of the decl.

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


  Commit: 4e4511df8d33a6fc02d5e46c681855db495187cd
      https://github.com/llvm/llvm-project/commit/4e4511df8d33a6fc02d5e46c681855db495187cd
  Author: Kadir Cetinkaya <kadircet at google.com>
  Date:   2021-10-25 (Mon, 25 Oct 2021)

  Changed paths:
    M clang-tools-extra/clangd/unittests/SelectionTests.cpp
    M clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp
    M clang-tools-extra/clangd/unittests/XRefsTests.cpp
    M clang/include/clang/AST/RecursiveASTVisitor.h
    M clang/unittests/AST/RecursiveASTVisitorTest.cpp

  Log Message:
  -----------
  [clang] Traverse enum base specifier in RAV


  Commit: 9ab9caf214f47ea0ccf5cd3eb0aef2fcb88bd6e1
      https://github.com/llvm/llvm-project/commit/9ab9caf214f47ea0ccf5cd3eb0aef2fcb88bd6e1
  Author: Kadir Cetinkaya <kadircet at google.com>
  Date:   2021-10-25 (Mon, 25 Oct 2021)

  Changed paths:
    M clang-tools-extra/clangd/unittests/XRefsTests.cpp
    M clang/lib/Index/IndexDecl.cpp
    M clang/unittests/Index/IndexTests.cpp

  Log Message:
  -----------
  [clang] Visit enum base specifiers in libIndex

Fixes https://github.com/clangd/clangd/issues/878.

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


Compare: https://github.com/llvm/llvm-project/compare/025f6ca7c469...9ab9caf214f4


More information about the All-commits mailing list