#include "clang/Tooling/CompilationDatabase.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/ADT/Twine.h"
+#include "llvm/ADT/STLExtras.h"
#include <memory>
#include <string>
#include <vector>
clang::FrontendAction *create() override { return new T; }
};
- return std::unique_ptr<FrontendActionFactory>(
- new SimpleFrontendActionFactory);
+ return llvm::make_unique<SimpleFrontendActionFactory>();
}
template <typename FactoryT>
SourceFileCallbacks *Callbacks;
};
- return std::unique_ptr<FrontendActionFactory>(
- new FrontendActionFactoryAdapter(ConsumerFactory, Callbacks));
+ return llvm::make_unique<FrontendActionFactoryAdapter>(ConsumerFactory,
+ Callbacks);
}
/// \brief Returns the absolute path of \c File, by prepending it with