[Lldb-commits] [clang] [lldb] [lldb] Re-use clang's keyword enable/disable mechanism in CPlusPlusNameParser.cpp (PR #164284)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Mon Oct 20 10:34:33 PDT 2025


================
@@ -46,6 +46,59 @@ class LangOptions;
 class MultiKeywordSelector;
 class SourceLocation;
 
+// This is an inline namespace to allow both clang and lldb to use them without
+// namespace prefixes (via `using namespace` in lldb's case).
+inline namespace TokenKeyEnumerators {
----------------
Michael137 wrote:

Let's make the Clang changes in a separate PR. I don't think you need the `inline namespace` either. Can we just follow the convention of the other `enum`s in this header?

https://github.com/llvm/llvm-project/pull/164284


More information about the lldb-commits mailing list