From b67c3b6cf0f039503d35ad91c1ababebe56e036f Mon Sep 17 00:00:00 2001 From: Raphael Isemann Date: Tue, 1 Oct 2019 13:45:06 +0000 Subject: [PATCH] [lldb][NFC] Mark ClangASTContext constructor as explicit Given that we can implicitly construct a ClangASTContext from any string, we should really mark this as explicit. llvm-svn: 373339 --- lldb/include/lldb/Symbol/ClangASTContext.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/include/lldb/Symbol/ClangASTContext.h b/lldb/include/lldb/Symbol/ClangASTContext.h index 4b2b758..d791f18 100644 --- a/lldb/include/lldb/Symbol/ClangASTContext.h +++ b/lldb/include/lldb/Symbol/ClangASTContext.h @@ -52,7 +52,7 @@ public: } // Constructors and Destructors - ClangASTContext(llvm::StringRef triple = ""); + explicit ClangASTContext(llvm::StringRef triple = ""); /// Constructs a ClangASTContext that uses an existing ASTContext internally. /// Useful when having an existing ASTContext created by Clang. -- 2.7.4