[all-commits] [llvm/llvm-project] 406ad1: [lldb/DataFormatters] Display null C++ pointers as...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Thu Nov 12 15:24:24 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 406ad187486b4277fc82a2c0714ae53396e47928
      https://github.com/llvm/llvm-project/commit/406ad187486b4277fc82a2c0714ae53396e47928
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2020-11-12 (Thu, 12 Nov 2020)

  Changed paths:
    M lldb/include/lldb/Target/Language.h
    M lldb/source/DataFormatters/ValueObjectPrinter.cpp
    M lldb/source/Expression/UserExpression.cpp
    M lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp
    M lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.h
    M lldb/source/Plugins/Language/ObjC/ObjCLanguage.h
    M lldb/source/Plugins/Language/ObjCPlusPlus/ObjCPlusPlusLanguage.h
    M lldb/test/API/commands/expression/import-std-module/forward_decl_from_module/TestForwardDeclFromStdModule.py
    M lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/string/TestDataFormatterLibcxxString.py
    M lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/string/main.cpp
    M lldb/test/API/lang/c/anonymous/TestAnonymous.py
    R lldb/test/API/lang/objc/objc-builtin-types/Makefile
    R lldb/test/API/lang/objc/objc-builtin-types/TestObjCBuiltinTypes.py
    R lldb/test/API/lang/objc/objc-builtin-types/main.cpp
    A lldb/test/API/lang/objcxx/objc-builtin-types/Makefile
    A lldb/test/API/lang/objcxx/objc-builtin-types/TestObjCBuiltinTypes.py
    A lldb/test/API/lang/objcxx/objc-builtin-types/main.cpp

  Log Message:
  -----------
  [lldb/DataFormatters] Display null C++ pointers as nullptr

Display null pointer as `nullptr`, `nil` and `NULL` for C++,
Objective-C/Objective-C++ and C respectively. The original motivation
for this patch was to display a null std::string pointer as nullptr
instead of "", but the fix seemed generic enough to be done for all
summary providers.

Differential revision: https://reviews.llvm.org/D77153




More information about the All-commits mailing list