projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9eb2bd6
)
[lldb][NFC] Mark ClangASTContext constructor as explicit
author
Raphael Isemann
<teemperor@gmail.com>
Tue, 1 Oct 2019 13:45:06 +0000
(13:45 +0000)
committer
Raphael 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
patch
|
blob
|
history
diff --git
a/lldb/include/lldb/Symbol/ClangASTContext.h
b/lldb/include/lldb/Symbol/ClangASTContext.h
index
4b2b758
..
d791f18
100644
(file)
--- 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.