From: Raphael Isemann Date: Tue, 1 Oct 2019 13:45:06 +0000 (+0000) Subject: [lldb][NFC] Mark ClangASTContext constructor as explicit X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b67c3b6cf0f039503d35ad91c1ababebe56e036f;p=platform%2Fupstream%2Fllvm.git [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 --- 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.