[lldb][NFC] Mark ClangASTContext constructor as explicit
authorRaphael Isemann <teemperor@gmail.com>
Tue, 1 Oct 2019 13:45:06 +0000 (13:45 +0000)
committerRaphael Isemann <teemperor@gmail.com>
Tue, 1 Oct 2019 13:45:06 +0000 (13:45 +0000)
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

index 4b2b758..d791f18 100644 (file)
@@ -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.