[clang-tools-extra] r356878 - Add llvm:: qualifer to make_unique, NFC
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 25 02:53:19 PDT 2019
Author: hokein
Date: Mon Mar 25 02:53:19 2019
New Revision: 356878
URL: http://llvm.org/viewvc/llvm-project?rev=356878&view=rev
Log:
Add llvm:: qualifer to make_unique, NFC
To avoid potential "make_unique is ambiguous" compiler errors.
Modified:
clang-tools-extra/trunk/pp-trace/PPTrace.cpp
Modified: clang-tools-extra/trunk/pp-trace/PPTrace.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/pp-trace/PPTrace.cpp?rev=356878&r1=356877&r2=356878&view=diff
==============================================================================
--- clang-tools-extra/trunk/pp-trace/PPTrace.cpp (original)
+++ clang-tools-extra/trunk/pp-trace/PPTrace.cpp Mon Mar 25 02:53:19 2019
@@ -85,8 +85,8 @@ protected:
StringRef InFile) override {
Preprocessor &PP = CI.getPreprocessor();
PP.addPPCallbacks(
- make_unique<PPCallbacksTracker>(Filters, CallbackCalls, PP));
- return make_unique<ASTConsumer>();
+ llvm::make_unique<PPCallbacksTracker>(Filters, CallbackCalls, PP));
+ return llvm::make_unique<ASTConsumer>();
}
void EndSourceFileAction() override {
@@ -151,7 +151,7 @@ int main(int argc, const char **argv) {
error(EC.message());
if (Error Err = Exec->get()->execute(
- make_unique<PPTraceFrontendActionFactory>(Filters, Out.os())))
+ llvm::make_unique<PPTraceFrontendActionFactory>(Filters, Out.os())))
error(toString(std::move(Err)));
Out.keep();
return 0;
More information about the cfe-commits
mailing list