[all-commits] [llvm/llvm-project] a42ce0: [clang][Sema] Add CodeCompletionContext::CCC_ObjCC...

David Goldman via All-commits all-commits at lists.llvm.org
Tue Jun 27 13:26:31 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a42ce094d90341f88a845740b2e5783060f23e3e
      https://github.com/llvm/llvm-project/commit/a42ce094d90341f88a845740b2e5783060f23e3e
  Author: David Goldman <davg at google.com>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M clang-tools-extra/clangd/CodeComplete.cpp
    M clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp
    M clang/include/clang/Sema/CodeCompleteConsumer.h
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Frontend/ASTUnit.cpp
    M clang/lib/Parse/ParseObjc.cpp
    M clang/lib/Sema/CodeCompleteConsumer.cpp
    M clang/lib/Sema/SemaCodeComplete.cpp
    M clang/tools/libclang/CIndexCodeCompletion.cpp

  Log Message:
  -----------
  [clang][Sema] Add CodeCompletionContext::CCC_ObjCClassForwardDecl

- Use this new context in Sema to limit completions to seen ObjC class
  names

- Use this new context in clangd to disable include insertions when
  completing ObjC forward decls

Reviewed By: kadircet

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




More information about the All-commits mailing list