[all-commits] [llvm/llvm-project] 40bd80: [lldb][NFC] Simplify ClangExternalASTSourceCallbacks

Raphael Isemann via All-commits all-commits at lists.llvm.org
Mon Dec 23 04:24:53 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 40bd809b6d5cfe69ffcb567245bc521b971a80eb
      https://github.com/llvm/llvm-project/commit/40bd809b6d5cfe69ffcb567245bc521b971a80eb
  Author: Raphael Isemann <teemperor at gmail.com>
  Date:   2019-12-23 (Mon, 23 Dec 2019)

  Changed paths:
    M lldb/include/lldb/Symbol/ClangASTContext.h
    M lldb/include/lldb/Symbol/ClangExternalASTSourceCallbacks.h
    M lldb/source/Symbol/ClangASTContext.cpp
    M lldb/source/Symbol/ClangExternalASTSourceCallbacks.cpp

  Log Message:
  -----------
  [lldb][NFC] Simplify ClangExternalASTSourceCallbacks

This class is only used by the ClangASTContext so we might as well
simplify this whole logic by just passing a ClangASTContext instead
of a list of callbacks and a void* pointer. If we ever need this
to support other classes then we can define some interface that
ClangASTContext implements but for now this isn't needed.

I also removed any code for m_callback_find_by_name as this was
always a nullptr in LLDB and removed all overriden implementations
that just redefined the default no-op implementation that the
ExternalASTSource provides.

Also removed the assert.h workarounds.




More information about the All-commits mailing list