[all-commits] [llvm/llvm-project] 79b3cc: [lldb][NFC] Refactor some IsClangType checks in Cl...

Raphael Isemann via All-commits all-commits at lists.llvm.org
Fri Nov 8 03:03:52 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 79b3cce7f143ebcbc57a3c4599cbd7a1541a742b
      https://github.com/llvm/llvm-project/commit/79b3cce7f143ebcbc57a3c4599cbd7a1541a742b
  Author: Raphael Isemann <teemperor at gmail.com>
  Date:   2019-11-08 (Fri, 08 Nov 2019)

  Changed paths:
    M lldb/source/Symbol/ClangASTContext.cpp
    M lldb/source/Symbol/ClangUtil.cpp

  Log Message:
  -----------
  [lldb][NFC] Refactor some IsClangType checks in ClangASTContext

Summary:
All type in these functions need be valid and Clang types, so
we might as well replace these checks with IsClangType.

Also lets IsClangType explicitly check for validity instead of
assuming that the TypeSystem is a nullptr.

Subscribers: abidh, JDevlieghere, lldb-commits

Tags: #lldb

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




More information about the All-commits mailing list