summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2019-10-01 13:45:06 +0000
committerRaphael Isemann <teemperor@gmail.com>2019-10-01 13:45:06 +0000
commitb67c3b6cf0f039503d35ad91c1ababebe56e036f (patch)
treef28f5788a4f029064a8fdd5e2730632c528c02e8
parent9eb2bd6b8d6d31cee53f4f89dd9189da721ed4a8 (diff)
downloadbcm5719-llvm-b67c3b6cf0f039503d35ad91c1ababebe56e036f.tar.gz
bcm5719-llvm-b67c3b6cf0f039503d35ad91c1ababebe56e036f.zip
[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
-rw-r--r--lldb/include/lldb/Symbol/ClangASTContext.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/include/lldb/Symbol/ClangASTContext.h b/lldb/include/lldb/Symbol/ClangASTContext.h
index 4b2b7588e3e..d791f1878b6 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.
OpenPOWER on IntegriCloud