[Lldb-commits] [PATCH] D113604: [lldb] Format lldb/include/lldb/Symbol/Type.h

Jonas Devlieghere via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Nov 17 10:22:59 PST 2021


JDevlieghere accepted this revision.
JDevlieghere added a comment.

LGTM modulo the inline comment.



================
Comment at: lldb/include/lldb/Symbol/Type.h:204
   // the remaining type scope (namespaces/classes).
-  static bool GetTypeScopeAndBasename(const llvm::StringRef& name,
+  static bool GetTypeScopeAndBasename(const llvm::StringRef &name,
                                       llvm::StringRef &scope,
----------------
Since you're touching this line... The coding standards say that StringRefs should always be passed by-value:

> StringRef is small and pervasive enough in LLVM that it should always be passed by value.

https://llvm.org/docs/ProgrammersManual.html#the-stringref-class


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D113604/new/

https://reviews.llvm.org/D113604



More information about the lldb-commits mailing list